Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.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.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00112/0.00112, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001233/0.001233, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.311/1.311, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1989/0.1989, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 75.88 kB / 480.8 MB, free: 4.594 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3237/0.3251, allocations: 62.44 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.01094/0.3361, allocations: 9.524 MB / 0.5398 GB, free: 5.953 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006522/0.3427, allocations: 2.929 MB / 0.5427 GB, free: 3.672 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001941/0.3447, allocations: 51.69 kB / 0.5427 GB, free: 3.664 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004551/0.3493, allocations: 1.99 MB / 0.5447 GB, free: 2.344 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003969/0.3533, allocations: 1.13 MB / 0.5458 GB, free: 1.574 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00109/0.3544, allocations: 290.2 kB / 0.546 GB, free: 1.383 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004039/0.3585, allocations: 2.332 MB / 0.5483 GB, free: 15.52 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003084/0.3616, allocations: 2.3 MB / 0.5506 GB, free: 13.18 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001729/0.3634, allocations: 0.8762 MB / 0.5514 GB, free: 12.3 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001941/0.3654, allocations: 1.153 MB / 0.5525 GB, free: 11.14 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005199/0.3659, allocations: 196 kB / 0.5527 GB, free: 10.95 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00134/0.3673, allocations: 0.706 MB / 0.5534 GB, free: 10.25 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001046/0.3683, allocations: 1.107 MB / 0.5545 GB, free: 9.137 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001327/0.3697, allocations: 1.308 MB / 0.5558 GB, free: 7.82 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004711/0.3744, allocations: 4.335 MB / 0.56 GB, free: 3.469 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.3744, allocations: 0 / 0.56 GB, free: 3.469 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3744, allocations: 4 kB / 0.56 GB, free: 3.465 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001147/0.3745, allocations: 0 / 0.56 GB, free: 3.465 MB / 414.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.005211/0.3798, allocations: 2.934 MB / 0.5629 GB, free: 480 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.3798, allocations: 8.031 kB / 0.5629 GB, free: 472 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006319/0.3805, allocations: 491 kB / 0.5634 GB, free: 15.97 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005096/0.3856, allocations: 1.578 MB / 0.5649 GB, free: 14.39 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003032/0.3886, allocations: 1.34 MB / 0.5662 GB, free: 13.01 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001251/0.3888, allocations: 151.8 kB / 0.5664 GB, free: 12.86 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005235/0.3893, allocations: 183.9 kB / 0.5665 GB, free: 12.68 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009948/0.3993, allocations: 6.242 MB / 0.5726 GB, free: 6.164 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.171e-05/0.3994, allocations: 11.88 kB / 0.5726 GB, free: 6.152 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002729/0.3997, allocations: 91.91 kB / 0.5727 GB, free: 6.062 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002051/0.4017, allocations: 1.348 MB / 0.574 GB, free: 4.711 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0101/0.4118, allocations: 5.331 MB / 0.5792 GB, free: 15.36 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02899/0.4409, allocations: 20.08 MB / 0.5989 GB, free: 10.71 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004233/0.4451, allocations: 2.011 MB / 0.6008 GB, free: 8.574 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001015/0.4462, allocations: 0.6875 MB / 0.6015 GB, free: 7.883 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007058/0.4533, allocations: 3.617 MB / 0.605 GB, free: 4.121 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.442e-05/0.4534, allocations: 42.98 kB / 0.6051 GB, free: 4.07 MB / 462.1 MB Notification: Performance of pre-optimization done (n=78): time 4.018e-06/0.4534, allocations: 0 / 0.6051 GB, free: 4.07 MB / 462.1 MB Notification: Performance of matching and sorting (n=78): time 0.005566/0.459, allocations: 1.99 MB / 0.607 GB, free: 2.07 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.83e-05/0.459, allocations: 55.84 kB / 0.6071 GB, free: 2.004 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00271/0.4618, allocations: 1.953 MB / 0.609 GB, free: 48 kB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 9.058e-05/0.4619, allocations: 33.69 kB / 0.609 GB, free: 8 kB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001351/0.4632, allocations: 1.911 MB / 0.6109 GB, free: 14.07 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003692/0.4636, allocations: 329.5 kB / 0.6112 GB, free: 13.75 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007946/0.4644, allocations: 0.6195 MB / 0.6118 GB, free: 13.12 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.4646, allocations: 353.9 kB / 0.6121 GB, free: 12.77 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001326/0.466, allocations: 0.8881 MB / 0.613 GB, free: 11.88 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002652/0.4686, allocations: 2.755 MB / 0.6157 GB, free: 8.191 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004548/0.4732, allocations: 3.962 MB / 0.6195 GB, free: 3.305 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.155e-05/0.4733, allocations: 16 kB / 0.6196 GB, free: 3.289 MB / 478.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.006321/0.4796, allocations: 3.54 MB / 0.623 GB, free: 15.74 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.541e-05/0.4797, allocations: 32 kB / 0.6231 GB, free: 15.71 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.203e-05/0.4798, allocations: 64 kB / 0.6231 GB, free: 15.65 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.224e-05/0.4799, allocations: 91.94 kB / 0.6232 GB, free: 15.56 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001957/0.4819, allocations: 0.6511 MB / 0.6238 GB, free: 14.91 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001093/0.482, allocations: 135.4 kB / 0.624 GB, free: 14.77 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002043/0.4841, allocations: 433.2 kB / 0.6244 GB, free: 14.35 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002708/0.4843, allocations: 188 kB / 0.6246 GB, free: 14.16 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.00221/0.4866, allocations: 1.334 MB / 0.6259 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002679/0.4868, allocations: 162.9 kB / 0.626 GB, free: 12.66 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003227/0.4872, allocations: 200.9 kB / 0.6262 GB, free: 12.46 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.376e-05/0.4872, allocations: 11.94 kB / 0.6262 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.367e-06/0.4872, allocations: 7.938 kB / 0.6262 GB, free: 12.44 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/0.4872, allocations: 3.984 kB / 0.6262 GB, free: 12.44 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006734/0.494, allocations: 4.025 MB / 0.6302 GB, free: 8.262 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-05/0.494, allocations: 4 kB / 0.6302 GB, free: 8.258 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004275/0.4945, allocations: 103.8 kB / 0.6303 GB, free: 8.156 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.335e-05/0.4945, allocations: 16 kB / 0.6303 GB, free: 8.141 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.676e-05/0.4945, allocations: 20 kB / 0.6303 GB, free: 8.121 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.214e-05/0.4946, allocations: 15.94 kB / 0.6303 GB, free: 8.105 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.143e-06/0.4946, allocations: 8 kB / 0.6303 GB, free: 8.098 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001502/0.4961, allocations: 1.275 MB / 0.6316 GB, free: 6.719 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004473/0.4965, allocations: 259.7 kB / 0.6318 GB, free: 6.445 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000178/0.4967, allocations: 12 kB / 0.6318 GB, free: 6.434 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005013/0.4972, allocations: 39.91 kB / 0.6319 GB, free: 6.395 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.615e-05/0.4973, allocations: 59.77 kB / 0.6319 GB, free: 6.336 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.455e-05/0.4974, allocations: 28 kB / 0.6319 GB, free: 6.309 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001763/0.4992, allocations: 1.267 MB / 0.6332 GB, free: 5.051 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4992, allocations: 4 kB / 0.6332 GB, free: 5.047 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002605/0.5018, allocations: 0.6891 MB / 0.6339 GB, free: 4.355 MB / 494.1 MB 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.002008/0.5038, allocations: 1.869 MB / 0.6357 GB, free: 2.375 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003264/0.5071, allocations: 2.054 MB / 0.6377 GB, free: 348 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.325e-06/0.5071, allocations: 4.062 kB / 0.6377 GB, free: 344 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005701/0.5077, allocations: 461.5 kB / 0.6381 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001373/0.5091, allocations: 245.4 kB / 0.6384 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02933/0.5385, allocations: 20.95 MB / 0.6588 GB, free: 8.156 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002576/0.5411, allocations: 2.275 MB / 0.661 GB, free: 5.852 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002083/0.5432, allocations: 0.9597 MB / 0.662 GB, free: 4.887 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001573/0.5448, allocations: 1.042 MB / 0.663 GB, free: 3.844 MB / 0.5137 GB Notification: Performance of SimCode: time 2.225e-06/0.5448, allocations: 0 / 0.663 GB, free: 3.844 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06145/0.6063, allocations: 32.6 MB / 0.6948 GB, free: 3.387 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.13/12.74, allocations: 11.94 kB / 0.6948 GB, free: 3.375 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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.00044 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches