Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.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.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",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.002177/0.002177, 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.318/2.318, 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.001122/0.001122, allocations: 93.67 kB / 262.1 MB, free: 13.88 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.2997/0.2997, allocations: 43.49 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.595e-05/2.609e-05, allocations: 4.219 kB / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3995/0.3996, allocations: 58.86 MB / 477.2 MB, free: 5.273 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2095/0.6091, allocations: 111.9 MB / 0.5753 GB, free: 3.297 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003023/0.6095, allocations: 79.94 kB / 0.5754 GB, free: 3.219 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.9031/1.513, allocations: 133.8 MB / 0.706 GB, free: 99.38 MB / 475.1 MB Notification: Performance of FrontEnd: time 3.286e-06/1.513, allocations: 0 / 0.706 GB, free: 99.38 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0005178/1.513, allocations: 136.7 kB / 0.7062 GB, free: 99.37 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: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.03087/1.544, allocations: 7.045 MB / 0.713 GB, free: 94.89 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.777e-05/1.544, allocations: 11.47 kB / 0.7131 GB, free: 94.89 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05781/1.602, allocations: 7.566 MB / 0.7204 GB, free: 87.73 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03586/1.638, allocations: 9.795 MB / 0.73 GB, free: 77.95 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004177/1.638, allocations: 212 kB / 0.7302 GB, free: 77.74 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003711/1.642, allocations: 403.7 kB / 0.7306 GB, free: 77.35 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02433/1.666, allocations: 9.658 MB / 0.74 GB, free: 67.69 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03699/1.703, allocations: 14.23 MB / 0.7539 GB, free: 52.02 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005134/1.704, allocations: 95.17 kB / 0.754 GB, free: 51.93 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003289/1.707, allocations: 44 kB / 0.7541 GB, free: 51.88 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003716/1.711, allocations: 1.576 MB / 0.7556 GB, free: 50.31 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1605/1.872, allocations: 73.69 MB / 0.8276 GB, free: 6.473 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01636/1.888, allocations: 5.13 MB / 0.8326 GB, free: 1.199 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.5167/2.405, allocations: 3.707 MB / 0.8362 GB, free: 122.9 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005214/2.41, allocations: 2.262 MB / 0.8384 GB, free: 120.9 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001286/2.41, allocations: 70.06 kB / 0.8385 GB, free: 120.9 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=296): time 1.146e-05/2.41, allocations: 0 / 0.8385 GB, free: 120.9 MB / 0.4952 GB Notification: Performance of matching and sorting (n=379): time 0.2564/2.667, allocations: 40.85 MB / 0.8784 GB, free: 114.4 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001542/2.667, allocations: 267.2 kB / 0.8786 GB, free: 114.2 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01712/2.684, allocations: 4.668 MB / 0.8832 GB, free: 112.5 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.001387/2.686, allocations: 27.39 kB / 0.8832 GB, free: 112.5 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.005949/2.692, allocations: 4.633 MB / 0.8877 GB, free: 108.9 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.00329/2.695, allocations: 1.35 MB / 0.889 GB, free: 107.8 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001988/2.697, allocations: 0 / 0.889 GB, free: 107.8 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.001309/2.698, allocations: 0.7103 MB / 0.8897 GB, free: 107.4 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01287/2.711, allocations: 3.616 MB / 0.8933 GB, free: 106 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01866/2.73, allocations: 8.899 MB / 0.9019 GB, free: 97.62 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01845/2.748, allocations: 5.545 MB / 0.9074 GB, free: 95.88 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003489/2.749, allocations: 52.03 kB / 0.9074 GB, free: 95.88 MB / 0.4952 GB Notification: Performance of matching and sorting (n=1241) (initialization): time 0.0761/2.825, allocations: 14.82 MB / 0.9219 GB, free: 86.47 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.000233/2.825, allocations: 88.97 kB / 0.922 GB, free: 86.39 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004465/2.826, allocations: 188 kB / 0.9222 GB, free: 86.2 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03229/2.858, allocations: 4.062 MB / 0.9261 GB, free: 83.39 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0189/2.877, allocations: 2.105 MB / 0.9282 GB, free: 81.55 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07305/2.95, allocations: 20.1 MB / 0.9478 GB, free: 64.29 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01747/2.968, allocations: 377.3 kB / 0.9482 GB, free: 64 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003375/2.971, allocations: 0.5341 MB / 0.9487 GB, free: 63.47 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 855 * Number of states: 0 () * Number of discrete variables: 66 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1121): * Single equations (assignments): 1116 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 44,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005731/2.977, allocations: 0.5846 MB / 0.9493 GB, free: 62.88 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.05241/3.029, allocations: 9.311 MB / 0.9583 GB, free: 55.52 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003187/3.033, allocations: 0.5438 MB / 0.9589 GB, free: 54.96 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05369/3.086, allocations: 9.367 MB / 0.968 GB, free: 46.86 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001344/3.087, allocations: 40 kB / 0.9681 GB, free: 46.82 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.536e-05/3.087, allocations: 16 kB / 0.9681 GB, free: 46.8 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001278/3.087, allocations: 19.94 kB / 0.9681 GB, free: 46.79 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09065/3.177, allocations: 17.99 MB / 0.9857 GB, free: 28.66 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.729e-05/3.178, allocations: 0 / 0.9857 GB, free: 28.66 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007031/3.185, allocations: 0.5268 MB / 0.9862 GB, free: 28.13 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03105/3.216, allocations: 3.576 MB / 0.9897 GB, free: 24.55 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001303/3.217, allocations: 8 kB / 0.9897 GB, free: 24.54 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05861/3.276, allocations: 17.67 MB / 1.007 GB, free: 6.637 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.309e-05/3.276, allocations: 0 / 1.007 GB, free: 6.637 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06509/3.341, allocations: 14.11 MB / 1.021 GB, free: 8.332 MB / 0.5108 GB Notification: Performance of postOpt removeConstants (simulation): time 0.5361/3.877, allocations: 1.082 MB / 1.022 GB, free: 122.3 MB / 0.5108 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003058/3.88, allocations: 7.156 kB / 1.022 GB, free: 122.3 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009235/3.89, allocations: 177 kB / 1.022 GB, free: 122.3 MB / 0.5108 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002382/3.892, allocations: 234.6 kB / 1.022 GB, free: 122.3 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001294/3.893, allocations: 96.98 kB / 1.022 GB, free: 122.3 MB / 0.5108 GB Notification: Performance of sorting global known variables: time 0.01312/3.907, allocations: 3.141 MB / 1.025 GB, free: 122.1 MB / 0.5108 GB Notification: Performance of sort global known variables: time 1.903e-06/3.907, allocations: 0 / 1.025 GB, free: 122.1 MB / 0.5108 GB Notification: Performance of remove unused functions: time 0.02037/3.927, allocations: 1.607 MB / 1.027 GB, free: 122.1 MB / 0.5108 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (279): * Single equations (assignments): 274 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.07327/4, allocations: 15.32 MB / 1.042 GB, free: 120 MB / 0.5108 GB Notification: Performance of simCode: created initialization part: time 0.03223/4.033, allocations: 9.143 MB / 1.051 GB, free: 119.6 MB / 0.5108 GB Notification: Performance of simCode: created event and clocks part: time 1.346e-05/4.033, allocations: 0 / 1.051 GB, free: 119.6 MB / 0.5108 GB Notification: Performance of simCode: created simulation system equations: time 0.01244/4.045, allocations: 3.637 MB / 1.054 GB, free: 119.3 MB / 0.5108 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008077/4.053, allocations: 0.5951 MB / 1.055 GB, free: 119.3 MB / 0.5108 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07395/4.127, allocations: 15.72 MB / 1.07 GB, free: 113.9 MB / 0.5108 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01709/4.144, allocations: 5.026 MB / 1.075 GB, free: 112.3 MB / 0.5108 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01072/4.155, allocations: 3.316 MB / 1.078 GB, free: 109.6 MB / 0.5108 GB Notification: Performance of SimCode: time 2.014e-06/4.155, allocations: 0 / 1.078 GB, free: 109.6 MB / 0.5108 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.735/9.891, allocations: 183.8 MB / 1.258 GB, free: 137 MB / 0.5265 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat does not exist to compare? outputFormat=mat