Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001476/0.001476, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002036/0.002036, allocations: 211.9 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.456/1.456, allocations: 230.6 MB / 258.3 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001961/0.001961, allocations: 64.77 kB / 378.5 MB, free: 3.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3055/0.3075, allocations: 53.36 MB / 431.9 MB, free: 6.906 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004139/0.3116, allocations: 2.694 MB / 434.6 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001428/0.313, allocations: 0.7404 MB / 435.3 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001644/0.3132, allocations: 11.94 kB / 435.3 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001757/0.3134, allocations: 51.44 kB / 435.4 MB, free: 3.395 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002175/0.3136, allocations: 103.1 kB / 435.5 MB, free: 3.293 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003232/0.3139, allocations: 95.83 kB / 435.6 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004318/0.3144, allocations: 390.3 kB / 436 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002262/0.3146, allocations: 79.58 kB / 436 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001829/0.3148, allocations: 155.4 kB / 436.2 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002448/0.315, allocations: 167.2 kB / 436.4 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.156e-05/0.3151, allocations: 28 kB / 436.4 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.486e-05/0.3151, allocations: 32 kB / 436.4 MB, free: 2.359 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.991e-05/0.3152, allocations: 71.75 kB / 436.5 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001702/0.3154, allocations: 179.1 kB / 436.7 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004387/0.3158, allocations: 383.2 kB / 437 MB, free: 1.742 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3158, allocations: 0 / 437 MB, free: 1.742 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3158, allocations: 0 / 437 MB, free: 1.742 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.857e-06/0.3158, allocations: 0 / 437 MB, free: 1.742 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001067/0.3169, allocations: 0.5558 MB / 437.6 MB, free: 1.156 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.3169, allocations: 8.031 kB / 437.6 MB, free: 1.148 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.786e-05/0.317, allocations: 70.72 kB / 437.7 MB, free: 1.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.227e-05/0.3171, allocations: 36.7 kB / 437.7 MB, free: 1.035 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004127/0.3175, allocations: 218.8 kB / 437.9 MB, free: 0.793 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.262e-05/0.3175, allocations: 24.78 kB / 437.9 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.285e-05/0.3176, allocations: 35.95 kB / 438 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000482/0.3181, allocations: 258.1 kB / 438.2 MB, free: 488 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.3181, allocations: 4 kB / 438.2 MB, free: 484 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.613e-05/0.3181, allocations: 8 kB / 438.2 MB, free: 476 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.36e-05/0.3181, allocations: 11.98 kB / 438.3 MB, free: 464 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004326/0.3186, allocations: 234.5 kB / 438.5 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001345/0.3199, allocations: 0.7601 MB / 439.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005316/0.3204, allocations: 319.5 kB / 439.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002641/0.3207, allocations: 161.5 kB / 439.7 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.799e-05/0.3207, allocations: 4.375 kB / 439.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.868e-05/0.3208, allocations: 34.94 kB / 439.8 MB, free: 14.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.693e-06/0.3208, allocations: 0 / 439.8 MB, free: 14.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.003849/0.3246, allocations: 1.78 MB / 441.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.154e-05/0.3247, allocations: 56.06 kB / 441.6 MB, free: 12.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000236/0.3249, allocations: 203.3 kB / 441.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.794e-05/0.325, allocations: 37.7 kB / 441.8 MB, free: 12.74 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.3251, allocations: 157.1 kB / 442 MB, free: 12.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001839/0.3253, allocations: 234 kB / 442.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001352/0.3254, allocations: 94.33 kB / 442.3 MB, free: 12.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.3256, allocations: 342.8 kB / 442.6 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002595/0.3258, allocations: 149.3 kB / 442.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002617/0.3261, allocations: 157.8 kB / 442.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005914/0.3267, allocations: 350 kB / 443.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.3267, allocations: 0 / 443.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007821/0.3274, allocations: 469 kB / 443.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.3275, allocations: 4 kB / 443.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.218e-06/0.3275, allocations: 4 kB / 443.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.502e-05/0.3275, allocations: 3.938 kB / 443.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004656/0.328, allocations: 115.8 kB / 443.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.328, allocations: 4 kB / 443.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001724/0.3282, allocations: 19.98 kB / 443.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.253e-05/0.3282, allocations: 20 kB / 443.9 MB, free: 10.64 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (elastoGap2.contact,elastoGap1.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001929/0.3284, allocations: 153.8 kB / 444.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.961e-05/0.3284, allocations: 39.77 kB / 444.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001279/0.3286, allocations: 59.25 kB / 444.1 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.3286, allocations: 8 kB / 444.2 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.3286, allocations: 0 / 444.2 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.3286, allocations: 3.984 kB / 444.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00198/0.3306, allocations: 1.261 MB / 445.4 MB, free: 8.996 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.303e-06/0.3306, allocations: 4.562 kB / 445.4 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004944/0.3311, allocations: 123.8 kB / 445.5 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.869e-06/0.3311, allocations: 4 kB / 445.6 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.495e-05/0.3311, allocations: 16 kB / 445.6 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.519e-05/0.3311, allocations: 15.92 kB / 445.6 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.3311, allocations: 7.938 kB / 445.6 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001196/0.3323, allocations: 0.8416 MB / 446.4 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.957e-05/0.3324, allocations: 43.8 kB / 446.5 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.231e-05/0.3325, allocations: 16 kB / 446.5 MB, free: 7.859 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002284/0.3327, allocations: 23.98 kB / 446.5 MB, free: 7.836 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.543e-05/0.3328, allocations: 52.23 kB / 446.6 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.08e-05/0.3328, allocations: 20 kB / 446.6 MB, free: 7.766 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001422/0.333, allocations: 152.5 kB / 446.7 MB, free: 7.617 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.333, allocations: 0 / 446.7 MB, free: 7.617 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004198/0.3334, allocations: 100 kB / 446.8 MB, free: 7.52 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 4 (springDamper2.s_rel,springDamper2.v_rel,elastoGap2.s_rel,elastoGap2.v_rel) * Number of discrete variables: 2 (elastoGap1.contact,elastoGap2.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (65): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001532/0.3349, allocations: 1.402 MB / 448.2 MB, free: 6.035 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007044/0.3356, allocations: 383.7 kB / 448.6 MB, free: 5.656 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.3356, allocations: 0 / 448.6 MB, free: 5.656 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003455/0.336, allocations: 226.2 kB / 448.8 MB, free: 5.438 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006632/0.3366, allocations: 90.8 kB / 448.9 MB, free: 5.344 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005131/0.3418, allocations: 3.686 MB / 452.6 MB, free: 1.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005002/0.3423, allocations: 0.7972 MB / 453.4 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002198/0.3425, allocations: 47.34 kB / 453.4 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002113/0.3427, allocations: 123.4 kB / 453.6 MB, free: 492 kB / 350.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3427, allocations: 0 / 453.6 MB, free: 492 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03766/0.3804, allocations: 8.235 MB / 461.8 MB, free: 8.387 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.577/8.957, allocations: 0 / 461.8 MB, free: 8.387 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_ElastoGap_fmu --startTime=0 --stopTime=5 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.335602803621441] Failed to read output from testmodel.py, exit status != 0: ['time', 'elastoGap1.v_rel', 'elastoGap2.s_rel', 'springDamper1.v_rel', 'springDamper2.s_rel'] 9.03453398309648 9.060657379 8.739778305 Calling exit ...