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.002393/0.002392, allocations: 179.4 kB / 8.363 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.202/2.202, allocations: 205.3 MB / 214.1 MB, free: 14.13 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.001075/0.001075, allocations: 84.2 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2945/0.2945, allocations: 43.49 MB / 353.6 MB, free: 2.258 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.103e-05/2.112e-05, allocations: 4.203 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4129/0.413, allocations: 58.86 MB / 477.2 MB, free: 5.16 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1923/0.6054, allocations: 102.3 MB / 0.5659 GB, free: 12.94 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003187/0.6057, allocations: 79.95 kB / 0.5659 GB, free: 12.86 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.7622/1.368, allocations: 96.6 MB / 0.6603 GB, free: 105.2 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.184e-06/1.368, allocations: 0 / 0.6603 GB, free: 105.2 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0003679/1.368, allocations: 96.58 kB / 0.6604 GB, free: 105.2 MB / 475.1 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.0464/1.415, allocations: 5.923 MB / 0.6661 GB, free: 103.3 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.815e-05/1.415, allocations: 12.81 kB / 0.6662 GB, free: 103.3 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02614/1.441, allocations: 2.941 MB / 0.669 GB, free: 102.9 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02797/1.469, allocations: 7.245 MB / 0.6761 GB, free: 102.2 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003703/1.469, allocations: 158.5 kB / 0.6763 GB, free: 102.2 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002775/1.472, allocations: 288.2 kB / 0.6765 GB, free: 102.2 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01878/1.491, allocations: 7.328 MB / 0.6837 GB, free: 102.2 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02794/1.519, allocations: 10.92 MB / 0.6944 GB, free: 96.5 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003169/1.519, allocations: 75.2 kB / 0.6944 GB, free: 96.5 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00222/1.522, allocations: 42.78 kB / 0.6945 GB, free: 96.49 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003405/1.525, allocations: 1.245 MB / 0.6957 GB, free: 96.28 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1278/1.653, allocations: 57.07 MB / 0.7514 GB, free: 49.93 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01076/1.664, allocations: 3.607 MB / 0.7549 GB, free: 46.48 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007335/1.671, allocations: 2.293 MB / 0.7572 GB, free: 44.39 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003467/1.675, allocations: 1.654 MB / 0.7588 GB, free: 42.6 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001122/1.675, allocations: 55.88 kB / 0.7588 GB, free: 42.54 MB / 475.1 MB Notification: Performance of pre-optimization done (n=226): time 1.028e-05/1.675, allocations: 0 / 0.7588 GB, free: 42.54 MB / 475.1 MB Notification: Performance of matching and sorting (n=259): time 0.1008/1.776, allocations: 20.68 MB / 0.779 GB, free: 21.71 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.902e-05/1.776, allocations: 257.3 kB / 0.7793 GB, free: 21.41 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007436/1.783, allocations: 3.483 MB / 0.7827 GB, free: 17.91 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008059/1.784, allocations: 29.7 kB / 0.7827 GB, free: 17.87 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002793/1.787, allocations: 3.515 MB / 0.7861 GB, free: 14.31 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001756/1.789, allocations: 1.006 MB / 0.7871 GB, free: 13.29 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001009/1.79, allocations: 0 / 0.7871 GB, free: 13.29 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.0005221/1.79, allocations: 0.6411 MB / 0.7877 GB, free: 12.64 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007037/1.798, allocations: 2.963 MB / 0.7906 GB, free: 9.676 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009815/1.807, allocations: 7.326 MB / 0.7978 GB, free: 176 kB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0117/1.819, allocations: 4.571 MB / 0.8023 GB, free: 11.6 MB / 491.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001639/1.819, allocations: 44 kB / 0.8023 GB, free: 11.56 MB / 491.1 MB Notification: Performance of matching and sorting (n=1009) (initialization): time 0.04575/1.865, allocations: 11.96 MB / 0.814 GB, free: 15.56 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001427/1.865, allocations: 68.56 kB / 0.814 GB, free: 15.5 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03066/1.896, allocations: 6.256 MB / 0.8202 GB, free: 9.203 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02071/1.917, allocations: 3.275 MB / 0.8234 GB, free: 5.895 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01157/1.928, allocations: 1.778 MB / 0.8251 GB, free: 4.113 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4125/2.341, allocations: 15.05 MB / 0.8398 GB, free: 112 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0124/2.353, allocations: 0.6289 MB / 0.8404 GB, free: 112 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002403/2.356, allocations: 475 kB / 0.8409 GB, free: 112 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 708 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (930): * Single equations (assignments): 910 * 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.003248/2.359, allocations: 0.4982 MB / 0.8413 GB, free: 111.9 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0287/2.388, allocations: 6.942 MB / 0.8481 GB, free: 111.7 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001874/2.39, allocations: 389.3 kB / 0.8485 GB, free: 111.7 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02724/2.417, allocations: 6.796 MB / 0.8551 GB, free: 111.4 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02411/2.441, allocations: 6.156 MB / 0.8611 GB, free: 111.2 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.125e-05/2.441, allocations: 9.25 kB / 0.8611 GB, free: 111.2 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.576e-05/2.441, allocations: 10.64 kB / 0.8612 GB, free: 111.2 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04988/2.491, allocations: 14.76 MB / 0.8756 GB, free: 107.3 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.711e-05/2.491, allocations: 3.125 kB / 0.8756 GB, free: 107.3 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004246/2.496, allocations: 446.8 kB / 0.876 GB, free: 107.3 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01869/2.514, allocations: 3.274 MB / 0.8792 GB, free: 106.8 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008989/2.515, allocations: 48.41 kB / 0.8792 GB, free: 106.8 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02895/2.544, allocations: 16 MB / 0.8949 GB, free: 97.23 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003387/2.548, allocations: 4.242 MB / 0.899 GB, free: 93.18 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03394/2.582, allocations: 10.79 MB / 0.9096 GB, free: 89.15 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001669/2.584, allocations: 453.3 kB / 0.91 GB, free: 88.83 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00181/2.585, allocations: 35.5 kB / 0.91 GB, free: 88.82 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005963/2.591, allocations: 300.4 kB / 0.9103 GB, free: 88.82 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001227/2.593, allocations: 193.1 kB / 0.9105 GB, free: 88.8 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003392/2.593, allocations: 83.39 kB / 0.9106 GB, free: 88.78 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.005303/2.598, allocations: 2.311 MB / 0.9128 GB, free: 87.92 MB / 0.4952 GB Notification: Performance of sort global known variables: time 6.52e-07/2.598, allocations: 0 / 0.9128 GB, free: 87.92 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.01075/2.609, allocations: 1.402 MB / 0.9142 GB, free: 87.92 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 36 ($STATESET5649076618.x[3],$STATESET5649076618.x[2],$STATESET5649076618.x[1],$STATESET5649076617.x[3],$STATESET5649076617.x[2],$STATESET5649076617.x[1],$STATESET5649076616.x[3],$STATESET5649076616.x[2],$STATESET5649076616.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (195): * Single equations (assignments): 181 * 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.03264/2.642, allocations: 12.37 MB / 0.9263 GB, free: 80.02 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.02396/2.666, allocations: 8.818 MB / 0.9349 GB, free: 71.88 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 1.237e-05/2.666, allocations: 8 kB / 0.9349 GB, free: 71.88 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.01468/2.681, allocations: 4.528 MB / 0.9393 GB, free: 67.2 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004195/2.685, allocations: 424.2 kB / 0.9397 GB, free: 66.81 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03775/2.723, allocations: 13.39 MB / 0.9528 GB, free: 53.69 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006641/2.729, allocations: 3.807 MB / 0.9565 GB, free: 49.87 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004959/2.734, allocations: 2.307 MB / 0.9588 GB, free: 47.56 MB / 0.4952 GB Notification: Performance of SimCode: time 1.412e-06/2.734, allocations: 0 / 0.9588 GB, free: 47.56 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.5/9.234, allocations: 309.4 MB / 1.261 GB, free: 151.5 MB / 0.5421 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