Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001873/0.001873, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002262/0.002262, allocations: 209.2 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.559/1.559, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2093/0.2093, allocations: 44.94 MB / 358.9 MB, free: 6.02 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00313/0.00313, allocations: 67.91 kB / 0.493 GB, free: 10.52 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3232/0.3263, allocations: 65.48 MB / 0.557 GB, free: 7.316 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.01194/0.3383, allocations: 8.409 MB / 0.5652 GB, free: 15.06 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00654/0.3448, allocations: 2.78 MB / 0.5679 GB, free: 12.27 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001206/0.346, allocations: 59.81 kB / 0.5679 GB, free: 12.21 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003887/0.3499, allocations: 1.928 MB / 0.5698 GB, free: 10.28 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002955/0.3529, allocations: 1.14 MB / 0.5709 GB, free: 9.137 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008155/0.3537, allocations: 291.5 kB / 0.5712 GB, free: 8.852 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003358/0.357, allocations: 2.325 MB / 0.5735 GB, free: 6.523 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002534/0.3596, allocations: 1.734 MB / 0.5752 GB, free: 4.742 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001205/0.3608, allocations: 0.8956 MB / 0.5761 GB, free: 3.844 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001712/0.3625, allocations: 1.168 MB / 0.5772 GB, free: 2.672 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003465/0.3628, allocations: 192 kB / 0.5774 GB, free: 2.484 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001228/0.3641, allocations: 0.6123 MB / 0.578 GB, free: 1.871 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001175/0.3652, allocations: 1.133 MB / 0.5791 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001101/0.3663, allocations: 0.9472 MB / 0.58 GB, free: 15.78 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004878/0.3712, allocations: 4.354 MB / 0.5843 GB, free: 11.41 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3712, allocations: 0 / 0.5843 GB, free: 11.41 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3712, allocations: 0 / 0.5843 GB, free: 11.41 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.682e-05/0.3713, allocations: 0 / 0.5843 GB, free: 11.41 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 975 * Number of variables: 975 Notification: Performance of Generate backend data structure: time 0.005076/0.3764, allocations: 2.86 MB / 0.5871 GB, free: 8.508 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.3764, allocations: 8.031 kB / 0.5871 GB, free: 8.5 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000576/0.377, allocations: 487.1 kB / 0.5875 GB, free: 8.016 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005219/0.3822, allocations: 1.574 MB / 0.5891 GB, free: 6.438 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003366/0.3856, allocations: 1.286 MB / 0.5903 GB, free: 5.121 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001383/0.3857, allocations: 147.8 kB / 0.5905 GB, free: 4.977 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003806/0.3861, allocations: 187.9 kB / 0.5906 GB, free: 4.793 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01054/0.3966, allocations: 6.246 MB / 0.5967 GB, free: 14.27 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.146e-05/0.3967, allocations: 11.88 kB / 0.5968 GB, free: 14.26 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004167/0.3971, allocations: 95.89 kB / 0.5968 GB, free: 14.17 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002212/0.3993, allocations: 1.34 MB / 0.5982 GB, free: 12.82 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01011/0.4094, allocations: 5.325 MB / 0.6034 GB, free: 7.488 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02934/0.4388, allocations: 19.06 MB / 0.622 GB, free: 3.855 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00399/0.4428, allocations: 1.484 MB / 0.6234 GB, free: 2.359 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001014/0.4438, allocations: 0.6367 MB / 0.624 GB, free: 1.711 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006765/0.4505, allocations: 3.02 MB / 0.627 GB, free: 14.67 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.621e-05/0.4506, allocations: 39 kB / 0.627 GB, free: 14.62 MB / 478.1 MB Notification: Performance of pre-optimization done (n=78): time 2.915e-06/0.4506, allocations: 0 / 0.627 GB, free: 14.62 MB / 478.1 MB Notification: Performance of matching and sorting (n=78): time 0.005503/0.4561, allocations: 1.99 MB / 0.629 GB, free: 12.62 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.679e-05/0.4562, allocations: 67.78 kB / 0.629 GB, free: 12.54 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003463/0.4596, allocations: 2.05 MB / 0.631 GB, free: 10.49 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 7.846e-05/0.4597, allocations: 37.7 kB / 0.6311 GB, free: 10.45 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001625/0.4613, allocations: 1.907 MB / 0.6329 GB, free: 8.516 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004006/0.4617, allocations: 337.5 kB / 0.6333 GB, free: 8.184 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009302/0.4626, allocations: 0.6156 MB / 0.6339 GB, free: 7.559 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002026/0.4628, allocations: 353.9 kB / 0.6342 GB, free: 7.207 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001449/0.4643, allocations: 0.8842 MB / 0.6351 GB, free: 6.32 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003067/0.4674, allocations: 2.747 MB / 0.6377 GB, free: 2.641 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005366/0.4727, allocations: 3.981 MB / 0.6416 GB, free: 13.73 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.206e-05/0.4728, allocations: 16 kB / 0.6416 GB, free: 13.72 MB / 494.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.006363/0.4792, allocations: 3.539 MB / 0.6451 GB, free: 10.18 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.036e-05/0.4792, allocations: 36.25 kB / 0.6451 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.77e-05/0.4793, allocations: 64 kB / 0.6452 GB, free: 10.08 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001041/0.4794, allocations: 91.94 kB / 0.6453 GB, free: 9.988 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002028/0.4815, allocations: 0.655 MB / 0.6459 GB, free: 9.332 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001363/0.4816, allocations: 135.5 kB / 0.646 GB, free: 9.199 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002125/0.4837, allocations: 420.9 kB / 0.6464 GB, free: 8.785 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000348/0.4841, allocations: 184 kB / 0.6466 GB, free: 8.605 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 301 * Number of states: 0 () * Number of discrete variables: 26 (cutTorque.torqueArrow.twoHeadedArrow,cutTorque.torqueArrow.headAtOrigin,worldTorque.color[3],worldTorque.color[2],worldTorque.color[1],frame_b.color_x[3],frame_b.color_x[2],frame_b.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],cutTorque.torqueColor[3],cutTorque.torqueColor[2],cutTorque.torqueColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (362): * Single equations (assignments): 357 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002241/0.4863, allocations: 1.35 MB / 0.6479 GB, free: 7.242 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003233/0.4866, allocations: 162.9 kB / 0.6481 GB, free: 7.082 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004244/0.4871, allocations: 196.9 kB / 0.6483 GB, free: 6.887 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.637e-05/0.4871, allocations: 11.94 kB / 0.6483 GB, free: 6.875 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.966e-06/0.4871, allocations: 0 / 0.6483 GB, free: 6.875 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.4871, allocations: 3.984 kB / 0.6483 GB, free: 6.871 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007776/0.4949, allocations: 3.915 MB / 0.6521 GB, free: 2.812 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.147e-05/0.4949, allocations: 12 kB / 0.6521 GB, free: 2.801 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004542/0.4954, allocations: 103.8 kB / 0.6522 GB, free: 2.699 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-05/0.4954, allocations: 8 kB / 0.6522 GB, free: 2.691 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.969e-05/0.4954, allocations: 16 kB / 0.6523 GB, free: 2.676 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.662e-05/0.4954, allocations: 15.94 kB / 0.6523 GB, free: 2.66 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.196e-05/0.4955, allocations: 7.938 kB / 0.6523 GB, free: 2.652 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001705/0.4972, allocations: 1.274 MB / 0.6535 GB, free: 1.273 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000445/0.4976, allocations: 186.5 kB / 0.6537 GB, free: 1.09 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002581/0.4979, allocations: 23.94 kB / 0.6537 GB, free: 1.066 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005488/0.4984, allocations: 27.98 kB / 0.6538 GB, free: 1.039 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.977e-05/0.4985, allocations: 51.8 kB / 0.6538 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.367e-05/0.4986, allocations: 32 kB / 0.6538 GB, free: 0.957 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002218/0.5008, allocations: 1.271 MB / 0.6551 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.91e-07/0.5008, allocations: 0 / 0.6551 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002579/0.5034, allocations: 0.689 MB / 0.6557 GB, free: 15 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 0 () * 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 (57): * Single equations (assignments): 54 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002118/0.5055, allocations: 1.873 MB / 0.6576 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.003412/0.5089, allocations: 1.956 MB / 0.6595 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 9.889e-06/0.5089, allocations: 7.875 kB / 0.6595 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006532/0.5096, allocations: 432 kB / 0.6599 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001534/0.5111, allocations: 248.7 kB / 0.6601 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03065/0.5418, allocations: 20.94 MB / 0.6806 GB, free: 2.914 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002305/0.5441, allocations: 1.7 MB / 0.6822 GB, free: 1.18 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002083/0.5461, allocations: 0.9636 MB / 0.6832 GB, free: 216 kB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001386/0.5475, allocations: 1.042 MB / 0.6842 GB, free: 15.17 MB / 0.5294 GB Notification: Performance of SimCode: time 8.92e-07/0.5475, allocations: 0 / 0.6842 GB, free: 15.17 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07486/0.6224, allocations: 32.91 MB / 0.7163 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.72/13.35, allocations: 3.938 kB / 0.7163 GB, free: 14.66 MB / 0.5606 GB " [Timeout remaining time 647] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000219912 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque2/CutTorque2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable cutTorque.torque[3] in file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv. Warning: Get data of variable cutTorque.torque[3] from file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv failed! Error: Could not read variable cutTorque.torque[2] in file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv. Warning: Get data of variable cutTorque.torque[2] from file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv failed! Error: Could not read variable cutTorque.torque[1] in file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv. Warning: Get data of variable cutTorque.torque[1] from file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.495423543266952]