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.002364/0.002363, allocations: 185.3 kB / 16.4 MB, free: 5.75 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.271/2.271, 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.001207/0.001207, allocations: 99.16 kB / 270.9 MB, free: 8.355 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.5152/0.5152, allocations: 43.55 MB / 362.7 MB, free: 51.89 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004792/0.0004793, allocations: 23.98 kB / 431.5 MB, free: 5.824 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1318, allocations: 58.84 MB / 490.3 MB, free: 10.89 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldForces2): time 0.4315/0.5633, allocations: 86.47 MB / 0.5633 GB, free: 4.914 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.06333/0.6267, allocations: 19.34 MB / 0.5821 GB, free: 7.711 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02168/0.6484, allocations: 427.5 kB / 0.5826 GB, free: 7.648 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01743/0.6659, allocations: 4.374 MB / 0.5868 GB, free: 6.211 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.05217/0.7181, allocations: 12.33 MB / 0.5989 GB, free: 11.05 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008235/0.7264, allocations: 1.006 MB / 0.5999 GB, free: 10.04 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.1076/0.8341, allocations: 39.62 MB / 0.6385 GB, free: 2.387 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01643/0.8506, allocations: 7.363 MB / 0.6457 GB, free: 10.98 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004731/0.8554, allocations: 1.721 MB / 0.6474 GB, free: 9.254 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005712/0.8611, allocations: 2.399 MB / 0.6498 GB, free: 6.848 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001517/0.8627, allocations: 244 kB / 0.65 GB, free: 6.609 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004068/0.8668, allocations: 1.104 MB / 0.6511 GB, free: 5.504 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00515/0.872, allocations: 2.774 MB / 0.6538 GB, free: 2.723 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002852/0.8749, allocations: 1.384 MB / 0.6551 GB, free: 1.328 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01587/0.8908, allocations: 9.391 MB / 0.6643 GB, free: 7.91 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.8909, allocations: 0 / 0.6643 GB, free: 7.91 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.597e-06/0.8909, allocations: 0 / 0.6643 GB, free: 7.91 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003773/0.8913, allocations: 0 / 0.6643 GB, free: 7.91 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.02571/0.917, allocations: 7.093 MB / 0.6712 GB, free: 0.7344 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.421e-05/0.9171, allocations: 8.031 kB / 0.6712 GB, free: 0.7266 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.6603/1.577, allocations: 1.115 MB / 0.6723 GB, free: 141.5 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1337/1.711, allocations: 11.18 MB / 0.6832 GB, free: 141.2 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01689/1.728, allocations: 5.597 MB / 0.6887 GB, free: 139.5 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004567/1.729, allocations: 392.1 kB / 0.6891 GB, free: 139.4 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002533/1.731, allocations: 0.5132 MB / 0.6896 GB, free: 139.3 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04233/1.773, allocations: 15.71 MB / 0.7049 GB, free: 132.2 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004638/1.774, allocations: 79.66 kB / 0.705 GB, free: 132.1 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002505/1.777, allocations: 247.8 kB / 0.7052 GB, free: 132 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009579/1.786, allocations: 2.929 MB / 0.7081 GB, free: 131.5 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04532/1.832, allocations: 12.93 MB / 0.7207 GB, free: 126.1 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09784/1.929, allocations: 59.95 MB / 0.7793 GB, free: 65.05 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02235/1.952, allocations: 5.921 MB / 0.7851 GB, free: 58.98 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003187/1.952, allocations: 48.8 kB / 0.7851 GB, free: 58.95 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.625e-05/1.952, allocations: 60.05 kB / 0.7852 GB, free: 58.88 MB / 490.8 MB Notification: Performance of pre-optimization done (n=242): time 6.642e-06/1.952, allocations: 448 / 0.7852 GB, free: 58.88 MB / 490.8 MB Notification: Performance of matching and sorting (n=260): time 0.09417/2.047, allocations: 23.46 MB / 0.8081 GB, free: 35.18 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001145/2.047, allocations: 273.1 kB / 0.8083 GB, free: 34.86 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0148/2.062, allocations: 7.343 MB / 0.8155 GB, free: 27.54 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006807/2.062, allocations: 65.14 kB / 0.8156 GB, free: 27.47 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003697/2.066, allocations: 4.598 MB / 0.8201 GB, free: 22.88 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001464/2.067, allocations: 1.005 MB / 0.821 GB, free: 21.88 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007615/2.068, allocations: 164 kB / 0.8212 GB, free: 21.72 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0004539/2.069, allocations: 0.6622 MB / 0.8218 GB, free: 21.05 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007306/2.076, allocations: 2.964 MB / 0.8247 GB, free: 18.07 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01046/2.087, allocations: 8.071 MB / 0.8326 GB, free: 7.441 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01037/2.097, allocations: 4.761 MB / 0.8373 GB, free: 2.676 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001449/2.097, allocations: 52.75 kB / 0.8373 GB, free: 2.625 MB / 490.8 MB Notification: Performance of matching and sorting (n=1093) (initialization): time 0.03243/2.13, allocations: 11.26 MB / 0.8483 GB, free: 7.352 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001572/2.13, allocations: 80 kB / 0.8484 GB, free: 7.273 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003019/2.13, allocations: 184 kB / 0.8486 GB, free: 7.094 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004511/2.135, allocations: 1.02 MB / 0.8496 GB, free: 6.07 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01313/2.148, allocations: 2.035 MB / 0.8516 GB, free: 4.031 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01891/2.167, allocations: 9.584 MB / 0.8609 GB, free: 10.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009682/2.177, allocations: 475.1 kB / 0.8614 GB, free: 9.609 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002097/2.179, allocations: 0.5 MB / 0.8619 GB, free: 9.109 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 825 * 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 (1030): * Single equations (assignments): 1024 * 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.009503/2.188, allocations: 3.214 MB / 0.865 GB, free: 5.883 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001794/2.19, allocations: 0.5862 MB / 0.8656 GB, free: 5.289 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01652/2.207, allocations: 4.696 MB / 0.8702 GB, free: 0.5703 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-05/2.207, allocations: 28 kB / 0.8702 GB, free: 0.543 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.91e-05/2.207, allocations: 8 kB / 0.8702 GB, free: 0.5352 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.727e-05/2.207, allocations: 15.95 kB / 0.8702 GB, free: 0.5195 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3826/2.589, allocations: 11.85 MB / 0.8818 GB, free: 147.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.123e-05/2.59, allocations: 6.812 kB / 0.8818 GB, free: 147.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005107/2.595, allocations: 0.5049 MB / 0.8823 GB, free: 147.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003683/2.598, allocations: 0.7166 MB / 0.883 GB, free: 147.3 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005686/2.599, allocations: 47.92 kB / 0.883 GB, free: 147.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01372/2.613, allocations: 8.664 MB / 0.8915 GB, free: 141.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/2.613, allocations: 2.625 kB / 0.8915 GB, free: 141.5 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02396/2.637, allocations: 8.208 MB / 0.8995 GB, free: 138.3 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005836/2.643, allocations: 1.039 MB / 0.9005 GB, free: 138 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00275/2.645, allocations: 43.58 kB / 0.9006 GB, free: 137.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007675/2.653, allocations: 150 kB / 0.9007 GB, free: 137.9 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001446/2.655, allocations: 155.2 kB / 0.9008 GB, free: 137.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007265/2.655, allocations: 70.09 kB / 0.9009 GB, free: 137.9 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01846/2.674, allocations: 4.741 MB / 0.9055 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.543e-06/2.674, allocations: 0 / 0.9055 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01735/2.691, allocations: 1.561 MB / 0.9071 GB, free: 136.1 MB / 0.5105 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.03593/2.727, allocations: 9.073 MB / 0.9159 GB, free: 132.1 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02993/2.757, allocations: 7.446 MB / 0.9232 GB, free: 129.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.412e-05/2.757, allocations: 2.156 kB / 0.9232 GB, free: 129.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007826/2.765, allocations: 2.532 MB / 0.9257 GB, free: 128.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006886/2.772, allocations: 0.7522 MB / 0.9264 GB, free: 128 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5467/3.319, allocations: 188 MB / 1.11 GB, free: 132.1 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01161/3.331, allocations: 5.037 MB / 1.115 GB, free: 130.5 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008499/3.339, allocations: 3.309 MB / 1.118 GB, free: 127.8 MB / 0.5262 GB Notification: Performance of SimCode: time 1.733e-06/3.339, allocations: 0 / 1.118 GB, free: 127.8 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.994/9.333, allocations: 215.6 MB / 1.329 GB, free: 130.1 MB / 0.5262 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