Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_3_2_3_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.0009513/0.0009514, allocations: 94.44 kB / 16.95 MB, free: 6.887 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.0009041/0.0009041, allocations: 188.2 kB / 17.84 MB, free: 6.129 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.643/1.643, allocations: 205.4 MB / 224 MB, free: 13.09 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005609/0.0005612, allocations: 8 kB / 280.9 MB, free: 3.617 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0981/0.09867, allocations: 47.57 MB / 328.5 MB, free: 3.969 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.03409/0.1328, allocations: 31.46 MB / 359.9 MB, free: 4.414 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01926/0.1521, allocations: 7.442 MB / 367.4 MB, free: 12.95 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007123/0.1593, allocations: 147.6 kB / 367.5 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005761/0.1651, allocations: 1.578 MB / 369.1 MB, free: 11.22 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01604/0.1812, allocations: 4.841 MB / 373.9 MB, free: 6.359 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003292/0.1845, allocations: 0.5849 MB / 374.5 MB, free: 5.773 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00645/0.191, allocations: 3.821 MB / 378.3 MB, free: 1.938 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.229/0.4199, allocations: 3.352 MB / 381.7 MB, free: 10.98 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00335/0.4233, allocations: 1.056 MB / 382.7 MB, free: 10.98 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004315/0.4277, allocations: 1.653 MB / 384.4 MB, free: 10.98 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001227/0.4289, allocations: 123.5 kB / 384.5 MB, free: 10.98 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004069/0.433, allocations: 0.8741 MB / 385.4 MB, free: 10.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00315/0.4362, allocations: 1.407 MB / 386.8 MB, free: 10.98 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001495/0.4377, allocations: 0.7037 MB / 387.5 MB, free: 10.95 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007044/0.4448, allocations: 4.494 MB / 392 MB, free: 10.66 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.245e-06/0.4448, allocations: 0 / 392 MB, free: 10.66 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.857e-06/0.4448, allocations: 4 kB / 392 MB, free: 10.65 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002664/0.4451, allocations: 0 / 392 MB, free: 10.65 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.01068/0.4558, allocations: 3.451 MB / 395.4 MB, free: 8.992 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.03e-05/0.4559, allocations: 11.38 kB / 395.4 MB, free: 8.992 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002099/0.458, allocations: 0.6373 MB / 396.1 MB, free: 8.922 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006962/0.4649, allocations: 1.914 MB / 398 MB, free: 8.668 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005515/0.4705, allocations: 2.295 MB / 400.3 MB, free: 8.07 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002011/0.4707, allocations: 210 kB / 400.5 MB, free: 8.062 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001029/0.4718, allocations: 267 kB / 400.8 MB, free: 8.062 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02069/0.4925, allocations: 9.972 MB / 410.7 MB, free: 4.469 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000256/0.4928, allocations: 40.41 kB / 410.8 MB, free: 4.465 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001453/0.4942, allocations: 135.5 kB / 410.9 MB, free: 4.465 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003289/0.4975, allocations: 1.849 MB / 412.8 MB, free: 4.047 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01996/0.5175, allocations: 8.52 MB / 421.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05292/0.5705, allocations: 36.83 MB / 458.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01019/0.5807, allocations: 3.878 MB / 462 MB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003341/0.5841, allocations: 1.805 MB / 463.8 MB, free: 8.352 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01559/0.5998, allocations: 7.531 MB / 471.3 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.649e-05/0.5999, allocations: 50.47 kB / 471.4 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of pre-optimization done (n=150): time 5.831e-06/0.5999, allocations: 0 / 471.4 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of matching and sorting (n=166): time 0.05439/0.6543, allocations: 17.41 MB / 488.8 MB, free: 15.06 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.253e-05/0.6544, allocations: 149.5 kB / 488.9 MB, free: 14.89 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007195/0.6616, allocations: 3.473 MB / 492.4 MB, free: 11.42 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005527/0.6622, allocations: 53.45 kB / 492.5 MB, free: 11.37 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002342/0.6646, allocations: 2.747 MB / 495.2 MB, free: 8.637 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009589/0.6655, allocations: 0.634 MB / 495.8 MB, free: 8.008 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002523/0.6658, allocations: 108 kB / 495.9 MB, free: 7.902 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003581/0.6662, allocations: 0.5509 MB / 496.5 MB, free: 7.348 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003052/0.6692, allocations: 1.916 MB / 498.4 MB, free: 5.426 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005541/0.6748, allocations: 5.34 MB / 0.4919 GB, free: 14.43 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004644/0.6794, allocations: 3.109 MB / 0.495 GB, free: 11.43 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-05/0.6795, allocations: 36 kB / 0.495 GB, free: 11.39 MB / 414.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01695/0.6965, allocations: 8.112 MB / 0.5029 GB, free: 3.867 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001068/0.6966, allocations: 60.41 kB / 0.503 GB, free: 3.812 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002038/0.6968, allocations: 120.8 kB / 0.5031 GB, free: 3.695 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004061/0.7009, allocations: 1.316 MB / 0.5044 GB, free: 2.375 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004784/0.7057, allocations: 1.255 MB / 0.5056 GB, free: 1.117 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01081/0.7165, allocations: 6.099 MB / 0.5116 GB, free: 10.89 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005891/0.7224, allocations: 303.6 kB / 0.5119 GB, free: 10.59 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001495/0.724, allocations: 336 kB / 0.5122 GB, free: 10.26 MB / 430.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.005865/0.7299, allocations: 1.811 MB / 0.514 GB, free: 8.438 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001255/0.7311, allocations: 309.6 kB / 0.5142 GB, free: 8.133 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008908/0.7401, allocations: 3.364 MB / 0.5175 GB, free: 4.758 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.524e-05/0.7401, allocations: 20 kB / 0.5175 GB, free: 4.738 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.369e-05/0.7402, allocations: 4 kB / 0.5176 GB, free: 4.734 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.714e-05/0.7402, allocations: 7.969 kB / 0.5176 GB, free: 4.727 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02121/0.7614, allocations: 7.603 MB / 0.525 GB, free: 13.07 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.342e-05/0.7615, allocations: 0 / 0.525 GB, free: 13.07 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001338/0.7628, allocations: 243.8 kB / 0.5252 GB, free: 12.83 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003575/0.7664, allocations: 1.12 MB / 0.5263 GB, free: 11.71 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000251/0.7667, allocations: 35.94 kB / 0.5263 GB, free: 11.67 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009049/0.7758, allocations: 5.714 MB / 0.5319 GB, free: 5.828 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.7758, allocations: 0 / 0.5319 GB, free: 5.828 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01153/0.7873, allocations: 5.692 MB / 0.5375 GB, free: 108 kB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2537/1.041, allocations: 0.5755 MB / 0.538 GB, free: 162.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007648/1.042, allocations: 23.83 kB / 0.5381 GB, free: 162.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001662/1.044, allocations: 92.27 kB / 0.5382 GB, free: 162.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000301/1.044, allocations: 92.23 kB / 0.5382 GB, free: 162.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001354/1.044, allocations: 40.83 kB / 0.5383 GB, free: 162.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005651/1.05, allocations: 2.156 MB / 0.5404 GB, free: 162 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.51e-07/1.05, allocations: 0 / 0.5404 GB, free: 162 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007256/1.057, allocations: 0.9089 MB / 0.5413 GB, free: 162 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.01256/1.07, allocations: 6.353 MB / 0.5475 GB, free: 160.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008966/1.079, allocations: 4.742 MB / 0.5521 GB, free: 158.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.792e-06/1.079, allocations: 0 / 0.5521 GB, free: 158.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002217/1.081, allocations: 1.529 MB / 0.5536 GB, free: 158.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002631/1.084, allocations: 348.7 kB / 0.5539 GB, free: 158 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0509/1.134, allocations: 30.15 MB / 0.5834 GB, free: 132.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00267/1.137, allocations: 2.864 MB / 0.5862 GB, free: 130.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004018/1.141, allocations: 1.718 MB / 0.5879 GB, free: 128.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002009/1.143, allocations: 1.585 MB / 0.5894 GB, free: 127 MB / 446.1 MB Notification: Performance of SimCode: time 9.62e-07/1.143, allocations: 0 / 0.5894 GB, free: 127 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.132/1.275, allocations: 67.47 MB / 0.6553 GB, free: 59.47 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002145/1.276, allocations: 232.5 kB / 0.6555 GB, free: 59.23 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.807/5.083, allocations: 3.938 kB / 0.6555 GB, free: 59.23 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat does not exist to compare? outputFormat=mat