Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldForces.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_WorldForces",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_WorldForces",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001317/0.001317, allocations: 199.7 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.276/1.276, allocations: 226.5 MB / 243.4 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007476/0.0007474, allocations: 102.2 kB / 295.5 MB, free: 6.668 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3078/0.3078, allocations: 44.82 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002516/0.0002517, allocations: 8 kB / 465.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2897/0.2899, allocations: 62.96 MB / 0.516 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldForces): time 0.08104/0.371, allocations: 101 MB / 0.6146 GB, free: 4.164 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.04754/0.4186, allocations: 20.16 MB / 0.6343 GB, free: 15.93 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02649/0.4452, allocations: 474.9 kB / 0.6348 GB, free: 15.47 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01953/0.4647, allocations: 5.389 MB / 0.64 GB, free: 10.05 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0463/0.5111, allocations: 15.47 MB / 0.6551 GB, free: 10.52 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007384/0.5185, allocations: 1.135 MB / 0.6562 GB, free: 9.387 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.4243/0.9428, allocations: 92.3 MB / 0.7464 GB, free: 9.211 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0101/0.9529, allocations: 8.917 MB / 0.7551 GB, free: 2.695 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003935/0.9569, allocations: 2.135 MB / 0.7572 GB, free: 1.277 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004537/0.9615, allocations: 3.385 MB / 0.7605 GB, free: 14.88 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.001031/0.9625, allocations: 236 kB / 0.7607 GB, free: 14.64 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002741/0.9653, allocations: 1.146 MB / 0.7618 GB, free: 13.74 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.002976/0.9683, allocations: 3.021 MB / 0.7648 GB, free: 11.53 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.003929/0.9722, allocations: 3.258 MB / 0.768 GB, free: 10.39 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.008785/0.981, allocations: 9.452 MB / 0.7772 GB, free: 2.199 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.981, allocations: 0 / 0.7772 GB, free: 2.199 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.114e-06/0.981, allocations: 0 / 0.7772 GB, free: 2.199 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003014/0.9814, allocations: 0 / 0.7772 GB, free: 2.199 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: 2429 * Number of variables: 2429 Notification: Performance of Generate backend data structure: time 0.01452/0.9959, allocations: 7.052 MB / 0.7841 GB, free: 11.71 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.9959, allocations: 8.031 kB / 0.7841 GB, free: 11.71 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002329/0.9983, allocations: 1.153 MB / 0.7852 GB, free: 11.02 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05145/1.05, allocations: 8.523 MB / 0.7935 GB, free: 3.102 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01071/1.06, allocations: 5.589 MB / 0.799 GB, free: 15.03 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003001/1.061, allocations: 407.5 kB / 0.7994 GB, free: 14.81 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00132/1.062, allocations: 0.5348 MB / 0.7999 GB, free: 14.46 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02464/1.087, allocations: 15.92 MB / 0.8154 GB, free: 1.969 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001985/1.087, allocations: 71.94 kB / 0.8155 GB, free: 1.93 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006055/1.088, allocations: 259.9 kB / 0.8158 GB, free: 1.855 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004826/1.092, allocations: 3.05 MB / 0.8187 GB, free: 15.33 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02342/1.116, allocations: 12.98 MB / 0.8314 GB, free: 6.316 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07469/1.191, allocations: 62.9 MB / 0.8928 GB, free: 1.516 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01433/1.205, allocations: 5.472 MB / 0.8982 GB, free: 12.13 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004892/1.21, allocations: 3.596 MB / 0.9017 GB, free: 8.523 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002051/1.21, allocations: 43.69 kB / 0.9017 GB, free: 8.496 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.008e-05/1.21, allocations: 66.34 kB / 0.9018 GB, free: 8.426 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=229): time 6.111e-06/1.21, allocations: 4 kB / 0.9018 GB, free: 8.422 MB / 0.6042 GB Notification: Performance of matching and sorting (n=262): time 0.4896/1.7, allocations: 29.09 MB / 0.9302 GB, free: 237.8 MB / 0.6043 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.31e-05/1.7, allocations: 290.3 kB / 0.9305 GB, free: 237.5 MB / 0.6043 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01224/1.712, allocations: 7.113 MB / 0.9374 GB, free: 235 MB / 0.6043 GB Notification: Performance of collectPreVariables (initialization): time 0.0007526/1.713, allocations: 67.48 kB / 0.9375 GB, free: 235 MB / 0.6043 GB Notification: Performance of collectInitialEqns (initialization): time 0.004142/1.717, allocations: 4.984 MB / 0.9424 GB, free: 231.1 MB / 0.6043 GB Notification: Performance of collectInitialBindings (initialization): time 0.001645/1.719, allocations: 1.017 MB / 0.9434 GB, free: 230.4 MB / 0.6043 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006511/1.72, allocations: 167.9 kB / 0.9435 GB, free: 230.3 MB / 0.6043 GB Notification: Performance of setup shared object (initialization): time 0.000496/1.72, allocations: 0.6668 MB / 0.9442 GB, free: 229.8 MB / 0.6043 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005578/1.726, allocations: 3.185 MB / 0.9473 GB, free: 228.8 MB / 0.6043 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008063/1.734, allocations: 8.421 MB / 0.9555 GB, free: 220.6 MB / 0.6043 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01214/1.746, allocations: 12.61 MB / 0.9678 GB, free: 210.4 MB / 0.6043 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001692/1.746, allocations: 55.91 kB / 0.9679 GB, free: 210.4 MB / 0.6043 GB Notification: Performance of matching and sorting (n=1112) (initialization): time 0.02292/1.769, allocations: 12.55 MB / 0.9801 GB, free: 205.2 MB / 0.6043 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002626/1.769, allocations: 84 kB / 0.9802 GB, free: 205.1 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003515/1.77, allocations: 184 kB / 0.9804 GB, free: 205 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003645/1.773, allocations: 1.531 MB / 0.9819 GB, free: 203.8 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006168/1.78, allocations: 2.001 MB / 0.9838 GB, free: 202.1 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01249/1.792, allocations: 12.36 MB / 0.9959 GB, free: 189.8 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007815/1.8, allocations: 481.2 kB / 0.9964 GB, free: 189.3 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001641/1.802, allocations: 0.5156 MB / 0.9969 GB, free: 188.8 MB / 0.6043 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 842 * Number of states: 0 () * Number of discrete variables: 71 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,worldTorque1.arrow.arrowLine.twoHeadedArrow,worldTorque1.arrow.headAtOrigin,worldForce.arrow.arrowLine.twoHeadedArrow,worldForce.arrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[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],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.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],fixed2.color[3],fixed2.color[2],fixed2.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 (1037): * Single equations (assignments): 1031 * 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%) 14,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006846/1.808, allocations: 3.302 MB / 1 GB, free: 185.5 MB / 0.6043 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001576/1.81, allocations: 0.5978 MB / 1.001 GB, free: 184.9 MB / 0.6043 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009445/1.82, allocations: 5.602 MB / 1.006 GB, free: 179.3 MB / 0.6043 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.867e-05/1.82, allocations: 28 kB / 1.006 GB, free: 179.2 MB / 0.6043 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.052e-05/1.82, allocations: 8 kB / 1.006 GB, free: 179.2 MB / 0.6043 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.221e-05/1.82, allocations: 11.95 kB / 1.006 GB, free: 179.2 MB / 0.6043 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02407/1.844, allocations: 13.53 MB / 1.019 GB, free: 165.7 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.045e-05/1.844, allocations: 0 / 1.019 GB, free: 165.7 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002097/1.846, allocations: 463.7 kB / 1.02 GB, free: 165.2 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003044/1.849, allocations: 1.247 MB / 1.021 GB, free: 164 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002905/1.849, allocations: 44 kB / 1.021 GB, free: 163.9 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0112/1.861, allocations: 11.4 MB / 1.032 GB, free: 152.1 MB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/1.861, allocations: 4 kB / 1.032 GB, free: 152.1 MB / 0.6043 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01236/1.873, allocations: 9.334 MB / 1.041 GB, free: 142.7 MB / 0.6043 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00253/1.875, allocations: 0.6688 MB / 1.042 GB, free: 142 MB / 0.6043 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001614/1.877, allocations: 50.98 kB / 1.042 GB, free: 142 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00342/1.881, allocations: 151.8 kB / 1.042 GB, free: 141.8 MB / 0.6043 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007089/1.881, allocations: 157.7 kB / 1.042 GB, free: 141.7 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002136/1.881, allocations: 64 kB / 1.042 GB, free: 141.6 MB / 0.6043 GB Notification: Performance of sorting global known variables: time 0.008269/1.89, allocations: 4.528 MB / 1.047 GB, free: 137.1 MB / 0.6043 GB Notification: Performance of sort global known variables: time 2e-07/1.89, allocations: 0 / 1.047 GB, free: 137.1 MB / 0.6043 GB Notification: Performance of remove unused functions: time 0.009105/1.899, allocations: 1.609 MB / 1.048 GB, free: 135.5 MB / 0.6043 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.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 (204): * Single equations (assignments): 198 * 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 {(4,75.0%) 18,(1,100.0%) 11,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01261/1.912, allocations: 10.02 MB / 1.058 GB, free: 125.4 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 0.01161/1.923, allocations: 8.007 MB / 1.066 GB, free: 117.4 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 8.205e-06/1.923, allocations: 4 kB / 1.066 GB, free: 117.4 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 0.006719/1.93, allocations: 2.946 MB / 1.069 GB, free: 114.4 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01261/1.943, allocations: 0.8356 MB / 1.07 GB, free: 113.6 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1242/2.067, allocations: 66.31 MB / 1.134 GB, free: 41.18 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005482/2.072, allocations: 5.011 MB / 1.139 GB, free: 36.14 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003824/2.076, allocations: 3.393 MB / 1.143 GB, free: 32.74 MB / 0.6043 GB Notification: Performance of SimCode: time 1.403e-06/2.076, allocations: 0 / 1.143 GB, free: 32.74 MB / 0.6043 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 10.64/12.72, allocations: 212.9 MB / 1.351 GB, free: 83.25 MB / 0.6043 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldForces.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldForces.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldForces.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldForces.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldForces_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_WorldForces_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_WorldForces.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldForces.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldForces_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/WorldForces/WorldForces.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldForces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches