Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.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.WorldTorques,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldTorques,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldTorques",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.001108/0.001108, allocations: 175.1 kB / 16.72 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.343/1.343, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0007878/0.0007877, allocations: 98.28 kB / 271.2 MB, free: 8.23 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.339/0.339, allocations: 43.57 MB / 363.1 MB, free: 52.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003925/0.0003927, allocations: 12 kB / 432.1 MB, free: 5.719 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.122, allocations: 58.85 MB / 490.9 MB, free: 10.79 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldTorques): time 0.2926/0.4146, allocations: 92.29 MB / 0.5695 GB, free: 0.6094 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.04541/0.4601, allocations: 18.49 MB / 0.5876 GB, free: 3.973 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02132/0.4815, allocations: 436.2 kB / 0.588 GB, free: 3.906 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01747/0.499, allocations: 4.857 MB / 0.5928 GB, free: 1.816 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04069/0.5397, allocations: 14.14 MB / 0.6066 GB, free: 3.746 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007138/0.5469, allocations: 1.069 MB / 0.6076 GB, free: 2.68 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.06411/0.611, allocations: 51.48 MB / 0.6579 GB, free: 15.14 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01247/0.6235, allocations: 8.028 MB / 0.6657 GB, free: 7.031 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005026/0.6286, allocations: 2.187 MB / 0.6679 GB, free: 4.836 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005557/0.6342, allocations: 3.548 MB / 0.6713 GB, free: 1.277 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00166/0.6359, allocations: 264 kB / 0.6716 GB, free: 1.02 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2739/0.9098, allocations: 1.315 MB / 0.6729 GB, free: 54.76 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005702/0.9156, allocations: 3.076 MB / 0.6759 GB, free: 54.76 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007068/0.9227, allocations: 3.354 MB / 0.6791 GB, free: 54.73 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01287/0.9356, allocations: 9.732 MB / 0.6886 GB, free: 54.14 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.657e-06/0.9356, allocations: 0 / 0.6886 GB, free: 54.14 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.885e-06/0.9356, allocations: 3.781 kB / 0.6886 GB, free: 54.14 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004979/0.9361, allocations: 2.094 kB / 0.6886 GB, free: 54.14 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: 2473 * Number of variables: 2473 Notification: Performance of Generate backend data structure: time 0.01978/0.9559, allocations: 7.067 MB / 0.6955 GB, free: 51.11 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.415e-05/0.956, allocations: 8.406 kB / 0.6956 GB, free: 51.11 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004858/0.9609, allocations: 1.166 MB / 0.6967 GB, free: 51.02 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05326/1.014, allocations: 8.552 MB / 0.705 GB, free: 50.43 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01561/1.03, allocations: 6.375 MB / 0.7113 GB, free: 48.49 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004668/1.03, allocations: 408.5 kB / 0.7117 GB, free: 48.48 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001995/1.032, allocations: 0.5294 MB / 0.7122 GB, free: 48.47 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03072/1.063, allocations: 16.19 MB / 0.728 GB, free: 43.09 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002569/1.063, allocations: 82.38 kB / 0.7281 GB, free: 43.07 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008013/1.064, allocations: 251.9 kB / 0.7283 GB, free: 43.07 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004626/1.069, allocations: 3.079 MB / 0.7313 GB, free: 42.42 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02526/1.094, allocations: 13.23 MB / 0.7442 GB, free: 34.24 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07903/1.173, allocations: 61.74 MB / 0.8045 GB, free: 14.59 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01423/1.187, allocations: 5.92 MB / 0.8103 GB, free: 10 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00448/1.192, allocations: 3.228 MB / 0.8135 GB, free: 8.09 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002389/1.192, allocations: 52.31 kB / 0.8135 GB, free: 8.059 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.858e-05/1.192, allocations: 64.69 kB / 0.8136 GB, free: 8.008 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=249): time 6.141e-06/1.192, allocations: 0 / 0.8136 GB, free: 8.008 MB / 0.5105 GB Notification: Performance of matching and sorting (n=267): time 0.06898/1.261, allocations: 23.71 MB / 0.8367 GB, free: 2.773 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001331/1.261, allocations: 257.2 kB / 0.837 GB, free: 2.469 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0142/1.276, allocations: 7.017 MB / 0.8438 GB, free: 11.48 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0006732/1.276, allocations: 69.7 kB / 0.8439 GB, free: 11.4 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.00441/1.281, allocations: 5.049 MB / 0.8488 GB, free: 6.379 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001663/1.282, allocations: 1.028 MB / 0.8498 GB, free: 5.359 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001043/1.284, allocations: 168 kB / 0.85 GB, free: 5.195 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0009275/1.284, allocations: 0.6696 MB / 0.8506 GB, free: 4.516 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005798/1.29, allocations: 3.062 MB / 0.8536 GB, free: 1.445 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00975/1.3, allocations: 8.324 MB / 0.8618 GB, free: 6.586 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01443/1.315, allocations: 12.38 MB / 0.8738 GB, free: 8.375 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001533/1.315, allocations: 53.75 kB / 0.8739 GB, free: 8.324 MB / 0.573 GB Notification: Performance of matching and sorting (n=1119) (initialization): time 0.2302/1.545, allocations: 11.86 MB / 0.8855 GB, free: 216.5 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.000183/1.545, allocations: 85.59 kB / 0.8856 GB, free: 216.5 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003847/1.546, allocations: 194 kB / 0.8857 GB, free: 216.5 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003025/1.549, allocations: 1.026 MB / 0.8867 GB, free: 216.5 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006632/1.555, allocations: 2 MB / 0.8887 GB, free: 216.5 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00994/1.565, allocations: 9.644 MB / 0.8981 GB, free: 212.5 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006348/1.572, allocations: 488.1 kB / 0.8986 GB, free: 212.5 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008505/1.572, allocations: 0.5137 MB / 0.8991 GB, free: 212.5 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 846 * Number of states: 0 () * Number of discrete variables: 57 (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 (1053): * Single equations (assignments): 1047 * 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.005253/1.578, allocations: 3.329 MB / 0.9023 GB, free: 212 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009363/1.579, allocations: 0.5959 MB / 0.9029 GB, free: 212 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007466/1.586, allocations: 4.882 MB / 0.9077 GB, free: 210.2 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.024e-05/1.586, allocations: 33.25 kB / 0.9077 GB, free: 210.2 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.404e-05/1.586, allocations: 6.062 kB / 0.9077 GB, free: 210.2 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.746e-05/1.586, allocations: 18.55 kB / 0.9077 GB, free: 210.2 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01991/1.606, allocations: 12.27 MB / 0.9197 GB, free: 205.8 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.697e-05/1.606, allocations: 1.969 kB / 0.9197 GB, free: 205.8 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002197/1.608, allocations: 460 kB / 0.9202 GB, free: 205.8 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00202/1.61, allocations: 0.7465 MB / 0.9209 GB, free: 205.6 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002097/1.611, allocations: 49.62 kB / 0.9209 GB, free: 205.6 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008272/1.619, allocations: 8.686 MB / 0.9294 GB, free: 199.8 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.117e-06/1.619, allocations: 6.125 kB / 0.9294 GB, free: 199.8 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01052/1.629, allocations: 8.367 MB / 0.9376 GB, free: 196.6 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00272/1.632, allocations: 1.036 MB / 0.9386 GB, free: 196.2 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007952/1.633, allocations: 44.48 kB / 0.9386 GB, free: 196.2 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002121/1.635, allocations: 170.6 kB / 0.9388 GB, free: 196.2 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005874/1.636, allocations: 162.6 kB / 0.939 GB, free: 196.2 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001779/1.636, allocations: 71.8 kB / 0.939 GB, free: 196.1 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.006837/1.643, allocations: 4.472 MB / 0.9434 GB, free: 194.7 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.1e-07/1.643, allocations: 0 / 0.9434 GB, free: 194.7 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.006898/1.65, allocations: 1.588 MB / 0.9449 GB, free: 194.5 MB / 0.573 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 (219): * Single equations (assignments): 213 * 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.01025/1.66, allocations: 9.034 MB / 0.9538 GB, free: 187.7 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01082/1.671, allocations: 7.729 MB / 0.9613 GB, free: 181 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 4.718e-06/1.671, allocations: 0 / 0.9613 GB, free: 181 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.003011/1.674, allocations: 2.661 MB / 0.9639 GB, free: 178.3 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005379/1.679, allocations: 0.7976 MB / 0.9647 GB, free: 177.6 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09113/1.77, allocations: 64.89 MB / 1.028 GB, free: 106.7 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00563/1.776, allocations: 5.058 MB / 1.033 GB, free: 101.6 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003959/1.78, allocations: 3.416 MB / 1.036 GB, free: 98.22 MB / 0.573 GB Notification: Performance of SimCode: time 1.944e-06/1.78, allocations: 0 / 1.036 GB, free: 98.22 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 10.4/12.18, allocations: 214.8 MB / 1.246 GB, free: 137.8 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldTorques_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldTorques.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/WorldTorques/WorldTorques.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches