Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces2.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.WorldForces2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldForces2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldForces2",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.002311/0.002311, allocations: 185.2 kB / 16.41 MB, free: 5.723 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.094/2.094, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.00114/0.00114, allocations: 85.55 kB / 270.9 MB, free: 8.383 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.5406/0.5406, allocations: 43.55 MB / 362.7 MB, free: 52.11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004753/0.0004754, allocations: 12 kB / 431.5 MB, free: 6.078 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1282, allocations: 58.85 MB / 490.3 MB, free: 11.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5037/0.632, allocations: 105.8 MB / 0.5821 GB, free: 12.82 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003074/0.6323, allocations: 75.97 kB / 0.5822 GB, free: 12.75 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9417/1.574, allocations: 137.7 MB / 0.7167 GB, free: 83.89 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.737e-06/1.574, allocations: 4 kB / 0.7167 GB, free: 83.88 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0007938/1.575, allocations: 138 kB / 0.7168 GB, free: 83.88 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: 2370 * Number of variables: 2370 Notification: Performance of Generate backend data structure: time 0.04847/1.623, allocations: 7.28 MB / 0.724 GB, free: 80.93 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.754e-05/1.624, allocations: 8.25 kB / 0.724 GB, free: 80.93 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008964/1.633, allocations: 1.185 MB / 0.7251 GB, free: 80.84 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08741/1.72, allocations: 9.488 MB / 0.7344 GB, free: 80.35 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03754/1.758, allocations: 8.786 MB / 0.743 GB, free: 78.78 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007446/1.758, allocations: 0.509 MB / 0.7435 GB, free: 78.57 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004155/1.763, allocations: 0.6806 MB / 0.7441 GB, free: 78.38 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05315/1.816, allocations: 16.12 MB / 0.7599 GB, free: 70.02 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005611/1.816, allocations: 107.1 kB / 0.76 GB, free: 69.96 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003467/1.82, allocations: 327.2 kB / 0.7603 GB, free: 69.78 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003336/1.823, allocations: 1.466 MB / 0.7617 GB, free: 69.51 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0399/1.863, allocations: 12.86 MB / 0.7743 GB, free: 65.46 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1237/1.987, allocations: 70.8 MB / 0.8434 GB, free: 14.69 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02661/2.014, allocations: 5.899 MB / 0.8492 GB, free: 8.629 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003978/2.014, allocations: 56.5 kB / 0.8492 GB, free: 8.59 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.84e-05/2.014, allocations: 64.06 kB / 0.8493 GB, free: 8.52 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=242): time 7.374e-06/2.014, allocations: 0 / 0.8493 GB, free: 8.52 MB / 0.4948 GB Notification: Performance of matching and sorting (n=260): time 0.4843/2.499, allocations: 22.5 MB / 0.8713 GB, free: 87.41 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000135/2.499, allocations: 260.3 kB / 0.8715 GB, free: 87.12 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01906/2.518, allocations: 6.176 MB / 0.8775 GB, free: 86.64 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007934/2.519, allocations: 67.33 kB / 0.8776 GB, free: 86.61 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.005016/2.524, allocations: 4.613 MB / 0.8821 GB, free: 84.22 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001909/2.526, allocations: 1.005 MB / 0.8831 GB, free: 83.65 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001519/2.527, allocations: 169.2 kB / 0.8833 GB, free: 83.65 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001013/2.528, allocations: 0.6617 MB / 0.8839 GB, free: 83.32 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008566/2.537, allocations: 2.877 MB / 0.8867 GB, free: 83.3 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01267/2.55, allocations: 8.006 MB / 0.8945 GB, free: 76.65 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01159/2.561, allocations: 4.682 MB / 0.8991 GB, free: 76.62 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002481/2.562, allocations: 51.78 kB / 0.8991 GB, free: 76.62 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1099) (initialization): time 0.03337/2.595, allocations: 10.97 MB / 0.9099 GB, free: 73.5 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001932/2.595, allocations: 83.53 kB / 0.9099 GB, free: 73.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000342/2.596, allocations: 187.5 kB / 0.9101 GB, free: 73.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003397/2.599, allocations: 0.8042 MB / 0.9109 GB, free: 73.35 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01225/2.611, allocations: 1.929 MB / 0.9128 GB, free: 73.12 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01407/2.625, allocations: 8.464 MB / 0.9211 GB, free: 67.24 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01075/2.636, allocations: 465.4 kB / 0.9215 GB, free: 67.08 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002219/2.638, allocations: 0.503 MB / 0.922 GB, free: 67.01 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 831 * Number of states: 0 () * Number of discrete variables: 57 (worldForce2.color[3],worldForce2.color[2],worldForce2.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],worldForce1.color[3],worldForce1.color[2],worldForce1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldForce.color[3],worldForce.color[2],worldForce.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1036): * Single equations (assignments): 1030 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01025/2.649, allocations: 3.218 MB / 0.9251 GB, free: 65.52 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001894/2.651, allocations: 0.585 MB / 0.9257 GB, free: 65.2 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01372/2.664, allocations: 4.336 MB / 0.9299 GB, free: 63.53 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.555e-05/2.665, allocations: 32.67 kB / 0.93 GB, free: 63.53 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.918e-05/2.665, allocations: 7.281 kB / 0.93 GB, free: 63.53 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.396e-05/2.665, allocations: 14.2 kB / 0.93 GB, free: 63.53 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0348/2.699, allocations: 11.24 MB / 0.941 GB, free: 59.33 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.046e-05/2.7, allocations: 3.719 kB / 0.941 GB, free: 59.33 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004158/2.704, allocations: 404.9 kB / 0.9414 GB, free: 59.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002577/2.706, allocations: 0.5097 MB / 0.9419 GB, free: 59.16 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006318/2.707, allocations: 39.84 kB / 0.9419 GB, free: 59.13 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01202/2.719, allocations: 7.557 MB / 0.9493 GB, free: 53.57 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/2.719, allocations: 0 / 0.9493 GB, free: 53.57 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01842/2.738, allocations: 7.726 MB / 0.9568 GB, free: 50.12 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004188/2.742, allocations: 1.002 MB / 0.9578 GB, free: 49.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001827/2.744, allocations: 42.53 kB / 0.9578 GB, free: 49.49 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004655/2.748, allocations: 142 kB / 0.958 GB, free: 49.46 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007239/2.749, allocations: 151.8 kB / 0.9581 GB, free: 49.43 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002809/2.749, allocations: 73.45 kB / 0.9582 GB, free: 49.41 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01133/2.761, allocations: 4.402 MB / 0.9625 GB, free: 47.96 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.51e-07/2.761, allocations: 0 / 0.9625 GB, free: 47.96 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01336/2.774, allocations: 1.519 MB / 0.964 GB, free: 47.79 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w) * 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 (215): * Single equations (assignments): 209 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 10,(1,100.0%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02052/2.795, allocations: 8.591 MB / 0.9724 GB, free: 43.61 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01865/2.813, allocations: 7.243 MB / 0.9794 GB, free: 40.29 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.095e-05/2.814, allocations: 0 / 0.9794 GB, free: 40.29 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005943/2.819, allocations: 2.443 MB / 0.9818 GB, free: 38.09 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007201/2.827, allocations: 0.7567 MB / 0.9826 GB, free: 37.45 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5869/3.414, allocations: 187.3 MB / 1.165 GB, free: 27.58 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01412/3.428, allocations: 5.043 MB / 1.17 GB, free: 26.72 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009176/3.437, allocations: 3.304 MB / 1.174 GB, free: 26.71 MB / 0.5417 GB Notification: Performance of SimCode: time 1.844e-06/3.437, allocations: 0 / 1.174 GB, free: 26.71 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.832/9.269, allocations: 214.5 MB / 1.383 GB, free: 57.25 MB / 0.5417 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldForces2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldForces2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces2_res.mat does not exist to compare? outputFormat=mat