Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002133/0.002133, allocations: 179.6 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.582/1.582, allocations: 221.4 MB / 236 MB, free: 2.984 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 91 kB / 287 MB, free: 256 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2085/0.2085, allocations: 44.15 MB / 382 MB, free: 14.69 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.162e-05/5.165e-05, allocations: 7.938 kB / 451.9 MB, free: 9.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1413, allocations: 61.91 MB / 0.5018 GB, free: 11.38 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4708/0.6122, allocations: 114.5 MB / 0.6136 GB, free: 6.77 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004162/0.6127, allocations: 79.95 kB / 0.6136 GB, free: 6.691 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7129/1.326, allocations: 138 MB / 0.7484 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.536e-06/1.326, allocations: 0 / 0.7484 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0004132/1.326, allocations: 133 kB / 0.7485 GB, free: 113.5 MB / 0.5105 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.02202/1.348, allocations: 7.033 MB / 0.7554 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/1.348, allocations: 6.906 kB / 0.7554 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004006/1.352, allocations: 1.145 MB / 0.7565 GB, free: 110.8 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03032/1.383, allocations: 7.559 MB / 0.7639 GB, free: 110.3 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02387/1.406, allocations: 9.196 MB / 0.7729 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004373/1.407, allocations: 494.7 kB / 0.7733 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003183/1.41, allocations: 0.6507 MB / 0.774 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03603/1.446, allocations: 16.58 MB / 0.7901 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006243/1.447, allocations: 100.3 kB / 0.7902 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002813/1.45, allocations: 314 kB / 0.7905 GB, free: 101.9 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002498/1.452, allocations: 1.577 MB / 0.7921 GB, free: 101.6 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02796/1.48, allocations: 13.49 MB / 0.8053 GB, free: 94.43 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09101/1.571, allocations: 74.24 MB / 0.8778 GB, free: 21.61 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02215/1.593, allocations: 7.659 MB / 0.8852 GB, free: 13.8 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005416/1.599, allocations: 3.923 MB / 0.8891 GB, free: 9.863 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03556/1.635, allocations: 18.54 MB / 0.9072 GB, free: 6.793 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.75e-05/1.635, allocations: 68.5 kB / 0.9072 GB, free: 6.719 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=281): time 7.093e-06/1.635, allocations: 0 / 0.9072 GB, free: 6.719 MB / 0.5261 GB Notification: Performance of matching and sorting (n=363): time 0.5215/2.156, allocations: 38.59 MB / 0.9449 GB, free: 117.1 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/2.156, allocations: 270.5 kB / 0.9452 GB, free: 116.8 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009142/2.165, allocations: 5.271 MB / 0.9503 GB, free: 116.3 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0009626/2.166, allocations: 81.48 kB / 0.9504 GB, free: 116.2 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002826/2.169, allocations: 4.762 MB / 0.9551 GB, free: 114 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001812/2.171, allocations: 1.339 MB / 0.9564 GB, free: 113.2 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006025/2.172, allocations: 183.8 kB / 0.9565 GB, free: 113.2 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004499/2.172, allocations: 0.6902 MB / 0.9572 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005248/2.177, allocations: 3.642 MB / 0.9608 GB, free: 112.5 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008685/2.186, allocations: 8.836 MB / 0.9694 GB, free: 104.3 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008495/2.195, allocations: 5.568 MB / 0.9748 GB, free: 102.6 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001583/2.195, allocations: 52.22 kB / 0.9749 GB, free: 102.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1201) (initialization): time 0.03539/2.23, allocations: 15.85 MB / 0.9904 GB, free: 97.76 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001222/2.231, allocations: 82.09 kB / 0.9905 GB, free: 97.76 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002147/2.231, allocations: 182.3 kB / 0.9906 GB, free: 97.76 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01296/2.244, allocations: 4.029 MB / 0.9946 GB, free: 97.14 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007377/2.251, allocations: 2.039 MB / 0.9966 GB, free: 96.89 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02798/2.279, allocations: 20.81 MB / 1.017 GB, free: 83.39 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008975/2.288, allocations: 0.5521 MB / 1.017 GB, free: 82.91 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001989/2.29, allocations: 0.5221 MB / 1.018 GB, free: 82.4 MB / 0.5261 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.001941/2.292, allocations: 0.8028 MB / 1.019 GB, free: 81.6 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001606/2.294, allocations: 0.5747 MB / 1.019 GB, free: 81.02 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02034/2.314, allocations: 9.425 MB / 1.028 GB, free: 73.77 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.467e-05/2.314, allocations: 36 kB / 1.029 GB, free: 73.74 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.063e-05/2.314, allocations: 16 kB / 1.029 GB, free: 73.72 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.275e-05/2.314, allocations: 16.64 kB / 1.029 GB, free: 73.72 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04099/2.355, allocations: 18.88 MB / 1.047 GB, free: 58.75 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.726e-05/2.356, allocations: 7.656 kB / 1.047 GB, free: 58.75 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002897/2.358, allocations: 0.4921 MB / 1.047 GB, free: 58.34 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01179/2.37, allocations: 3.618 MB / 1.051 GB, free: 55.97 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00092/2.371, allocations: 64.14 kB / 1.051 GB, free: 55.91 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02521/2.396, allocations: 18.71 MB / 1.069 GB, free: 37.07 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/2.397, allocations: 7.953 kB / 1.069 GB, free: 37.06 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02638/2.423, allocations: 13.89 MB / 1.083 GB, free: 23.07 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00293/2.426, allocations: 0.5874 MB / 1.083 GB, free: 22.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002475/2.428, allocations: 52 kB / 1.084 GB, free: 22.41 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004439/2.433, allocations: 228.9 kB / 1.084 GB, free: 22.18 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001198/2.434, allocations: 234 kB / 1.084 GB, free: 21.95 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000296/2.434, allocations: 89.64 kB / 1.084 GB, free: 21.87 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.008056/2.442, allocations: 3.677 MB / 1.088 GB, free: 18.19 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.42e-07/2.443, allocations: 0 / 1.088 GB, free: 18.19 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01135/2.454, allocations: 1.84 MB / 1.089 GB, free: 16.36 MB / 0.5261 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.02708/2.481, allocations: 14.75 MB / 1.104 GB, free: 1.527 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.3486/2.83, allocations: 9.388 MB / 1.113 GB, free: 126.8 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.488e-06/2.83, allocations: 0.75 kB / 1.113 GB, free: 126.8 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.008883/2.839, allocations: 3.68 MB / 1.117 GB, free: 126.5 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005213/2.844, allocations: 0.713 MB / 1.117 GB, free: 126.4 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0525/2.896, allocations: 15.26 MB / 1.132 GB, free: 124 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009548/2.906, allocations: 4.988 MB / 1.137 GB, free: 123.1 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.009882/2.916, allocations: 2.787 MB / 1.14 GB, free: 123 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006716/2.923, allocations: 3.243 MB / 1.143 GB, free: 123 MB / 0.5417 GB Notification: Performance of SimCode: time 1.583e-06/2.923, allocations: 0 / 1.143 GB, free: 123 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2076/3.13, allocations: 140.7 MB / 1.28 GB, free: 31.02 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001483/3.131, allocations: 178.8 kB / 1.281 GB, free: 30.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.429/10.56, allocations: 0 / 1.281 GB, free: 30.8 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat does not exist to compare? outputFormat=mat