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.001498/0.001498, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002064/0.002064, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2127/0.2127, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 75.88 kB / 480.8 MB, free: 4.555 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3267/0.3281, allocations: 62.43 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.0166/0.3448, allocations: 15.52 MB / 0.5457 GB, free: 1.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01176/0.3566, allocations: 4.927 MB / 0.5505 GB, free: 13.28 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003781/0.3604, allocations: 107.7 kB / 0.5506 GB, free: 13.18 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009212/0.3697, allocations: 4.988 MB / 0.5555 GB, free: 8.172 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007721/0.3775, allocations: 2.548 MB / 0.558 GB, free: 5.617 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002998/0.3805, allocations: 1.076 MB / 0.559 GB, free: 4.539 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01086/0.3914, allocations: 6.855 MB / 0.5657 GB, free: 13.67 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006539/0.398, allocations: 5.759 MB / 0.5713 GB, free: 7.832 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003971/0.402, allocations: 2.379 MB / 0.5736 GB, free: 5.445 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004851/0.4069, allocations: 3.209 MB / 0.5768 GB, free: 2.227 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001505/0.4084, allocations: 0.5 MB / 0.5773 GB, free: 1.727 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003228/0.4117, allocations: 1.389 MB / 0.5786 GB, free: 344 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003538/0.4152, allocations: 2.996 MB / 0.5816 GB, free: 13.33 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005363/0.4206, allocations: 3.398 MB / 0.5849 GB, free: 9.914 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01343/0.4341, allocations: 10.51 MB / 0.5951 GB, free: 15.36 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.725e-06/0.4341, allocations: 4 kB / 0.5951 GB, free: 15.36 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.4341, allocations: 0 / 0.5951 GB, free: 15.36 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004035/0.4345, allocations: 3.984 kB / 0.5951 GB, free: 15.36 MB / 462.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.01912/0.4537, allocations: 7.768 MB / 0.6027 GB, free: 7.488 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.825e-05/0.4537, allocations: 12.03 kB / 0.6027 GB, free: 7.477 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002245/0.456, allocations: 1.025 MB / 0.6037 GB, free: 6.441 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03886/0.4949, allocations: 6.229 MB / 0.6098 GB, free: 204 kB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01112/0.506, allocations: 4.681 MB / 0.6144 GB, free: 11.44 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000354/0.5064, allocations: 361.3 kB / 0.6147 GB, free: 11.08 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00166/0.5081, allocations: 479.7 kB / 0.6152 GB, free: 10.61 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02633/0.5344, allocations: 14.12 MB / 0.629 GB, free: 11.47 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001981/0.5347, allocations: 67.47 kB / 0.6291 GB, free: 11.41 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008573/0.5356, allocations: 231.8 kB / 0.6293 GB, free: 11.18 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004918/0.5405, allocations: 2.707 MB / 0.6319 GB, free: 8.469 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0241/0.5646, allocations: 11.77 MB / 0.6434 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07403/0.6387, allocations: 56.92 MB / 0.699 GB, free: 2.285 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01535/0.6541, allocations: 6.151 MB / 0.705 GB, free: 11.97 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004379/0.6585, allocations: 3.598 MB / 0.7085 GB, free: 8.355 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2693/0.9279, allocations: 8.305 MB / 0.7166 GB, free: 162.6 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.271e-05/0.928, allocations: 59.78 kB / 0.7167 GB, free: 162.6 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=236): time 7.965e-06/0.928, allocations: 0 / 0.7167 GB, free: 162.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=278): time 0.06935/0.9974, allocations: 29.18 MB / 0.7452 GB, free: 151.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.763e-05/0.9975, allocations: 235.6 kB / 0.7454 GB, free: 150.9 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007613/1.005, allocations: 6.716 MB / 0.752 GB, free: 144.3 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005839/1.006, allocations: 69.36 kB / 0.752 GB, free: 144.3 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002195/1.008, allocations: 4.628 MB / 0.7566 GB, free: 140.1 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001075/1.009, allocations: 1.109 MB / 0.7576 GB, free: 139 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001954/1.011, allocations: 1.73 MB / 0.7593 GB, free: 137.3 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.302e-05/1.011, allocations: 301.1 kB / 0.7596 GB, free: 137 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003775/1.015, allocations: 3.358 MB / 0.7629 GB, free: 133.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005298/1.02, allocations: 8.401 MB / 0.7711 GB, free: 122.8 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01043/1.031, allocations: 12.75 MB / 0.7835 GB, free: 107.6 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001238/1.031, allocations: 52 kB / 0.7836 GB, free: 107.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1102) (initialization): time 0.01941/1.05, allocations: 13.06 MB / 0.7964 GB, free: 94.46 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.795e-05/1.05, allocations: 80 kB / 0.7964 GB, free: 94.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001585/1.05, allocations: 180 kB / 0.7966 GB, free: 94.21 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003923/1.054, allocations: 1.777 MB / 0.7983 GB, free: 92.42 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006122/1.061, allocations: 1.953 MB / 0.8002 GB, free: 90.46 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01236/1.073, allocations: 12.86 MB / 0.8128 GB, free: 77.33 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006671/1.08, allocations: 491.4 kB / 0.8133 GB, free: 76.85 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00127/1.081, allocations: 0.5038 MB / 0.8138 GB, free: 76.35 MB / 0.5606 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.004237/1.085, allocations: 2.984 MB / 0.8167 GB, free: 73.35 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001043/1.086, allocations: 0.5898 MB / 0.8173 GB, free: 72.76 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008867/1.095, allocations: 6.354 MB / 0.8235 GB, free: 66.38 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.513e-05/1.095, allocations: 31.59 kB / 0.8235 GB, free: 66.36 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.572e-05/1.095, allocations: 11.94 kB / 0.8235 GB, free: 66.34 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.399e-05/1.095, allocations: 23.08 kB / 0.8235 GB, free: 66.32 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02071/1.116, allocations: 13.98 MB / 0.8372 GB, free: 52.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.226e-05/1.116, allocations: 4 kB / 0.8372 GB, free: 52.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002151/1.118, allocations: 459.3 kB / 0.8376 GB, free: 51.85 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00352/1.122, allocations: 1.527 MB / 0.8391 GB, free: 50.32 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003665/1.122, allocations: 55.94 kB / 0.8392 GB, free: 50.26 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01222/1.134, allocations: 12.19 MB / 0.8511 GB, free: 37.81 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/1.134, allocations: 7.938 kB / 0.8511 GB, free: 37.8 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01259/1.147, allocations: 10.36 MB / 0.8612 GB, free: 27.3 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001715/1.149, allocations: 0.6532 MB / 0.8618 GB, free: 26.63 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001277/1.15, allocations: 48 kB / 0.8619 GB, free: 26.58 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002749/1.153, allocations: 183.7 kB / 0.862 GB, free: 26.4 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005483/1.153, allocations: 173.6 kB / 0.8622 GB, free: 26.23 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001966/1.154, allocations: 75.98 kB / 0.8623 GB, free: 26.16 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.006223/1.16, allocations: 4.298 MB / 0.8665 GB, free: 21.87 MB / 0.5606 GB Notification: Performance of sort global known variables: time 5.81e-07/1.16, allocations: 0 / 0.8665 GB, free: 21.87 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007707/1.168, allocations: 1.519 MB / 0.868 GB, free: 20.35 MB / 0.5606 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.01374/1.181, allocations: 11.03 MB / 0.8787 GB, free: 9.164 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0106/1.192, allocations: 8.301 MB / 0.8868 GB, free: 0.8672 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.135e-06/1.192, allocations: 0 / 0.8868 GB, free: 0.8672 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005464/1.197, allocations: 3.236 MB / 0.89 GB, free: 13.61 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004527/1.202, allocations: 0.761 MB / 0.8907 GB, free: 12.86 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3818/1.584, allocations: 75.72 MB / 0.9647 GB, free: 220.5 MB / 0.6388 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006333/1.59, allocations: 4.529 MB / 0.9691 GB, free: 219.7 MB / 0.6388 GB Notification: Performance of simCode: alias equations: time 0.00654/1.597, allocations: 2.766 MB / 0.9718 GB, free: 219.6 MB / 0.6388 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005235/1.602, allocations: 2.944 MB / 0.9747 GB, free: 217.6 MB / 0.6388 GB Notification: Performance of SimCode: time 1.152e-06/1.602, allocations: 0 / 0.9747 GB, free: 217.6 MB / 0.6388 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1508/1.753, allocations: 116.5 MB / 1.088 GB, free: 108.7 MB / 0.6388 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.63/26.38, allocations: 8.5 kB / 1.088 GB, free: 108.7 MB / 0.6388 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