Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002071/0.002071, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.212/2.212, allocations: 205.3 MB / 214.1 MB, free: 14.12 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001085/0.001085, allocations: 94.19 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.902e-05/2.92e-05, allocations: 4 kB / 314.9 MB, free: 9.047 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.327/0.3271, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1505/0.4777, allocations: 94.19 MB / 456.6 MB, free: 7.996 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003018/0.478, allocations: 87.95 kB / 456.7 MB, free: 7.91 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6279/1.106, allocations: 83.34 MB / 0.5274 GB, free: 96.5 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.315e-06/1.106, allocations: 0 / 0.5274 GB, free: 96.5 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0002204/1.106, allocations: 77.62 kB / 0.5275 GB, free: 96.49 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.01352/1.12, allocations: 3.847 MB / 0.5312 GB, free: 94.77 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/1.12, allocations: 7.375 kB / 0.5312 GB, free: 94.77 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01918/1.139, allocations: 2.44 MB / 0.5336 GB, free: 94.47 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01826/1.157, allocations: 5.064 MB / 0.5386 GB, free: 93.71 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002994/1.158, allocations: 139.8 kB / 0.5387 GB, free: 93.7 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002214/1.16, allocations: 244.2 kB / 0.5389 GB, free: 93.69 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01438/1.174, allocations: 5.821 MB / 0.5446 GB, free: 91.75 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02176/1.196, allocations: 8.98 MB / 0.5534 GB, free: 86.06 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002468/1.196, allocations: 71.06 kB / 0.5534 GB, free: 85.99 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00153/1.198, allocations: 36 kB / 0.5535 GB, free: 85.96 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0023/1.2, allocations: 1.006 MB / 0.5545 GB, free: 85.13 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05811/1.258, allocations: 44.9 MB / 0.5983 GB, free: 39.06 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003147/1.262, allocations: 1.874 MB / 0.6001 GB, free: 37.04 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001509/1.263, allocations: 0.7647 MB / 0.6009 GB, free: 36.27 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000833/1.264, allocations: 0.7733 MB / 0.6016 GB, free: 35.37 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.676e-05/1.264, allocations: 55.27 kB / 0.6017 GB, free: 35.3 MB / 395.1 MB Notification: Performance of pre-optimization done (n=137): time 5.27e-06/1.264, allocations: 0 / 0.6017 GB, free: 35.3 MB / 395.1 MB Notification: Performance of matching and sorting (n=149): time 0.0224/1.287, allocations: 7.034 MB / 0.6086 GB, free: 28.15 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.419e-05/1.287, allocations: 153.2 kB / 0.6087 GB, free: 27.97 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006122/1.293, allocations: 3.003 MB / 0.6116 GB, free: 24.98 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002749/1.293, allocations: 29.7 kB / 0.6117 GB, free: 24.94 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002464/1.296, allocations: 3.127 MB / 0.6147 GB, free: 21.77 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007758/1.296, allocations: 0.5825 MB / 0.6153 GB, free: 21.18 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005985/1.297, allocations: 0 / 0.6153 GB, free: 21.18 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0003915/1.297, allocations: 0.5668 MB / 0.6158 GB, free: 20.6 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003307/1.301, allocations: 1.406 MB / 0.6172 GB, free: 19.19 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005658/1.306, allocations: 5.268 MB / 0.6224 GB, free: 11.96 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005654/1.312, allocations: 2.716 MB / 0.625 GB, free: 9.25 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001169/1.312, allocations: 40 kB / 0.6251 GB, free: 9.211 MB / 395.1 MB Notification: Performance of matching and sorting (n=784) (initialization): time 0.01468/1.327, allocations: 5.683 MB / 0.6306 GB, free: 3.523 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001008/1.327, allocations: 68.22 kB / 0.6307 GB, free: 3.457 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001761/1.327, allocations: 140 kB / 0.6308 GB, free: 3.32 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002175/1.328, allocations: 204 kB / 0.631 GB, free: 3.121 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008241/1.336, allocations: 1.443 MB / 0.6324 GB, free: 1.676 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002143/1.336, allocations: 274.9 kB / 0.6327 GB, free: 1.406 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006516/1.343, allocations: 267.4 kB / 0.6329 GB, free: 1.145 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001267/1.344, allocations: 376 kB / 0.6333 GB, free: 0.7773 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 636 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (760): * Single equations (assignments): 757 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001354/1.345, allocations: 459.6 kB / 0.6337 GB, free: 328 kB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003761/1.349, allocations: 1.49 MB / 0.6352 GB, free: 14.82 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008264/1.35, allocations: 312 kB / 0.6355 GB, free: 14.52 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003176/1.353, allocations: 1.04 MB / 0.6365 GB, free: 13.47 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-05/1.353, allocations: 16 kB / 0.6365 GB, free: 13.45 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/1.353, allocations: 0 / 0.6365 GB, free: 13.45 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.49e-05/1.353, allocations: 7.938 kB / 0.6365 GB, free: 13.45 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01539/1.369, allocations: 4.865 MB / 0.6413 GB, free: 8.32 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.355e-05/1.369, allocations: 19.94 kB / 0.6413 GB, free: 8.301 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002132/1.371, allocations: 271.5 kB / 0.6415 GB, free: 8.035 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.875e-05/1.371, allocations: 28 kB / 0.6416 GB, free: 8.008 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002172/1.371, allocations: 24 kB / 0.6416 GB, free: 7.984 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-05/1.371, allocations: 36.39 kB / 0.6416 GB, free: 7.949 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.698e-05/1.371, allocations: 27.06 kB / 0.6416 GB, free: 7.926 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006623/1.378, allocations: 4.824 MB / 0.6464 GB, free: 2.445 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00185/1.38, allocations: 496.8 kB / 0.6468 GB, free: 1.938 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006749/1.381, allocations: 23.98 kB / 0.6469 GB, free: 1.914 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002372/1.383, allocations: 67.92 kB / 0.6469 GB, free: 1.848 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003483/1.383, allocations: 143.4 kB / 0.6471 GB, free: 1.707 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001552/1.384, allocations: 64 kB / 0.6471 GB, free: 1.645 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.2921/1.676, allocations: 1.986 MB / 0.6491 GB, free: 95.71 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.112e-06/1.676, allocations: 0 / 0.6491 GB, free: 95.71 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.00718/1.683, allocations: 0.7428 MB / 0.6498 GB, free: 95.71 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 75 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 138 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006907/1.69, allocations: 9.641 MB / 0.6592 GB, free: 88.06 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.008314/1.698, allocations: 3.268 MB / 0.6624 GB, free: 88.02 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 2.58e-05/1.698, allocations: 3.25 kB / 0.6624 GB, free: 88.02 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001553/1.7, allocations: 0.6761 MB / 0.6631 GB, free: 87.96 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00329/1.703, allocations: 341.2 kB / 0.6634 GB, free: 87.94 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03237/1.736, allocations: 8.459 MB / 0.6716 GB, free: 85.82 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008186/1.744, allocations: 3.187 MB / 0.6748 GB, free: 85.03 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004392/1.748, allocations: 1.828 MB / 0.6765 GB, free: 84.7 MB / 411.1 MB Notification: Performance of SimCode: time 1.704e-06/1.749, allocations: 1.422 kB / 0.6765 GB, free: 84.7 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.157/5.905, allocations: 71.65 MB / 0.7465 GB, free: 41.94 MB / 411.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat does not exist to compare? outputFormat=mat