Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.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.WorldTorques,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_WorldTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldTorques,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_WorldTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009964/0.0009963, allocations: 193.9 kB / 16.09 MB, free: 5.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 226.5 MB / 243.4 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008152/0.0008151, allocations: 96.55 kB / 295.5 MB, free: 6.887 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3023/0.3023, allocations: 44.82 MB / 392.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002582/0.0002582, allocations: 11.98 kB / 465.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3009/0.3012, allocations: 62.96 MB / 0.516 GB, free: 37.16 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldTorques): time 0.07177/0.373, allocations: 90.56 MB / 0.6044 GB, free: 14.54 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.04217/0.4152, allocations: 18.25 MB / 0.6222 GB, free: 12.36 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01626/0.4315, allocations: 430.9 kB / 0.6226 GB, free: 11.93 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01434/0.4459, allocations: 4.81 MB / 0.6273 GB, free: 7.102 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03638/0.4823, allocations: 13.92 MB / 0.6409 GB, free: 9.129 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006084/0.4884, allocations: 1.077 MB / 0.642 GB, free: 8.051 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.4125/0.901, allocations: 91.86 MB / 0.7317 GB, free: 30.7 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01003/0.9111, allocations: 7.816 MB / 0.7393 GB, free: 25.06 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004118/0.9152, allocations: 2.014 MB / 0.7413 GB, free: 23.71 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004646/0.9199, allocations: 3.212 MB / 0.7444 GB, free: 21.43 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001563/0.9215, allocations: 222.8 kB / 0.7446 GB, free: 21.21 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003722/0.9253, allocations: 1.292 MB / 0.7459 GB, free: 20.2 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003969/0.9293, allocations: 2.824 MB / 0.7486 GB, free: 18.13 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006882/0.9362, allocations: 3.039 MB / 0.7516 GB, free: 17.06 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009866/0.9461, allocations: 8.842 MB / 0.7602 GB, free: 9.387 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.9461, allocations: 0 / 0.7602 GB, free: 9.387 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.9461, allocations: 0 / 0.7602 GB, free: 9.387 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004357/0.9466, allocations: 0 / 0.7602 GB, free: 9.387 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: 2215 * Number of variables: 2215 Notification: Performance of Generate backend data structure: time 0.01465/0.9613, allocations: 6.606 MB / 0.7667 GB, free: 3.297 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.9613, allocations: 8.031 kB / 0.7667 GB, free: 3.289 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002606/0.9639, allocations: 1.054 MB / 0.7677 GB, free: 2.656 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05178/1.016, allocations: 8.482 MB / 0.776 GB, free: 10.78 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01292/1.029, allocations: 5.389 MB / 0.7813 GB, free: 6.832 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004113/1.029, allocations: 377.9 kB / 0.7816 GB, free: 6.625 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002298/1.031, allocations: 0.4971 MB / 0.7821 GB, free: 6.297 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0295/1.061, allocations: 14.66 MB / 0.7964 GB, free: 10.71 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002325/1.061, allocations: 73.33 kB / 0.7965 GB, free: 10.67 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008092/1.062, allocations: 232 kB / 0.7967 GB, free: 10.6 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00448/1.067, allocations: 2.721 MB / 0.7994 GB, free: 8.355 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02272/1.089, allocations: 11.9 MB / 0.811 GB, free: 32 kB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06851/1.158, allocations: 56.67 MB / 0.8664 GB, free: 160 kB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01116/1.169, allocations: 4.478 MB / 0.8707 GB, free: 12.5 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003704/1.173, allocations: 2.712 MB / 0.8734 GB, free: 10.32 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001262/1.173, allocations: 42.95 kB / 0.8734 GB, free: 10.3 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.555e-05/1.173, allocations: 55.5 kB / 0.8735 GB, free: 10.23 MB / 0.573 GB Notification: Performance of pre-optimization done (n=186): time 5.15e-06/1.173, allocations: 0 / 0.8735 GB, free: 10.23 MB / 0.573 GB Notification: Performance of matching and sorting (n=204): time 0.05341/1.226, allocations: 20.55 MB / 0.8935 GB, free: 5.559 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/1.227, allocations: 252.8 kB / 0.8938 GB, free: 5.258 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2621/1.489, allocations: 6.708 MB / 0.9003 GB, free: 229.3 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0004633/1.489, allocations: 54.73 kB / 0.9004 GB, free: 229.3 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.003422/1.493, allocations: 4.685 MB / 0.905 GB, free: 227.1 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008746/1.494, allocations: 0.8076 MB / 0.9058 GB, free: 226.5 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004211/1.494, allocations: 156 kB / 0.9059 GB, free: 226.4 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.000315/1.494, allocations: 0.6292 MB / 0.9065 GB, free: 226 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003463/1.498, allocations: 2.563 MB / 0.909 GB, free: 225.2 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005382/1.503, allocations: 7.484 MB / 0.9163 GB, free: 217.7 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009824/1.513, allocations: 10.92 MB / 0.927 GB, free: 208.5 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001886/1.513, allocations: 49.88 kB / 0.927 GB, free: 208.5 MB / 0.5886 GB Notification: Performance of matching and sorting (n=1005) (initialization): time 0.02017/1.533, allocations: 10.46 MB / 0.9372 GB, free: 204.5 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001464/1.534, allocations: 79.25 kB / 0.9373 GB, free: 204.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002938/1.534, allocations: 174.4 kB / 0.9375 GB, free: 204.5 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002885/1.537, allocations: 1.019 MB / 0.9385 GB, free: 204.3 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006039/1.543, allocations: 1.773 MB / 0.9402 GB, free: 204.1 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01009/1.553, allocations: 9.561 MB / 0.9496 GB, free: 197.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00685/1.56, allocations: 429.1 kB / 0.95 GB, free: 197.7 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001504/1.561, allocations: 482.3 kB / 0.9504 GB, free: 197.6 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 795 * Number of states: 0 () * Number of discrete variables: 63 (worldTorque3.arrow.arrowLine.twoHeadedArrow,worldTorque3.arrow.headAtOrigin,worldTorque2.arrow.arrowLine.twoHeadedArrow,worldTorque2.arrow.headAtOrigin,worldTorque1.arrow.arrowLine.twoHeadedArrow,worldTorque1.arrow.headAtOrigin,worldTorque3.color[3],worldTorque3.color[2],worldTorque3.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],worldTorque2.color[3],worldTorque2.color[2],worldTorque2.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],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],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 (939): * Single equations (assignments): 933 * 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%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005863/1.567, allocations: 3.054 MB / 0.9534 GB, free: 196.2 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001231/1.569, allocations: 0.555 MB / 0.9539 GB, free: 195.9 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005782/1.574, allocations: 3.762 MB / 0.9576 GB, free: 194.5 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.223e-05/1.574, allocations: 26.94 kB / 0.9576 GB, free: 194.5 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.879e-05/1.574, allocations: 7.875 kB / 0.9577 GB, free: 194.5 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.879e-05/1.574, allocations: 11.12 kB / 0.9577 GB, free: 194.5 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01649/1.591, allocations: 10.17 MB / 0.9676 GB, free: 190.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.368e-05/1.591, allocations: 3.844 kB / 0.9676 GB, free: 190.6 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001403/1.592, allocations: 331.2 kB / 0.9679 GB, free: 190.3 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001787/1.594, allocations: 0.7349 MB / 0.9686 GB, free: 189.8 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001595/1.594, allocations: 39.75 kB / 0.9687 GB, free: 189.8 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00734/1.602, allocations: 8.683 MB / 0.9772 GB, free: 181.5 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/1.602, allocations: 4.031 kB / 0.9772 GB, free: 181.5 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007814/1.61, allocations: 6.598 MB / 0.9836 GB, free: 174.8 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001533/1.611, allocations: 0.6111 MB / 0.9842 GB, free: 174.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000728/1.612, allocations: 32.78 kB / 0.9842 GB, free: 174.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00189/1.614, allocations: 131.8 kB / 0.9844 GB, free: 174 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004488/1.614, allocations: 121 kB / 0.9845 GB, free: 173.9 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001283/1.614, allocations: 56.53 kB / 0.9845 GB, free: 173.9 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.005573/1.62, allocations: 4.277 MB / 0.9887 GB, free: 169.6 MB / 0.5886 GB Notification: Performance of sort global known variables: time 4.11e-07/1.62, allocations: 4 kB / 0.9887 GB, free: 169.6 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.006468/1.626, allocations: 1.41 MB / 0.9901 GB, free: 168.2 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.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 (153): * Single equations (assignments): 147 * 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%) 11,(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008092/1.635, allocations: 7.251 MB / 0.9972 GB, free: 160.9 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.008611/1.643, allocations: 6.47 MB / 1.003 GB, free: 154.5 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 6.723e-06/1.643, allocations: 2.297 kB / 1.003 GB, free: 154.5 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002318/1.646, allocations: 2.091 MB / 1.006 GB, free: 152.3 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005442/1.651, allocations: 0.7737 MB / 1.006 GB, free: 151.6 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08391/1.735, allocations: 57.89 MB / 1.063 GB, free: 87.96 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00464/1.74, allocations: 4.663 MB / 1.067 GB, free: 83.27 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003111/1.743, allocations: 3.069 MB / 1.07 GB, free: 80.2 MB / 0.5886 GB Notification: Performance of SimCode: time 7.91e-07/1.743, allocations: 4 kB / 1.07 GB, free: 80.2 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 10.01/11.75, allocations: 194.8 MB / 1.261 GB, free: 134.9 MB / 0.5886 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldTorques_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_WorldTorques_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_WorldTorques.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldTorques_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/WorldTorques/WorldTorques.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches