Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 99.22 kB / 16.31 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001545/0.001546, allocations: 183.2 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 223.2 MB / 241.1 MB, free: 5.488 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002599/0.0002599, allocations: 6.531 kB / 300.8 MB, free: 5.961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1188, allocations: 50.42 MB / 351.2 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.03035/0.1492, allocations: 29.7 MB / 380.9 MB, free: 13.9 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02061/0.1699, allocations: 7.732 MB / 388.7 MB, free: 6.145 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006431/0.1763, allocations: 143.6 kB / 388.8 MB, free: 6.004 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006174/0.1825, allocations: 1.423 MB / 390.2 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01566/0.1982, allocations: 4.338 MB / 394.6 MB, free: 232 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003319/0.2016, allocations: 0.5615 MB / 395.1 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004373/0.206, allocations: 1.93 MB / 397.1 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00494/0.2109, allocations: 3.33 MB / 400.4 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001353/0.2123, allocations: 0.8564 MB / 401.2 MB, free: 9.488 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00154/0.2138, allocations: 1.191 MB / 402.4 MB, free: 8.293 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003816/0.2142, allocations: 124 kB / 402.6 MB, free: 8.172 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001744/0.216, allocations: 0.8621 MB / 403.4 MB, free: 7.309 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001339/0.2173, allocations: 1.297 MB / 404.7 MB, free: 6.008 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007859/0.2181, allocations: 0.7064 MB / 405.4 MB, free: 5.293 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004499/0.2226, allocations: 4.489 MB / 409.9 MB, free: 0.793 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2227, allocations: 0 / 409.9 MB, free: 0.793 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.2227, allocations: 0 / 409.9 MB, free: 0.793 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001163/0.2228, allocations: 0 / 409.9 MB, free: 0.793 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.007329/0.2301, allocations: 3.482 MB / 413.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.2302, allocations: 8.031 kB / 413.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001239/0.2314, allocations: 0.6411 MB / 414 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007828/0.2393, allocations: 2.237 MB / 416.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00491/0.2442, allocations: 1.913 MB / 418.2 MB, free: 8.375 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001702/0.2444, allocations: 217.1 kB / 418.4 MB, free: 8.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005709/0.245, allocations: 271.7 kB / 418.7 MB, free: 7.895 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2114/0.4564, allocations: 10.07 MB / 428.7 MB, free: 61.26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000123/0.4566, allocations: 39.8 kB / 428.8 MB, free: 61.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004328/0.457, allocations: 131.1 kB / 428.9 MB, free: 61.24 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003578/0.4606, allocations: 1.854 MB / 430.8 MB, free: 61.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02273/0.4834, allocations: 8.636 MB / 439.4 MB, free: 60.94 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04134/0.5247, allocations: 37.37 MB / 476.8 MB, free: 27.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01551/0.5403, allocations: 6.445 MB / 483.2 MB, free: 21.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01106/0.5514, allocations: 8.585 MB / 491.8 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.756e-05/0.5515, allocations: 47.55 kB / 491.8 MB, free: 12.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=150): time 5.571e-06/0.5515, allocations: 3.984 kB / 491.8 MB, free: 12.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=166): time 0.06397/0.6155, allocations: 23.68 MB / 0.5034 GB, free: 4.605 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.736e-05/0.6156, allocations: 145.5 kB / 0.5036 GB, free: 4.434 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004884/0.6205, allocations: 3.571 MB / 0.5071 GB, free: 0.8594 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004681/0.621, allocations: 53.53 kB / 0.5071 GB, free: 0.8047 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001969/0.623, allocations: 2.735 MB / 0.5098 GB, free: 14.07 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008203/0.6238, allocations: 0.6396 MB / 0.5104 GB, free: 13.44 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002251/0.6241, allocations: 111.8 kB / 0.5105 GB, free: 13.33 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0003382/0.6244, allocations: 0.5415 MB / 0.5111 GB, free: 12.79 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002969/0.6274, allocations: 2.025 MB / 0.513 GB, free: 10.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005452/0.6328, allocations: 5.424 MB / 0.5183 GB, free: 3.613 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005143/0.638, allocations: 3.217 MB / 0.5215 GB, free: 404 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.506e-05/0.6381, allocations: 36 kB / 0.5215 GB, free: 368 kB / 382.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01608/0.6542, allocations: 8.309 MB / 0.5296 GB, free: 8.051 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001646/0.6544, allocations: 58.34 kB / 0.5297 GB, free: 7.996 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001461/0.6546, allocations: 120.8 kB / 0.5298 GB, free: 7.879 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004141/0.6587, allocations: 1.308 MB / 0.5311 GB, free: 6.566 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004408/0.6632, allocations: 1.283 MB / 0.5323 GB, free: 5.281 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009362/0.6725, allocations: 6.263 MB / 0.5384 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004799/0.6774, allocations: 315.6 kB / 0.5387 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001032/0.6784, allocations: 343.9 kB / 0.5391 GB, free: 14.24 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (681): * Single equations (assignments): 677 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004133/0.6826, allocations: 1.811 MB / 0.5408 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007807/0.6834, allocations: 304.1 kB / 0.5411 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007559/0.6909, allocations: 3.587 MB / 0.5446 GB, free: 8.512 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.487e-05/0.691, allocations: 20 kB / 0.5446 GB, free: 8.492 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.56e-05/0.6911, allocations: 4 kB / 0.5446 GB, free: 8.488 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.651e-05/0.6911, allocations: 7.969 kB / 0.5447 GB, free: 8.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01609/0.7072, allocations: 8.005 MB / 0.5525 GB, free: 436 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-05/0.7073, allocations: 0 / 0.5525 GB, free: 436 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001298/0.7086, allocations: 259.6 kB / 0.5527 GB, free: 176 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003715/0.7123, allocations: 1.116 MB / 0.5538 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002584/0.7126, allocations: 28 kB / 0.5538 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00819/0.7208, allocations: 5.886 MB / 0.5596 GB, free: 9.012 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.7208, allocations: 0 / 0.5596 GB, free: 9.012 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01011/0.7309, allocations: 6.127 MB / 0.5656 GB, free: 2.832 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001007/0.732, allocations: 368.9 kB / 0.5659 GB, free: 2.449 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003756/0.7324, allocations: 28 kB / 0.5659 GB, free: 2.422 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00134/0.7337, allocations: 111.4 kB / 0.5661 GB, free: 2.316 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000263/0.734, allocations: 92.81 kB / 0.5661 GB, free: 2.227 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001264/0.7341, allocations: 47.98 kB / 0.5662 GB, free: 2.18 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003572/0.7377, allocations: 2.22 MB / 0.5684 GB, free: 15.97 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.7377, allocations: 4 kB / 0.5684 GB, free: 15.97 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0049/0.7426, allocations: 0.9387 MB / 0.5693 GB, free: 15.04 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 125 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0114/0.754, allocations: 6.966 MB / 0.5761 GB, free: 8.039 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009319/0.7634, allocations: 4.942 MB / 0.5809 GB, free: 3.109 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.7635, allocations: 0 / 0.5809 GB, free: 3.109 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00261/0.7661, allocations: 1.625 MB / 0.5825 GB, free: 1.473 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002124/0.7682, allocations: 326.3 kB / 0.5828 GB, free: 1.152 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2613/1.03, allocations: 113.9 MB / 0.694 GB, free: 50.79 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003455/1.033, allocations: 2.926 MB / 0.6969 GB, free: 49.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003922/1.037, allocations: 1.742 MB / 0.6986 GB, free: 48.08 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002127/1.039, allocations: 1.585 MB / 0.7001 GB, free: 46.5 MB / 446.1 MB Notification: Performance of SimCode: time 9.12e-07/1.039, allocations: 0 / 0.7001 GB, free: 46.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2846/1.324, allocations: 68.6 MB / 0.7671 GB, free: 139 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001586/1.324, allocations: 230.7 kB / 0.7673 GB, free: 138.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.611/4.935, allocations: 3.938 kB / 0.7673 GB, free: 138.7 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat does not exist to compare? outputFormat=mat