Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldTorques,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_WorldTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldTorques,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_WorldTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001175/0.001175, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001292/0.001291, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2228/0.2228, allocations: 46.1 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002697/0.002698, allocations: 73.17 kB / 417.7 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1194, allocations: 62.44 MB / 480.1 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldTorques): time 0.01686/0.1363, allocations: 15.4 MB / 495.5 MB, free: 5.699 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01031/0.1467, allocations: 5.057 MB / 0.4889 GB, free: 0.625 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002262/0.149, allocations: 107.7 kB / 0.489 GB, free: 0.5195 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008894/0.1579, allocations: 4.988 MB / 0.4938 GB, free: 11.52 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006346/0.1643, allocations: 2.505 MB / 0.4963 GB, free: 9 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003289/0.1676, allocations: 1.244 MB / 0.4975 GB, free: 7.754 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2125/0.3801, allocations: 7.954 MB / 0.5053 GB, free: 14.24 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01003/0.3902, allocations: 5.992 MB / 0.5111 GB, free: 13.48 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005256/0.3955, allocations: 2.513 MB / 0.5136 GB, free: 13.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005944/0.4015, allocations: 3.445 MB / 0.5169 GB, free: 12.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002327/0.4039, allocations: 0.5361 MB / 0.5175 GB, free: 12.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004994/0.4089, allocations: 1.556 MB / 0.519 GB, free: 12.98 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004786/0.4137, allocations: 3.134 MB / 0.522 GB, free: 12.68 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006313/0.42, allocations: 3.567 MB / 0.5255 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01431/0.4344, allocations: 10.73 MB / 0.536 GB, free: 5.367 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.877e-06/0.4344, allocations: 0 / 0.536 GB, free: 5.367 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.4344, allocations: 3.562 kB / 0.536 GB, free: 5.367 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005537/0.435, allocations: 0 / 0.536 GB, free: 5.367 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2128 * Number of variables: 2128 Notification: Performance of Generate backend data structure: time 0.02354/0.4586, allocations: 7.813 MB / 0.5436 GB, free: 232 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.4586, allocations: 13.05 kB / 0.5436 GB, free: 228 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0035/0.4621, allocations: 1.011 MB / 0.5446 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05747/0.5196, allocations: 8.283 MB / 0.5527 GB, free: 8.359 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01321/0.5329, allocations: 5.33 MB / 0.5579 GB, free: 3.219 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004135/0.5333, allocations: 366.7 kB / 0.5583 GB, free: 2.902 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002301/0.5356, allocations: 499.1 kB / 0.5587 GB, free: 2.461 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03137/0.567, allocations: 14.08 MB / 0.5725 GB, free: 3.605 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000329/0.5674, allocations: 78.27 kB / 0.5726 GB, free: 3.559 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001555/0.569, allocations: 231.5 kB / 0.5728 GB, free: 3.379 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004631/0.5736, allocations: 2.534 MB / 0.5753 GB, free: 0.8789 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02672/0.6004, allocations: 11.45 MB / 0.5864 GB, free: 5.672 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07907/0.6795, allocations: 55.38 MB / 0.6405 GB, free: 13.58 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01274/0.6923, allocations: 4.466 MB / 0.6449 GB, free: 8.965 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004267/0.6967, allocations: 2.712 MB / 0.6475 GB, free: 6.238 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002106/0.6969, allocations: 33.94 kB / 0.6476 GB, free: 6.219 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.025e-05/0.697, allocations: 59.55 kB / 0.6476 GB, free: 6.152 MB / 494.1 MB Notification: Performance of pre-optimization done (n=186): time 6.442e-06/0.697, allocations: 3.094 kB / 0.6476 GB, free: 6.152 MB / 494.1 MB Notification: Performance of matching and sorting (n=204): time 0.06129/0.7583, allocations: 20.35 MB / 0.6675 GB, free: 1.66 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001495/0.7585, allocations: 256.7 kB / 0.6678 GB, free: 1.355 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01419/0.7727, allocations: 6.696 MB / 0.6743 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0005209/0.7732, allocations: 49.7 kB / 0.6743 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.005293/0.7786, allocations: 4.554 MB / 0.6788 GB, free: 6.059 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001389/0.78, allocations: 0.8132 MB / 0.6796 GB, free: 5.254 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004477/0.7845, allocations: 1.557 MB / 0.6811 GB, free: 3.691 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001431/0.7846, allocations: 309 kB / 0.6814 GB, free: 3.387 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004887/0.7895, allocations: 2.564 MB / 0.6839 GB, free: 0.8203 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007801/0.7974, allocations: 7.437 MB / 0.6912 GB, free: 7.047 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01256/0.81, allocations: 10.85 MB / 0.7018 GB, free: 10.35 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000152/0.8102, allocations: 48 kB / 0.7018 GB, free: 10.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=996) (initialization): time 0.2646/1.075, allocations: 10.44 MB / 0.712 GB, free: 178.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001519/1.075, allocations: 79.8 kB / 0.7121 GB, free: 178.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002736/1.075, allocations: 171.7 kB / 0.7122 GB, free: 178.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003037/1.078, allocations: 1.023 MB / 0.7132 GB, free: 178.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006746/1.085, allocations: 1.758 MB / 0.715 GB, free: 178.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01163/1.097, allocations: 10.37 MB / 0.7251 GB, free: 173.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006921/1.104, allocations: 423.9 kB / 0.7255 GB, free: 173.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001833/1.106, allocations: 476.5 kB / 0.7259 GB, free: 173.5 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 786 * Number of states: 0 () * Number of discrete variables: 63 (worldTorque3.arrow.twoHeadedArrow,worldTorque3.arrow.headAtOrigin,worldTorque2.arrow.twoHeadedArrow,worldTorque2.arrow.headAtOrigin,worldTorque1.arrow.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 (930): * Single equations (assignments): 924 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,14,100.0%), (1,14,100.0%), (1,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007211/1.113, allocations: 2.965 MB / 0.7288 GB, free: 172.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001585/1.114, allocations: 0.5486 MB / 0.7294 GB, free: 172.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007479/1.122, allocations: 3.747 MB / 0.733 GB, free: 171.1 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.238e-05/1.122, allocations: 22 kB / 0.7331 GB, free: 171.1 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.676e-05/1.122, allocations: 8.859 kB / 0.7331 GB, free: 171.1 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.403e-05/1.122, allocations: 13.56 kB / 0.7331 GB, free: 171.1 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01875/1.141, allocations: 10.02 MB / 0.7429 GB, free: 167.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.907e-05/1.141, allocations: 0 / 0.7429 GB, free: 167.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001577/1.143, allocations: 325.1 kB / 0.7432 GB, free: 167.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002027/1.145, allocations: 0.7413 MB / 0.7439 GB, free: 167.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002108/1.145, allocations: 35.38 kB / 0.7439 GB, free: 167.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008569/1.153, allocations: 9.445 MB / 0.7532 GB, free: 160.9 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/1.153, allocations: 3.984 kB / 0.7532 GB, free: 160.9 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008983/1.162, allocations: 6.595 MB / 0.7596 GB, free: 158.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001577/1.164, allocations: 0.6062 MB / 0.7602 GB, free: 158.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007819/1.165, allocations: 35.25 kB / 0.7602 GB, free: 158.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001971/1.167, allocations: 108.1 kB / 0.7603 GB, free: 158.1 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003572/1.167, allocations: 130.8 kB / 0.7605 GB, free: 158.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001265/1.167, allocations: 54.77 kB / 0.7605 GB, free: 158.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006082/1.173, allocations: 4.283 MB / 0.7647 GB, free: 156.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.71e-07/1.173, allocations: 3.562 kB / 0.7647 GB, free: 156.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006945/1.18, allocations: 1.371 MB / 0.766 GB, free: 155.8 MB / 0.545 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,11,100.0%), (1,11,100.0%), (1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008637/1.189, allocations: 7.245 MB / 0.7731 GB, free: 149.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01055/1.2, allocations: 7.298 MB / 0.7802 GB, free: 142.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.687e-06/1.2, allocations: 0 / 0.7802 GB, free: 142.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002355/1.202, allocations: 2.09 MB / 0.7823 GB, free: 140.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004765/1.207, allocations: 0.8014 MB / 0.7831 GB, free: 139.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09884/1.306, allocations: 83.41 MB / 0.8645 GB, free: 44.74 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005147/1.311, allocations: 4.536 MB / 0.8689 GB, free: 40.17 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00614/1.317, allocations: 2.484 MB / 0.8714 GB, free: 37.68 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004638/1.322, allocations: 2.921 MB / 0.8742 GB, free: 34.76 MB / 0.545 GB Notification: Performance of SimCode: time 1.072e-06/1.322, allocations: 4 kB / 0.8742 GB, free: 34.75 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3636/1.685, allocations: 111.4 MB / 0.983 GB, free: 166.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.71/14.4, allocations: 0 / 0.983 GB, free: 166.5 MB / 0.5606 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_WorldTorques.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/WorldTorques/WorldTorques.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches