Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.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.InitSpringConstant,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",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.0009477/0.0009477, allocations: 99.08 kB / 16.94 MB, free: 5.961 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.001077/0.001077, allocations: 181.9 kB / 17.82 MB, free: 5.648 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.453/1.453, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004619/0.0004621, allocations: 19.44 kB / 280.9 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09444/0.09491, allocations: 47.57 MB / 328.4 MB, free: 4.004 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.02624/0.1212, allocations: 29.66 MB / 358.1 MB, free: 6.258 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01627/0.1375, allocations: 7.719 MB / 365.8 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005066/0.1426, allocations: 143.6 kB / 365.9 MB, free: 14.38 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004504/0.1471, allocations: 1.427 MB / 367.4 MB, free: 12.95 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01292/0.1601, allocations: 4.352 MB / 371.7 MB, free: 8.582 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002712/0.1628, allocations: 0.4952 MB / 372.2 MB, free: 8.086 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004607/0.1674, allocations: 1.907 MB / 374.1 MB, free: 6.176 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00412/0.1716, allocations: 2.947 MB / 377.1 MB, free: 3.172 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001325/0.1729, allocations: 0.8681 MB / 377.9 MB, free: 2.301 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001327/0.1743, allocations: 1.121 MB / 379.1 MB, free: 1.176 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002619/0.1745, allocations: 120 kB / 379.2 MB, free: 1.059 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001408/0.1759, allocations: 0.7685 MB / 379.9 MB, free: 296 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2009/0.3768, allocations: 1.297 MB / 381.2 MB, free: 12.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001328/0.3782, allocations: 0.7007 MB / 381.9 MB, free: 12.72 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00722/0.3855, allocations: 4.439 MB / 386.4 MB, free: 12.4 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.3855, allocations: 3.625 kB / 386.4 MB, free: 12.4 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3855, allocations: 1.125 kB / 386.4 MB, free: 12.4 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002188/0.3857, allocations: 0 / 386.4 MB, free: 12.4 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: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.008965/0.3947, allocations: 3.425 MB / 389.8 MB, free: 10.75 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.3948, allocations: 10.41 kB / 389.8 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001791/0.3966, allocations: 0.6022 MB / 390.4 MB, free: 10.69 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007666/0.4043, allocations: 2.11 MB / 392.5 MB, free: 10.45 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006102/0.4104, allocations: 2.147 MB / 394.7 MB, free: 9.973 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002196/0.4106, allocations: 191.8 kB / 394.9 MB, free: 9.965 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009676/0.4116, allocations: 252.1 kB / 395.1 MB, free: 9.965 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01603/0.4277, allocations: 8.482 MB / 403.6 MB, free: 7.824 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001064/0.4278, allocations: 43.3 kB / 403.6 MB, free: 7.816 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003633/0.4282, allocations: 129.8 kB / 403.8 MB, free: 7.812 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002433/0.4306, allocations: 1.698 MB / 405.5 MB, free: 7.434 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0126/0.4432, allocations: 7.16 MB / 412.6 MB, free: 6.281 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04663/0.4899, allocations: 34.24 MB / 446.9 MB, free: 9.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008067/0.498, allocations: 3.29 MB / 450.1 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008947/0.507, allocations: 4.395 MB / 454.5 MB, free: 3.238 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.554e-05/0.5071, allocations: 51.67 kB / 454.6 MB, free: 3.191 MB / 350.1 MB Notification: Performance of pre-optimization done (n=121): time 5.18e-06/0.5071, allocations: 4 kB / 454.6 MB, free: 3.188 MB / 350.1 MB Notification: Performance of matching and sorting (n=129): time 0.02966/0.5368, allocations: 11.82 MB / 466.4 MB, free: 7.355 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.5369, allocations: 149.2 kB / 466.6 MB, free: 7.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005871/0.5428, allocations: 3.839 MB / 470.4 MB, free: 3.352 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000285/0.5431, allocations: 41.7 kB / 470.4 MB, free: 3.305 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00172/0.5448, allocations: 2.759 MB / 473.2 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005959/0.5455, allocations: 0.5184 MB / 473.7 MB, free: 48 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002463/0.5457, allocations: 115.3 kB / 473.8 MB, free: 15.95 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000279/0.546, allocations: 0.5252 MB / 474.4 MB, free: 15.42 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002268/0.5483, allocations: 1.673 MB / 476 MB, free: 13.74 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004463/0.5527, allocations: 5.075 MB / 481.1 MB, free: 7 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003775/0.5565, allocations: 2.864 MB / 484 MB, free: 4.246 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.422e-05/0.5566, allocations: 32 kB / 484 MB, free: 4.215 MB / 382.1 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.01075/0.5674, allocations: 6.664 MB / 490.7 MB, free: 14.27 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.019e-05/0.5675, allocations: 63.94 kB / 490.7 MB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001181/0.5676, allocations: 120 kB / 490.8 MB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005915/0.5682, allocations: 336.7 kB / 491.2 MB, free: 13.76 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004095/0.5723, allocations: 1.241 MB / 492.4 MB, free: 12.63 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003034/0.5754, allocations: 2.318 MB / 494.7 MB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005991/0.5814, allocations: 287.5 kB / 495 MB, free: 9.957 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001252/0.5826, allocations: 331.6 kB / 495.3 MB, free: 9.637 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (664): * Single equations (assignments): 660 * 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 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005307/0.588, allocations: 1.8 MB / 497.1 MB, free: 7.879 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009919/0.589, allocations: 308 kB / 497.4 MB, free: 7.574 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004944/0.5939, allocations: 2.359 MB / 499.8 MB, free: 5.199 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.139e-05/0.594, allocations: 16.12 kB / 499.8 MB, free: 5.184 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.582e-05/0.594, allocations: 12 kB / 499.8 MB, free: 5.172 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.328e-05/0.594, allocations: 3.984 kB / 499.8 MB, free: 5.168 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01258/0.6066, allocations: 5.937 MB / 0.4939 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.13e-05/0.6067, allocations: 0 / 0.4939 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008151/0.6075, allocations: 179.8 kB / 0.4941 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002018/0.6095, allocations: 0.7135 MB / 0.4948 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001158/0.6096, allocations: 20 kB / 0.4948 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005461/0.6151, allocations: 4.571 MB / 0.4993 GB, free: 9.59 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.6151, allocations: 0 / 0.4993 GB, free: 9.59 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00656/0.6217, allocations: 4.435 MB / 0.5036 GB, free: 5.098 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00174/0.6235, allocations: 0.5359 MB / 0.5041 GB, free: 4.539 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004193/0.6239, allocations: 20 kB / 0.5041 GB, free: 4.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00105/0.625, allocations: 75.88 kB / 0.5042 GB, free: 4.445 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001913/0.6252, allocations: 72.5 kB / 0.5043 GB, free: 4.375 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001007/0.6253, allocations: 37.75 kB / 0.5043 GB, free: 4.34 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003942/0.6292, allocations: 2.417 MB / 0.5067 GB, free: 1.938 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6292, allocations: 0 / 0.5067 GB, free: 1.938 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005363/0.6346, allocations: 0.8346 MB / 0.5075 GB, free: 1.105 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (96): * Single equations (assignments): 92 * 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 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007404/0.642, allocations: 5.365 MB / 0.5127 GB, free: 11.68 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006754/0.6488, allocations: 3.997 MB / 0.5166 GB, free: 7.703 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/0.6488, allocations: 4.062 kB / 0.5166 GB, free: 7.699 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001496/0.6503, allocations: 1.099 MB / 0.5177 GB, free: 6.59 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002201/0.6525, allocations: 353.6 kB / 0.518 GB, free: 6.242 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2103/0.8629, allocations: 99.36 MB / 0.6151 GB, free: 89.19 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003154/0.8661, allocations: 2.861 MB / 0.6179 GB, free: 88.42 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004045/0.8702, allocations: 1.664 MB / 0.6195 GB, free: 88.28 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001911/0.8721, allocations: 1.526 MB / 0.621 GB, free: 87.85 MB / 446.1 MB Notification: Performance of SimCode: time 1.332e-06/0.8721, allocations: 0 / 0.621 GB, free: 87.85 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08741/0.9595, allocations: 64.88 MB / 0.6843 GB, free: 31.21 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001449/0.9597, allocations: 215.9 kB / 0.6845 GB, free: 30.98 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.282/4.242, allocations: 0 / 0.6845 GB, free: 30.98 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.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.InitSpringConstant_res.mat does not exist to compare? outputFormat=mat