Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.00131/0.00131, allocations: 96.44 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001721/0.001721, allocations: 204.4 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002424/0.0002425, allocations: 8 kB / 306.7 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1056, allocations: 51.49 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.2319/0.3375, allocations: 29.71 MB / 387.9 MB, free: 4.816 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.018/0.3556, allocations: 7.745 MB / 395.7 MB, free: 15.59 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007363/0.363, allocations: 149.1 kB / 395.8 MB, free: 15.56 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006123/0.3691, allocations: 1.43 MB / 397.2 MB, free: 15.09 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01604/0.3852, allocations: 4.328 MB / 401.6 MB, free: 12.52 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002974/0.3882, allocations: 0.5544 MB / 402.1 MB, free: 12.16 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004899/0.3931, allocations: 1.967 MB / 404.1 MB, free: 11 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005086/0.3982, allocations: 3.345 MB / 407.4 MB, free: 9 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001779/0.4, allocations: 0.8582 MB / 408.3 MB, free: 8.555 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001943/0.402, allocations: 1.192 MB / 409.5 MB, free: 7.91 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004407/0.4024, allocations: 122.6 kB / 409.6 MB, free: 7.91 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001953/0.4044, allocations: 0.8455 MB / 410.4 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001307/0.4057, allocations: 1.297 MB / 411.7 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007498/0.4065, allocations: 0.7064 MB / 412.4 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004699/0.4112, allocations: 4.479 MB / 416.9 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.4112, allocations: 3.938 kB / 416.9 MB, free: 0.668 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4112, allocations: 3.938 kB / 416.9 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001415/0.4114, allocations: 0 / 416.9 MB, free: 0.6641 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.006655/0.418, allocations: 3.487 MB / 420.4 MB, free: 13.11 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/0.4181, allocations: 12.03 kB / 420.4 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001159/0.4192, allocations: 0.6372 MB / 421.1 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008072/0.4273, allocations: 2.237 MB / 423.3 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006822/0.4342, allocations: 1.917 MB / 425.2 MB, free: 8.234 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002242/0.4345, allocations: 209.2 kB / 425.4 MB, free: 8.027 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00108/0.4355, allocations: 271.7 kB / 425.7 MB, free: 7.762 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02607/0.4616, allocations: 10.11 MB / 435.8 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001007/0.4618, allocations: 35.69 kB / 435.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003553/0.4621, allocations: 139.9 kB / 436 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002965/0.4651, allocations: 1.852 MB / 437.8 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0178/0.4829, allocations: 8.68 MB / 446.5 MB, free: 2.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05077/0.5337, allocations: 37.36 MB / 483.9 MB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02567/0.5594, allocations: 6.479 MB / 490.3 MB, free: 5.172 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0203/0.5798, allocations: 8.668 MB / 499 MB, free: 12.21 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.99e-05/0.5799, allocations: 55.5 kB / 499.1 MB, free: 12.15 MB / 414.1 MB Notification: Performance of pre-optimization done (n=150): time 4.668e-06/0.5799, allocations: 0 / 499.1 MB, free: 12.15 MB / 414.1 MB Notification: Performance of matching and sorting (n=166): time 0.07143/0.6513, allocations: 23.86 MB / 0.5107 GB, free: 4.094 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.401e-05/0.6514, allocations: 149.5 kB / 0.5108 GB, free: 3.918 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005833/0.6573, allocations: 3.567 MB / 0.5143 GB, free: 356 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002169/0.6575, allocations: 49.7 kB / 0.5143 GB, free: 300 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002001/0.6595, allocations: 2.736 MB / 0.517 GB, free: 13.52 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007573/0.6603, allocations: 0.6441 MB / 0.5176 GB, free: 12.87 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003496/0.6607, allocations: 112 kB / 0.5178 GB, free: 12.76 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0004761/0.6611, allocations: 0.5337 MB / 0.5183 GB, free: 12.22 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003564/0.6647, allocations: 2.041 MB / 0.5203 GB, free: 10.17 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005659/0.6704, allocations: 5.447 MB / 0.5256 GB, free: 3.008 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1872/0.8576, allocations: 3.223 MB / 0.5287 GB, free: 141.4 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001038/0.8577, allocations: 35.03 kB / 0.5288 GB, free: 141.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.0147/0.8724, allocations: 8.342 MB / 0.5369 GB, free: 140 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.814e-05/0.8725, allocations: 58.08 kB / 0.537 GB, free: 140 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001153/0.8727, allocations: 121.9 kB / 0.5371 GB, free: 140 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003889/0.8766, allocations: 1.318 MB / 0.5384 GB, free: 139.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003391/0.88, allocations: 1.289 MB / 0.5396 GB, free: 139.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00754/0.8875, allocations: 6.265 MB / 0.5458 GB, free: 136.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003171/0.8907, allocations: 324.2 kB / 0.5461 GB, free: 136.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003274/0.891, allocations: 340.3 kB / 0.5464 GB, free: 136.7 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.00195/0.893, allocations: 1.818 MB / 0.5482 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003292/0.8933, allocations: 311 kB / 0.5485 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005815/0.8991, allocations: 3.617 MB / 0.552 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.816e-05/0.8992, allocations: 24.42 kB / 0.552 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.8992, allocations: 3.812 kB / 0.552 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.07e-05/0.8992, allocations: 3.797 kB / 0.552 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01094/0.9101, allocations: 8.031 MB / 0.5599 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.64e-06/0.9102, allocations: 0 / 0.5599 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001018/0.9112, allocations: 271 kB / 0.5601 GB, free: 131.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003072/0.9143, allocations: 1.123 MB / 0.5612 GB, free: 130.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.892e-05/0.9144, allocations: 27.98 kB / 0.5612 GB, free: 130.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006116/0.9205, allocations: 5.895 MB / 0.567 GB, free: 124.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.9205, allocations: 2.938 kB / 0.567 GB, free: 124.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00773/0.9283, allocations: 6.185 MB / 0.573 GB, free: 118.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006148/0.9289, allocations: 361 kB / 0.5734 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002997/0.9292, allocations: 31.95 kB / 0.5734 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001139/0.9303, allocations: 119.8 kB / 0.5735 GB, free: 117.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001819/0.9305, allocations: 88.88 kB / 0.5736 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001004/0.9306, allocations: 42.27 kB / 0.5737 GB, free: 117.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002236/0.9329, allocations: 2.22 MB / 0.5758 GB, free: 115.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.9329, allocations: 4 kB / 0.5758 GB, free: 115.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003353/0.9362, allocations: 0.9341 MB / 0.5767 GB, free: 114.6 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.007945/0.9442, allocations: 7.006 MB / 0.5836 GB, free: 107.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005887/0.9501, allocations: 4.98 MB / 0.5884 GB, free: 102.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.9501, allocations: 4 kB / 0.5885 GB, free: 102.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001783/0.9519, allocations: 1.651 MB / 0.5901 GB, free: 100.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001059/0.953, allocations: 322.7 kB / 0.5904 GB, free: 100.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.224/1.177, allocations: 114 MB / 0.7017 GB, free: 158.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003369/1.18, allocations: 2.924 MB / 0.7045 GB, free: 157.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004633/1.185, allocations: 1.734 MB / 0.7062 GB, free: 157.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00208/1.187, allocations: 1.589 MB / 0.7078 GB, free: 157.3 MB / 462.1 MB Notification: Performance of SimCode: time 5.21e-07/1.187, allocations: 1.375 kB / 0.7078 GB, free: 157.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0909/1.278, allocations: 68.34 MB / 0.7745 GB, free: 102.9 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001372/1.278, allocations: 237.3 kB / 0.7747 GB, free: 102.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.939/5.217, allocations: 0 / 0.7747 GB, free: 102.6 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat does not exist to compare? outputFormat=mat