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.0008633/0.0008633, allocations: 87.31 kB / 16.31 MB, free: 5.676 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.000949/0.0009492, allocations: 182.2 kB / 17.21 MB, free: 5.598 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.344/1.344, allocations: 223.2 MB / 241.2 MB, free: 356 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002421/0.0002422, allocations: 8 kB / 300.9 MB, free: 6.359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1039, allocations: 50.42 MB / 351.3 MB, free: 3.926 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.2709/0.3749, allocations: 31.42 MB / 382.8 MB, free: 8.434 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01937/0.3943, allocations: 7.445 MB / 390.2 MB, free: 6.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006622/0.401, allocations: 144.5 kB / 390.3 MB, free: 5.996 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006397/0.4074, allocations: 1.576 MB / 391.9 MB, free: 5.438 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01357/0.421, allocations: 4.844 MB / 396.8 MB, free: 2.664 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002794/0.4238, allocations: 0.5764 MB / 397.3 MB, free: 2.289 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006074/0.4299, allocations: 3.791 MB / 401.1 MB, free: 144 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005992/0.436, allocations: 3.353 MB / 404.5 MB, free: 14.15 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002881/0.4389, allocations: 1.045 MB / 405.5 MB, free: 13.63 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003514/0.4424, allocations: 1.649 MB / 407.2 MB, free: 12.71 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00102/0.4435, allocations: 124 kB / 407.3 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002818/0.4463, allocations: 0.8855 MB / 408.2 MB, free: 11.7 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002483/0.4488, allocations: 1.402 MB / 409.6 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001509/0.4503, allocations: 0.6986 MB / 410.3 MB, free: 9.59 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005842/0.4562, allocations: 4.491 MB / 414.8 MB, free: 5.09 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/0.4562, allocations: 3.938 kB / 414.8 MB, free: 5.086 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.4562, allocations: 0 / 414.8 MB, free: 5.086 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002426/0.4565, allocations: 0 / 414.8 MB, free: 5.086 MB / 318.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.008004/0.4645, allocations: 3.425 MB / 418.2 MB, free: 1.598 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/0.4645, allocations: 12.03 kB / 418.2 MB, free: 1.586 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001568/0.4661, allocations: 0.645 MB / 418.9 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006679/0.4728, allocations: 1.914 MB / 420.8 MB, free: 15.01 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004509/0.4774, allocations: 2.147 MB / 422.9 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000232/0.4776, allocations: 205.2 kB / 423.1 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001076/0.4787, allocations: 263.9 kB / 423.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0226/0.5013, allocations: 9.982 MB / 433.4 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000138/0.5015, allocations: 43.59 kB / 433.4 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005529/0.5021, allocations: 135.9 kB / 433.5 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004582/0.5067, allocations: 1.848 MB / 435.4 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02664/0.5334, allocations: 8.513 MB / 443.9 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05752/0.5909, allocations: 36.84 MB / 480.7 MB, free: 1.27 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009015/0.6, allocations: 3.87 MB / 484.6 MB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002501/0.6025, allocations: 1.804 MB / 486.4 MB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01083/0.6134, allocations: 7.528 MB / 493.9 MB, free: 3.574 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.067e-05/0.6135, allocations: 51.56 kB / 494 MB, free: 3.516 MB / 398.1 MB Notification: Performance of pre-optimization done (n=150): time 5.119e-06/0.6135, allocations: 0 / 494 MB, free: 3.516 MB / 398.1 MB Notification: Performance of matching and sorting (n=166): time 0.04781/0.6613, allocations: 17.37 MB / 0.4994 GB, free: 2.027 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.073e-05/0.6614, allocations: 145.8 kB / 0.4995 GB, free: 1.855 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004565/0.666, allocations: 3.458 MB / 0.5029 GB, free: 14.39 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003719/0.6664, allocations: 45.7 kB / 0.5029 GB, free: 14.34 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002208/0.6686, allocations: 2.751 MB / 0.5056 GB, free: 11.55 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007886/0.6694, allocations: 0.6442 MB / 0.5062 GB, free: 10.9 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002306/0.6697, allocations: 104 kB / 0.5063 GB, free: 10.8 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003359/0.67, allocations: 0.5376 MB / 0.5069 GB, free: 10.26 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00294/0.673, allocations: 1.92 MB / 0.5087 GB, free: 8.332 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004935/0.6779, allocations: 5.342 MB / 0.514 GB, free: 1.27 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004502/0.6824, allocations: 3.112 MB / 0.517 GB, free: 14.16 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.296e-05/0.6825, allocations: 36 kB / 0.517 GB, free: 14.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01571/0.6982, allocations: 8.102 MB / 0.5249 GB, free: 6.012 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001055/0.6984, allocations: 63.98 kB / 0.525 GB, free: 5.949 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001654/0.6986, allocations: 123.9 kB / 0.5251 GB, free: 5.828 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003916/0.7025, allocations: 1.311 MB / 0.5264 GB, free: 4.516 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004194/0.7067, allocations: 1.255 MB / 0.5276 GB, free: 3.258 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2458/0.9526, allocations: 6.082 MB / 0.5336 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004597/0.9572, allocations: 300.3 kB / 0.5339 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001236/0.9585, allocations: 346.9 kB / 0.5342 GB, free: 118.8 MB / 446.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.005073/0.9636, allocations: 1.806 MB / 0.536 GB, free: 118.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001013/0.9646, allocations: 306.8 kB / 0.5362 GB, free: 118.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009655/0.9743, allocations: 3.363 MB / 0.5395 GB, free: 118.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.089e-05/0.9744, allocations: 22.38 kB / 0.5396 GB, free: 118.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.522e-05/0.9744, allocations: 4.188 kB / 0.5396 GB, free: 118.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.521e-05/0.9745, allocations: 8.688 kB / 0.5396 GB, free: 118.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01841/0.9929, allocations: 7.594 MB / 0.547 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.709e-05/0.993, allocations: 3.5 kB / 0.547 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001266/0.9943, allocations: 238 kB / 0.5472 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00328/0.9976, allocations: 1.116 MB / 0.5483 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002396/0.9978, allocations: 34.81 kB / 0.5483 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007462/1.005, allocations: 5.714 MB / 0.5539 GB, free: 116.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.534e-06/1.005, allocations: 0 / 0.5539 GB, free: 116.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008769/1.014, allocations: 5.702 MB / 0.5595 GB, free: 115.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008841/1.015, allocations: 361.2 kB / 0.5598 GB, free: 115 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000321/1.015, allocations: 25.8 kB / 0.5599 GB, free: 115 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001164/1.017, allocations: 95.5 kB / 0.5599 GB, free: 115 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002369/1.017, allocations: 87.17 kB / 0.56 GB, free: 115 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001226/1.017, allocations: 45 kB / 0.5601 GB, free: 115 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002938/1.02, allocations: 2.132 MB / 0.5622 GB, free: 114 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.343e-06/1.02, allocations: 3.938 kB / 0.5622 GB, free: 114 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00416/1.024, allocations: 0.911 MB / 0.563 GB, free: 113.9 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.008196/1.032, allocations: 6.35 MB / 0.5692 GB, free: 109.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00687/1.039, allocations: 4.74 MB / 0.5739 GB, free: 104.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.141e-06/1.039, allocations: 0 / 0.5739 GB, free: 104.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00191/1.041, allocations: 1.527 MB / 0.5754 GB, free: 103.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002174/1.043, allocations: 343.6 kB / 0.5757 GB, free: 102.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04102/1.084, allocations: 30.08 MB / 0.6051 GB, free: 69.88 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002265/1.087, allocations: 2.851 MB / 0.6079 GB, free: 67 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003625/1.09, allocations: 1.716 MB / 0.6095 GB, free: 65.28 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001589/1.092, allocations: 1.59 MB / 0.6111 GB, free: 63.7 MB / 446.1 MB Notification: Performance of SimCode: time 9.41e-07/1.092, allocations: 0 / 0.6111 GB, free: 63.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08997/1.182, allocations: 67.35 MB / 0.6768 GB, free: 12.89 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002005/1.182, allocations: 232.6 kB / 0.6771 GB, free: 12.65 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.098/5.28, allocations: 6.25 kB / 0.6771 GB, free: 12.64 MB / 462.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