Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001362/0.001362, allocations: 112.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001395/0.001395, allocations: 180.9 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 222.9 MB / 242.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2188/0.2188, allocations: 44.18 MB / 336.8 MB, free: 2.641 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001942/0.001943, allocations: 63.89 kB / 470 MB, free: 13.64 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.297/0.299, allocations: 60.83 MB / 0.5184 GB, free: 3.141 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque): time 0.01631/0.3153, allocations: 15.39 MB / 0.5335 GB, free: 8.121 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01164/0.327, allocations: 5.092 MB / 0.5384 GB, free: 4.113 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003008/0.33, allocations: 121.2 kB / 0.5386 GB, free: 4.094 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0127/0.3428, allocations: 6.033 MB / 0.5444 GB, free: 76 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008211/0.351, allocations: 2.85 MB / 0.5472 GB, free: 14.02 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003996/0.3551, allocations: 1.582 MB / 0.5488 GB, free: 12.82 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01239/0.3675, allocations: 7.733 MB / 0.5563 GB, free: 5.082 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01089/0.3784, allocations: 7.469 MB / 0.5636 GB, free: 13.52 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005267/0.3837, allocations: 3.042 MB / 0.5666 GB, free: 10.46 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006135/0.3899, allocations: 3.859 MB / 0.5704 GB, free: 6.594 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002126/0.3921, allocations: 0.5859 MB / 0.5709 GB, free: 6.008 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004145/0.3962, allocations: 1.428 MB / 0.5723 GB, free: 4.578 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004865/0.4011, allocations: 3.589 MB / 0.5758 GB, free: 0.9805 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007075/0.4082, allocations: 3.996 MB / 0.5797 GB, free: 12.96 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01707/0.4253, allocations: 12.18 MB / 0.5916 GB, free: 0.7344 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/0.4254, allocations: 0 / 0.5916 GB, free: 0.7344 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4254, allocations: 0 / 0.5916 GB, free: 0.7344 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004401/0.4259, allocations: 0 / 0.5916 GB, free: 0.7344 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2587 * Number of variables: 2587 Notification: Performance of Generate backend data structure: time 0.02179/0.4477, allocations: 9.01 MB / 0.6004 GB, free: 7.613 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.63e-05/0.4477, allocations: 12.03 kB / 0.6004 GB, free: 7.602 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00381/0.4516, allocations: 1.215 MB / 0.6016 GB, free: 6.375 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01165/0.4632, allocations: 2.679 MB / 0.6042 GB, free: 3.688 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01167/0.4749, allocations: 5.943 MB / 0.61 GB, free: 13.67 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004517/0.4754, allocations: 442.8 kB / 0.6105 GB, free: 13.23 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001776/0.4772, allocations: 0.5505 MB / 0.611 GB, free: 12.68 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03431/0.5116, allocations: 17.43 MB / 0.628 GB, free: 10.11 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002769/0.5119, allocations: 75.41 kB / 0.6281 GB, free: 10.04 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001558/0.5134, allocations: 267.8 kB / 0.6284 GB, free: 9.777 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005432/0.5189, allocations: 3.174 MB / 0.6315 GB, free: 6.602 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03055/0.5495, allocations: 13.42 MB / 0.6446 GB, free: 9.164 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09041/0.6399, allocations: 65.89 MB / 0.7089 GB, free: 5.441 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4192/1.059, allocations: 5.378 MB / 0.7141 GB, free: 165.4 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003775/1.063, allocations: 2.121 MB / 0.7162 GB, free: 165.3 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01674/1.08, allocations: 10.01 MB / 0.726 GB, free: 160.4 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.797e-05/1.08, allocations: 54.06 kB / 0.726 GB, free: 160.3 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=182): time 4.999e-06/1.08, allocations: 1.125 kB / 0.726 GB, free: 160.3 MB / 0.5607 GB Notification: Performance of matching and sorting (n=206): time 0.03669/1.117, allocations: 14.61 MB / 0.7403 GB, free: 154.7 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.753e-05/1.117, allocations: 149.1 kB / 0.7405 GB, free: 154.6 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009393/1.126, allocations: 6.435 MB / 0.7467 GB, free: 152.4 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0003478/1.126, allocations: 53.23 kB / 0.7468 GB, free: 152.4 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.003372/1.13, allocations: 5.441 MB / 0.7521 GB, free: 148.5 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007935/1.131, allocations: 0.8624 MB / 0.753 GB, free: 147.8 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002272/1.133, allocations: 1.695 MB / 0.7546 GB, free: 146.8 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 4.424e-05/1.133, allocations: 301.8 kB / 0.7549 GB, free: 146.5 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003129/1.136, allocations: 2.309 MB / 0.7572 GB, free: 145.3 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005219/1.141, allocations: 7.725 MB / 0.7647 GB, free: 135 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009029/1.15, allocations: 10.93 MB / 0.7754 GB, free: 121.4 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001808/1.151, allocations: 56 kB / 0.7754 GB, free: 121.4 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1103) (initialization): time 0.01685/1.168, allocations: 9.69 MB / 0.7849 GB, free: 111.7 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001249/1.168, allocations: 84.97 kB / 0.785 GB, free: 111.6 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001967/1.168, allocations: 196 kB / 0.7852 GB, free: 111.4 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001792/1.168, allocations: 263.9 kB / 0.7854 GB, free: 111.1 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005671/1.174, allocations: 1.923 MB / 0.7873 GB, free: 109.2 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002696/1.174, allocations: 378.5 kB / 0.7876 GB, free: 108.8 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00587/1.18, allocations: 415.5 kB / 0.788 GB, free: 108.4 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009974/1.181, allocations: 0.5117 MB / 0.7885 GB, free: 107.9 MB / 0.5607 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 879 * Number of states: 0 () * Number of discrete variables: 68 (cutTorque2b.torqueArrow.arrowLine.twoHeadedArrow,cutTorque2b.torqueArrow.headAtOrigin,cutTorque1b.torqueArrow.arrowLine.twoHeadedArrow,cutTorque1b.torqueArrow.headAtOrigin,cutTorque2a.torqueArrow.arrowLine.twoHeadedArrow,cutTorque2a.torqueArrow.headAtOrigin,cutTorque1a.torqueArrow.arrowLine.twoHeadedArrow,cutTorque1a.torqueArrow.headAtOrigin,rotate2b.color[3],rotate2b.color[2],rotate2b.color[1],body2b.sphereColor[3],body2b.sphereColor[2],body2b.sphereColor[1],translate2b.color[3],translate2b.color[2],translate2b.color[1],cutTorque2b.torqueColor[3],cutTorque2b.torqueColor[2],cutTorque2b.torqueColor[1],rotate1b.color[3],rotate1b.color[2],rotate1b.color[1],body1b.sphereColor[3],body1b.sphereColor[2],body1b.sphereColor[1],translate1b.color[3],translate1b.color[2],translate1b.color[1],cutTorque1b.torqueColor[3],cutTorque1b.torqueColor[2],cutTorque1b.torqueColor[1],rotate2a.color[3],rotate2a.color[2],rotate2a.color[1],rotate1a.color[3],rotate1a.color[2],rotate1a.color[1],body2a.sphereColor[3],body2a.sphereColor[2],body2a.sphereColor[1],translate2a.color[3],translate2a.color[2],translate2a.color[1],cutTorque2a.torqueColor[3],cutTorque2a.torqueColor[2],cutTorque2a.torqueColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutTorque1a.torqueColor[3],cutTorque1a.torqueColor[2],cutTorque1a.torqueColor[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 (1039): * Single equations (assignments): 1028 * Array equations: 11 * 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.004938/1.186, allocations: 3.405 MB / 0.7919 GB, free: 104.5 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001024/1.187, allocations: 0.5704 MB / 0.7924 GB, free: 103.9 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00139/1.188, allocations: 0.6368 MB / 0.793 GB, free: 103.3 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.69e-05/1.188, allocations: 20 kB / 0.7931 GB, free: 103.3 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.661e-05/1.188, allocations: 0 / 0.7931 GB, free: 103.3 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.622e-05/1.188, allocations: 11.97 kB / 0.7931 GB, free: 103.3 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01931/1.208, allocations: 15.28 MB / 0.808 GB, free: 87.32 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.498e-05/1.208, allocations: 51.94 kB / 0.808 GB, free: 87.27 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001249/1.209, allocations: 443.2 kB / 0.8085 GB, free: 86.84 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.822e-05/1.209, allocations: 60 kB / 0.8085 GB, free: 86.78 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001539/1.209, allocations: 100 kB / 0.8086 GB, free: 86.68 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.195e-05/1.209, allocations: 91.64 kB / 0.8087 GB, free: 86.59 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.669e-05/1.209, allocations: 71.69 kB / 0.8088 GB, free: 86.52 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003573/1.213, allocations: 4.351 MB / 0.813 GB, free: 81.47 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001231/1.214, allocations: 0.666 MB / 0.8137 GB, free: 80.78 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009025/1.215, allocations: 111.2 kB / 0.8138 GB, free: 80.68 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002325/1.218, allocations: 111.9 kB / 0.8139 GB, free: 80.57 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003709/1.218, allocations: 306.5 kB / 0.8142 GB, free: 80.27 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001521/1.218, allocations: 128 kB / 0.8143 GB, free: 80.14 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.005883/1.224, allocations: 4.001 MB / 0.8182 GB, free: 76.15 MB / 0.5607 GB Notification: Performance of sort global known variables: time 8.72e-07/1.224, allocations: 0 / 0.8182 GB, free: 76.15 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.007281/1.231, allocations: 1.362 MB / 0.8195 GB, free: 74.79 MB / 0.5607 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 211 * 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 (238): * Single equations (assignments): 235 * 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.004795/1.236, allocations: 5.072 MB / 0.8245 GB, free: 69.02 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.007529/1.244, allocations: 5.455 MB / 0.8298 GB, free: 63.61 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 4.295e-05/1.244, allocations: 12.81 kB / 0.8298 GB, free: 63.6 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.001539/1.245, allocations: 1.201 MB / 0.831 GB, free: 62.41 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006682/1.252, allocations: 0.922 MB / 0.8319 GB, free: 61.5 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09089/1.343, allocations: 66.92 MB / 0.8973 GB, free: 1.094 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01053/1.354, allocations: 5.25 MB / 0.9024 GB, free: 11.81 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0072/1.361, allocations: 2.566 MB / 0.9049 GB, free: 9.234 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006068/1.367, allocations: 3.428 MB / 0.9082 GB, free: 5.805 MB / 0.5919 GB Notification: Performance of SimCode: time 1.132e-06/1.367, allocations: 0 / 0.9082 GB, free: 5.805 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3906/1.758, allocations: 94.68 MB / 1.001 GB, free: 177.5 MB / 0.6232 GB Notification: Performance of buildModelFMU: Generate platform static: time 41.8/43.56, allocations: 15.34 kB / 1.001 GB, free: 177.5 MB / 0.6232 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque_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_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque/CutTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches