Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.MultiBody.Forces.Spring2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Spring2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Spring2",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.001524/0.001524, allocations: 186.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.023/2.023, allocations: 205.4 MB / 222.5 MB, free: 9.145 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001182/0.001182, allocations: 94.03 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5304/0.5304, allocations: 43.55 MB / 362.7 MB, free: 52.22 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000489/0.0004889, allocations: 15.98 kB / 431.5 MB, free: 6.098 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1372/0.1377, allocations: 58.85 MB / 490.3 MB, free: 11.17 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4985/0.6362, allocations: 103 MB / 0.5794 GB, free: 15.56 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003067/0.6366, allocations: 75.97 kB / 0.5795 GB, free: 15.48 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7844/1.421, allocations: 98.64 MB / 0.6758 GB, free: 86.36 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.537e-06/1.421, allocations: 0.7969 kB / 0.6758 GB, free: 86.36 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003417/1.421, allocations: 90.97 kB / 0.6759 GB, free: 86.36 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1730 * Number of variables: 1730 Notification: Performance of Generate backend data structure: time 0.04768/1.469, allocations: 6.222 MB / 0.682 GB, free: 84.54 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.479e-05/1.469, allocations: 11.47 kB / 0.682 GB, free: 84.54 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004736/1.474, allocations: 0.894 MB / 0.6829 GB, free: 84.46 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0264/1.5, allocations: 2.931 MB / 0.6857 GB, free: 84.13 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0275/1.528, allocations: 7.285 MB / 0.6928 GB, free: 83.51 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000539/1.529, allocations: 370.7 kB / 0.6932 GB, free: 83.5 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002647/1.531, allocations: 497.6 kB / 0.6937 GB, free: 83.49 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03758/1.569, allocations: 12.64 MB / 0.706 GB, free: 80.24 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003842/1.569, allocations: 74.36 kB / 0.7061 GB, free: 80.23 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001523/1.571, allocations: 243 kB / 0.7063 GB, free: 80.23 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00308/1.574, allocations: 1.238 MB / 0.7075 GB, free: 80.23 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04017/1.614, allocations: 10.8 MB / 0.7181 GB, free: 80.16 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09251/1.707, allocations: 58.02 MB / 0.7747 GB, free: 39.22 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02546/1.732, allocations: 5.375 MB / 0.78 GB, free: 37.34 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02931/1.762, allocations: 12.33 MB / 0.792 GB, free: 30.45 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.772e-05/1.762, allocations: 66.16 kB / 0.7921 GB, free: 30.39 MB / 490.7 MB Notification: Performance of pre-optimization done (n=219): time 6.402e-06/1.762, allocations: 0 / 0.7921 GB, free: 30.39 MB / 490.7 MB Notification: Performance of matching and sorting (n=258): time 0.1134/1.875, allocations: 25.23 MB / 0.8167 GB, free: 18.12 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003749/1.879, allocations: 4.653 MB / 0.8213 GB, free: 13.18 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01092/1.89, allocations: 4.139 MB / 0.8253 GB, free: 9.695 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008977/1.891, allocations: 65.59 kB / 0.8254 GB, free: 9.629 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003104/1.894, allocations: 3.427 MB / 0.8287 GB, free: 6.52 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001888/1.896, allocations: 1.017 MB / 0.8297 GB, free: 5.621 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001656/1.898, allocations: 150.8 kB / 0.8299 GB, free: 5.477 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0006653/1.898, allocations: 0.6318 MB / 0.8305 GB, free: 4.934 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00928/1.908, allocations: 3.227 MB / 0.8336 GB, free: 2.25 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01697/1.925, allocations: 7.675 MB / 0.8411 GB, free: 9.766 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01384/1.938, allocations: 4.78 MB / 0.8458 GB, free: 5.539 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001552/1.939, allocations: 40 kB / 0.8458 GB, free: 5.5 MB / 0.4949 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.05076/1.989, allocations: 13.13 MB / 0.8586 GB, free: 9.406 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001456/1.99, allocations: 72 kB / 0.8587 GB, free: 9.336 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02814/2.018, allocations: 6.495 MB / 0.8651 GB, free: 2.809 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3866/2.405, allocations: 3.351 MB / 0.8683 GB, free: 102.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01172/2.416, allocations: 1.727 MB / 0.87 GB, free: 102.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03087/2.447, allocations: 16.21 MB / 0.8858 GB, free: 94.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01229/2.46, allocations: 0.7651 MB / 0.8866 GB, free: 94.59 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002096/2.462, allocations: 455.1 kB / 0.887 GB, free: 94.59 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 682 * Number of states: 0 () * Number of discrete variables: 45 (fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (906): * Single equations (assignments): 886 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(4,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 13,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007107/2.469, allocations: 2.335 MB / 0.8893 GB, free: 94.48 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001236/2.47, allocations: 424.5 kB / 0.8897 GB, free: 94.48 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02688/2.497, allocations: 7.104 MB / 0.8967 GB, free: 94.23 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02666/2.524, allocations: 6.433 MB / 0.9029 GB, free: 94.03 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.237e-05/2.524, allocations: 10.22 kB / 0.9029 GB, free: 94.03 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-05/2.524, allocations: 13.31 kB / 0.903 GB, free: 94.03 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.056/2.58, allocations: 15.41 MB / 0.918 GB, free: 93.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-05/2.58, allocations: 6.781 kB / 0.918 GB, free: 93.09 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004301/2.584, allocations: 454.4 kB / 0.9184 GB, free: 93.07 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01949/2.604, allocations: 3.337 MB / 0.9217 GB, free: 92.57 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009164/2.605, allocations: 85.12 kB / 0.9218 GB, free: 92.54 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03044/2.635, allocations: 16.86 MB / 0.9383 GB, free: 82.39 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003591/2.639, allocations: 4.461 MB / 0.9426 GB, free: 78.13 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03369/2.673, allocations: 11.32 MB / 0.9537 GB, free: 73.72 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001815/2.675, allocations: 497 kB / 0.9541 GB, free: 73.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001757/2.676, allocations: 79.8 kB / 0.9542 GB, free: 73.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006013/2.682, allocations: 336.2 kB / 0.9545 GB, free: 73.35 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001276/2.684, allocations: 196.9 kB / 0.9547 GB, free: 73.32 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003423/2.684, allocations: 84.84 kB / 0.9548 GB, free: 73.31 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.008369/2.692, allocations: 2.901 MB / 0.9576 GB, free: 72.36 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.12e-07/2.693, allocations: 3.25 kB / 0.9576 GB, free: 72.36 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01055/2.703, allocations: 1.531 MB / 0.9591 GB, free: 72.21 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 36 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3]) * 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 (196): * Single equations (assignments): 182 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 8,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03443/2.738, allocations: 13.26 MB / 0.9721 GB, free: 65.91 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02651/2.764, allocations: 9.379 MB / 0.9812 GB, free: 62.35 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.289e-05/2.764, allocations: 3.781 kB / 0.9812 GB, free: 62.35 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01561/2.78, allocations: 4.665 MB / 0.9858 GB, free: 60.21 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004852/2.785, allocations: 0.513 MB / 0.9863 GB, free: 59.99 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5179/3.303, allocations: 152.4 MB / 1.135 GB, free: 55.91 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00701/3.31, allocations: 3.819 MB / 1.139 GB, free: 55.11 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005051/3.315, allocations: 2.334 MB / 1.141 GB, free: 55.1 MB / 0.5261 GB Notification: Performance of SimCode: time 1.423e-06/3.315, allocations: 6.281 kB / 1.141 GB, free: 55.1 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.114/9.429, allocations: 312.8 MB / 1.447 GB, free: 11.03 MB / 0.5417 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Spring2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Spring2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2_res.mat does not exist to compare? outputFormat=mat