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.001565/0.00157, allocations: 181.3 kB / 13.66 MB, free: 1.664 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.156/2.156, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001079/0.001079, allocations: 86.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2859/0.2859, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.44e-05/3.457e-05, allocations: 4 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1133, allocations: 58.86 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5726/0.6859, allocations: 112.6 MB / 0.5829 GB, free: 7.223 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003967/0.6864, allocations: 77.81 kB / 0.5829 GB, free: 7.188 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.043/1.73, allocations: 136.5 MB / 0.7162 GB, free: 97.94 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.395e-06/1.73, allocations: 0 / 0.7162 GB, free: 97.94 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005357/1.73, allocations: 134.6 kB / 0.7163 GB, free: 97.93 MB / 0.4948 GB 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.03273/1.763, allocations: 7.047 MB / 0.7232 GB, free: 95.46 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.35e-05/1.763, allocations: 8.531 kB / 0.7232 GB, free: 95.46 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005819/1.769, allocations: 1.145 MB / 0.7243 GB, free: 95.37 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05744/1.826, allocations: 7.567 MB / 0.7317 GB, free: 94.91 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03559/1.862, allocations: 9.811 MB / 0.7413 GB, free: 94 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006475/1.863, allocations: 494.5 kB / 0.7418 GB, free: 93.98 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003902/1.867, allocations: 0.6543 MB / 0.7424 GB, free: 93.97 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05366/1.92, allocations: 16.57 MB / 0.7586 GB, free: 90.08 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005675/1.921, allocations: 100.1 kB / 0.7587 GB, free: 90.07 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003665/1.925, allocations: 311.5 kB / 0.759 GB, free: 90.07 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00372/1.928, allocations: 1.583 MB / 0.7605 GB, free: 90.06 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04647/1.975, allocations: 13.48 MB / 0.7737 GB, free: 89.38 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1283/2.103, allocations: 74.35 MB / 0.8463 GB, free: 31.42 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03807/2.141, allocations: 7.656 MB / 0.8538 GB, free: 25.04 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008057/2.149, allocations: 3.912 MB / 0.8576 GB, free: 21.43 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04702/2.197, allocations: 18.61 MB / 0.8758 GB, free: 4.938 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.752e-05/2.197, allocations: 72.02 kB / 0.8758 GB, free: 4.863 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=281): time 1.183e-05/2.197, allocations: 0 / 0.8758 GB, free: 4.863 MB / 0.4948 GB Notification: Performance of matching and sorting (n=363): time 0.6166/2.813, allocations: 39.11 MB / 0.914 GB, free: 103.9 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001257/2.814, allocations: 270.9 kB / 0.9143 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01494/2.828, allocations: 5.322 MB / 0.9195 GB, free: 103.1 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001002/2.83, allocations: 88.05 kB / 0.9196 GB, free: 103.1 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004257/2.834, allocations: 4.563 MB / 0.924 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002319/2.836, allocations: 1.336 MB / 0.9253 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001728/2.838, allocations: 183.2 kB / 0.9255 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0007524/2.839, allocations: 0.6984 MB / 0.9262 GB, free: 99.98 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009424/2.848, allocations: 3.644 MB / 0.9298 GB, free: 99.96 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01284/2.861, allocations: 8.837 MB / 0.9384 GB, free: 93.3 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01287/2.874, allocations: 5.556 MB / 0.9438 GB, free: 93.24 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001993/2.874, allocations: 52.78 kB / 0.9439 GB, free: 93.24 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1201) (initialization): time 0.05372/2.928, allocations: 15.63 MB / 0.9591 GB, free: 91.49 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001579/2.928, allocations: 89.09 kB / 0.9592 GB, free: 91.49 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002797/2.928, allocations: 182.6 kB / 0.9594 GB, free: 91.49 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02341/2.952, allocations: 4.024 MB / 0.9633 GB, free: 90.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0134/2.965, allocations: 2.042 MB / 0.9653 GB, free: 90.65 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05108/3.016, allocations: 20.82 MB / 0.9856 GB, free: 81.39 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01204/3.029, allocations: 0.5426 MB / 0.9862 GB, free: 81.23 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002312/3.031, allocations: 0.521 MB / 0.9867 GB, free: 81.16 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 831 * 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 (1081): * Single equations (assignments): 1076 * 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 {(1,100.0%) 45,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003873/3.035, allocations: 0.8099 MB / 0.9875 GB, free: 80.51 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001927/3.037, allocations: 0.5791 MB / 0.988 GB, free: 80.19 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03856/3.075, allocations: 9.436 MB / 0.9973 GB, free: 77.2 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.069e-05/3.076, allocations: 35.67 kB / 0.9973 GB, free: 77.2 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.761e-05/3.076, allocations: 17.03 kB / 0.9973 GB, free: 77.2 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.658e-05/3.076, allocations: 20.28 kB / 0.9973 GB, free: 77.2 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06798/3.144, allocations: 18.89 MB / 1.016 GB, free: 65.83 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.284e-05/3.144, allocations: 0 / 1.016 GB, free: 65.83 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005223/3.149, allocations: 0.4924 MB / 1.016 GB, free: 65.43 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0224/3.172, allocations: 3.627 MB / 1.02 GB, free: 63.07 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000948/3.173, allocations: 63.7 kB / 1.02 GB, free: 63.02 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04466/3.217, allocations: 18.72 MB / 1.038 GB, free: 46.95 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/3.217, allocations: 0 / 1.038 GB, free: 46.95 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04571/3.263, allocations: 13.91 MB / 1.052 GB, free: 35.36 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004786/3.268, allocations: 1.12 MB / 1.053 GB, free: 34.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002299/3.27, allocations: 52.55 kB / 1.053 GB, free: 34.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006401/3.277, allocations: 232.5 kB / 1.053 GB, free: 34.12 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00153/3.278, allocations: 216.4 kB / 1.053 GB, free: 33.98 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004291/3.279, allocations: 92 kB / 1.053 GB, free: 33.9 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.009199/3.288, allocations: 3.726 MB / 1.057 GB, free: 30.61 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.282e-06/3.288, allocations: 0 / 1.057 GB, free: 30.61 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01177/3.3, allocations: 1.845 MB / 1.059 GB, free: 28.78 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (263): * Single equations (assignments): 258 * 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.05155/3.351, allocations: 14.74 MB / 1.073 GB, free: 14.68 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02275/3.374, allocations: 9.387 MB / 1.082 GB, free: 5.27 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.838e-06/3.374, allocations: 12 kB / 1.082 GB, free: 5.258 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.009562/3.384, allocations: 3.682 MB / 1.086 GB, free: 1.555 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006668/3.39, allocations: 0.7115 MB / 1.087 GB, free: 0.8633 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4345/3.825, allocations: 16.04 MB / 1.102 GB, free: 109.9 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01424/3.839, allocations: 5.017 MB / 1.107 GB, free: 109 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008236/3.848, allocations: 3.324 MB / 1.11 GB, free: 109 MB / 0.5261 GB Notification: Performance of SimCode: time 1.724e-06/3.848, allocations: 0 / 1.11 GB, free: 109 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.164/10.01, allocations: 186.6 MB / 1.293 GB, free: 101.6 MB / 0.5417 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