Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.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.Torque,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001438/0.001438, allocations: 103.7 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.00163/0.00163, allocations: 208.6 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.491/1.491, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2163/0.2163, allocations: 46.1 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001402, allocations: 73.88 kB / 417.7 MB, free: 19.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1453/0.1468, allocations: 62.45 MB / 480.1 MB, free: 5.203 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.01695/0.1638, allocations: 15.5 MB / 495.6 MB, free: 5.633 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01074/0.1746, allocations: 4.933 MB / 0.4888 GB, free: 0.6836 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003239/0.1778, allocations: 99.75 kB / 0.4889 GB, free: 0.5859 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009948/0.1879, allocations: 5.008 MB / 0.4938 GB, free: 11.56 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008374/0.1963, allocations: 2.459 MB / 0.4962 GB, free: 9.094 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003214/0.1995, allocations: 1.08 MB / 0.4973 GB, free: 8.012 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01113/0.2107, allocations: 6.848 MB / 0.504 GB, free: 1.148 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2626/0.4733, allocations: 5.751 MB / 0.5096 GB, free: 13.06 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004972/0.4784, allocations: 2.381 MB / 0.5119 GB, free: 12.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005265/0.4837, allocations: 3.202 MB / 0.515 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001861/0.4855, allocations: 0.499 MB / 0.5155 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003748/0.4893, allocations: 1.392 MB / 0.5169 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004018/0.4933, allocations: 2.967 MB / 0.5198 GB, free: 12.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006081/0.4994, allocations: 3.406 MB / 0.5231 GB, free: 10.94 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01181/0.5113, allocations: 10.16 MB / 0.533 GB, free: 6.613 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.5113, allocations: 0 / 0.533 GB, free: 6.613 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.5113, allocations: 0 / 0.533 GB, free: 6.613 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004105/0.5118, allocations: 0 / 0.533 GB, free: 6.613 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: 2161 * Number of variables: 2161 Notification: Performance of Generate backend data structure: time 0.01834/0.5301, allocations: 7.581 MB / 0.5404 GB, free: 1.598 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.5301, allocations: 7.938 kB / 0.5404 GB, free: 1.598 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002172/0.5323, allocations: 1.025 MB / 0.5414 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03885/0.5712, allocations: 6.183 MB / 0.5475 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01/0.5812, allocations: 4.581 MB / 0.552 GB, free: 8.914 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000263/0.5815, allocations: 358.2 kB / 0.5523 GB, free: 8.609 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001434/0.583, allocations: 485.4 kB / 0.5528 GB, free: 8.184 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0309/0.6139, allocations: 14.12 MB / 0.5665 GB, free: 9.309 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002195/0.6141, allocations: 62.89 kB / 0.5666 GB, free: 9.273 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009695/0.6151, allocations: 233 kB / 0.5668 GB, free: 9.094 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005004/0.6201, allocations: 2.699 MB / 0.5695 GB, free: 6.434 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02519/0.6453, allocations: 11.79 MB / 0.581 GB, free: 10.89 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07383/0.7192, allocations: 57.05 MB / 0.6367 GB, free: 1.102 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01608/0.7354, allocations: 6.163 MB / 0.6427 GB, free: 10.8 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005099/0.7405, allocations: 3.584 MB / 0.6462 GB, free: 7.195 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01465/0.7552, allocations: 8.301 MB / 0.6543 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.494e-05/0.7553, allocations: 58.84 kB / 0.6544 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=236): time 5.811e-06/0.7553, allocations: 0 / 0.6544 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of matching and sorting (n=278): time 0.08247/0.8378, allocations: 28.76 MB / 0.6825 GB, free: 1.781 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001495/0.838, allocations: 246.8 kB / 0.6827 GB, free: 1.492 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01452/0.8525, allocations: 6.698 MB / 0.6892 GB, free: 10.79 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007967/0.8533, allocations: 61.7 kB / 0.6893 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004397/0.8578, allocations: 4.463 MB / 0.6937 GB, free: 6.27 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001845/0.8596, allocations: 1.06 MB / 0.6947 GB, free: 5.219 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005334/0.865, allocations: 1.719 MB / 0.6964 GB, free: 3.484 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001094/0.8651, allocations: 309 kB / 0.6967 GB, free: 3.18 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006156/0.8713, allocations: 3.358 MB / 0.6999 GB, free: 15.81 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01029/0.8816, allocations: 8.402 MB / 0.7082 GB, free: 4.996 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2757/1.157, allocations: 12.74 MB / 0.7206 GB, free: 176.2 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002117/1.158, allocations: 50.09 kB / 0.7206 GB, free: 176.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=1102) (initialization): time 0.02809/1.186, allocations: 13.02 MB / 0.7334 GB, free: 172.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001112/1.186, allocations: 80.03 kB / 0.7334 GB, free: 172.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002237/1.186, allocations: 177.3 kB / 0.7336 GB, free: 172.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004591/1.191, allocations: 1.795 MB / 0.7354 GB, free: 172 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006911/1.198, allocations: 1.94 MB / 0.7373 GB, free: 171.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01393/1.212, allocations: 12.87 MB / 0.7498 GB, free: 164.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007665/1.219, allocations: 490.3 kB / 0.7503 GB, free: 164.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001961/1.221, allocations: 0.5046 MB / 0.7508 GB, free: 164.8 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 808 * Number of states: 0 () * Number of discrete variables: 67 (torque2.torqueArrow.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque1.torqueArrow.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.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 (1020): * Single equations (assignments): 1013 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,23,100.0%), (2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006809/1.228, allocations: 2.985 MB / 0.7537 GB, free: 163.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001404/1.23, allocations: 0.5623 MB / 0.7543 GB, free: 163.5 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0115/1.241, allocations: 6.338 MB / 0.7604 GB, free: 160.4 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.015e-05/1.241, allocations: 28 kB / 0.7605 GB, free: 160.4 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-05/1.241, allocations: 12 kB / 0.7605 GB, free: 160.3 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.636e-05/1.241, allocations: 11.11 kB / 0.7605 GB, free: 160.3 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02531/1.267, allocations: 14.17 MB / 0.7743 GB, free: 148.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.26e-05/1.267, allocations: 4 kB / 0.7743 GB, free: 148.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002246/1.269, allocations: 463.3 kB / 0.7748 GB, free: 148.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003847/1.273, allocations: 1.533 MB / 0.7763 GB, free: 146.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004814/1.273, allocations: 54.61 kB / 0.7763 GB, free: 146.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01247/1.286, allocations: 12.08 MB / 0.7881 GB, free: 134.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/1.286, allocations: 8 kB / 0.7881 GB, free: 134.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01351/1.299, allocations: 10.31 MB / 0.7982 GB, free: 123.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002111/1.301, allocations: 0.6247 MB / 0.7988 GB, free: 123.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00105/1.303, allocations: 53.94 kB / 0.7988 GB, free: 123.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002412/1.305, allocations: 179.8 kB / 0.799 GB, free: 123 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005255/1.305, allocations: 173.6 kB / 0.7992 GB, free: 122.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001887/1.306, allocations: 75.25 kB / 0.7993 GB, free: 122.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005762/1.311, allocations: 4.298 MB / 0.8035 GB, free: 118.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.2e-07/1.311, allocations: 4 kB / 0.8035 GB, free: 118.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008039/1.32, allocations: 1.516 MB / 0.8049 GB, free: 117 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.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 (220): * Single equations (assignments): 215 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(4,18,75.0%), (4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0136/1.333, allocations: 10.99 MB / 0.8157 GB, free: 105.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01382/1.347, allocations: 9.846 MB / 0.8253 GB, free: 96.01 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.417e-05/1.347, allocations: 0 / 0.8253 GB, free: 96.01 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004797/1.352, allocations: 3.233 MB / 0.8284 GB, free: 92.75 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005956/1.358, allocations: 0.7656 MB / 0.8292 GB, free: 92.02 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1218/1.48, allocations: 94.03 MB / 0.921 GB, free: 1.426 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2551/1.735, allocations: 4.526 MB / 0.9254 GB, free: 199.8 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.009094/1.744, allocations: 2.774 MB / 0.9281 GB, free: 199.7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006582/1.751, allocations: 2.938 MB / 0.931 GB, free: 199.7 MB / 0.5606 GB Notification: Performance of SimCode: time 9.82e-07/1.751, allocations: 0 / 0.931 GB, free: 199.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1774/1.928, allocations: 122.2 MB / 1.05 GB, free: 99.06 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.15/15.08, allocations: 20.03 kB / 1.05 GB, free: 99.04 MB / 0.5606 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque_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_Torque.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Torque/Torque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches