Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008338/0.0008339, allocations: 175.4 kB / 16.72 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.197/1.197, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007367/0.0007367, allocations: 93.11 kB / 271.2 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.292/0.292, allocations: 43.57 MB / 363.1 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000332/0.000332, allocations: 12 kB / 432.1 MB, free: 5.727 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0979/0.09825, allocations: 58.85 MB / 490.9 MB, free: 10.8 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.1924/0.2907, allocations: 35.28 MB / 0.5139 GB, free: 25.39 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0139/0.3047, allocations: 7.316 MB / 0.521 GB, free: 20.43 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005794/0.3105, allocations: 160.2 kB / 0.5212 GB, free: 20.4 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003257/0.3138, allocations: 1.518 MB / 0.5226 GB, free: 19.87 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009159/0.323, allocations: 4.486 MB / 0.527 GB, free: 18.02 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001219/0.3242, allocations: 276.3 kB / 0.5273 GB, free: 17.9 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002827/0.327, allocations: 2.887 MB / 0.5301 GB, free: 16.94 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003173/0.3302, allocations: 3.296 MB / 0.5333 GB, free: 15.54 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007874/0.331, allocations: 0.7386 MB / 0.534 GB, free: 15.29 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009555/0.332, allocations: 1.154 MB / 0.5352 GB, free: 14.93 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001747/0.3322, allocations: 97.12 kB / 0.5353 GB, free: 14.93 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008627/0.3331, allocations: 0.6173 MB / 0.5359 GB, free: 14.78 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006221/0.3337, allocations: 1.076 MB / 0.5369 GB, free: 14.45 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007445/0.3344, allocations: 1.252 MB / 0.5381 GB, free: 13.55 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003409/0.3379, allocations: 3.717 MB / 0.5418 GB, free: 12.8 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.3379, allocations: 0 / 0.5418 GB, free: 12.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3379, allocations: 0 / 0.5418 GB, free: 12.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000103/0.338, allocations: 4 kB / 0.5418 GB, free: 12.8 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1095 * Number of variables: 1095 Notification: Performance of Generate backend data structure: time 0.00374/0.3417, allocations: 2.582 MB / 0.5443 GB, free: 11.21 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.3418, allocations: 12.95 kB / 0.5443 GB, free: 11.21 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005786/0.3424, allocations: 0.5279 MB / 0.5448 GB, free: 10.94 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004982/0.3474, allocations: 1.66 MB / 0.5464 GB, free: 10.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002007/0.3494, allocations: 1.408 MB / 0.5478 GB, free: 9.496 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001103/0.3495, allocations: 161.9 kB / 0.548 GB, free: 9.414 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003283/0.3498, allocations: 209.2 kB / 0.5482 GB, free: 9.34 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008977/0.3588, allocations: 6.945 MB / 0.555 GB, free: 5.398 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.755e-05/0.3589, allocations: 21.72 kB / 0.555 GB, free: 5.383 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002423/0.3591, allocations: 97.56 kB / 0.5551 GB, free: 5.312 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002127/0.3613, allocations: 1.521 MB / 0.5566 GB, free: 4.719 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008238/0.3695, allocations: 5.917 MB / 0.5623 GB, free: 0.7109 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02452/0.3941, allocations: 22.25 MB / 0.5841 GB, free: 9.863 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003931/0.398, allocations: 2.194 MB / 0.5862 GB, free: 7.547 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009936/0.399, allocations: 0.8011 MB / 0.587 GB, free: 6.738 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005934/0.405, allocations: 3.958 MB / 0.5909 GB, free: 2.641 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.395e-05/0.405, allocations: 51.09 kB / 0.5909 GB, free: 2.582 MB / 410.7 MB Notification: Performance of pre-optimization done (n=96): time 2.775e-06/0.405, allocations: 0 / 0.5909 GB, free: 2.582 MB / 410.7 MB Notification: Performance of matching and sorting (n=96): time 0.00524/0.4103, allocations: 2.252 MB / 0.5931 GB, free: 332 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.665e-05/0.4104, allocations: 64.06 kB / 0.5932 GB, free: 256 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002474/0.4128, allocations: 2.037 MB / 0.5952 GB, free: 14.16 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.195e-05/0.4129, allocations: 41.7 kB / 0.5952 GB, free: 14.12 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001145/0.414, allocations: 2.007 MB / 0.5972 GB, free: 12.08 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002996/0.4144, allocations: 379.2 kB / 0.5975 GB, free: 11.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/0.4145, allocations: 64 kB / 0.5976 GB, free: 11.64 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002674/0.4147, allocations: 0.5058 MB / 0.5981 GB, free: 11.12 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00135/0.4161, allocations: 0.9746 MB / 0.599 GB, free: 10.15 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002504/0.4186, allocations: 2.992 MB / 0.6019 GB, free: 6.16 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004145/0.4228, allocations: 4.338 MB / 0.6062 GB, free: 0.8281 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.46e-05/0.4228, allocations: 20 kB / 0.6062 GB, free: 0.8086 MB / 426.7 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.005274/0.4281, allocations: 3.847 MB / 0.61 GB, free: 12.95 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.364e-05/0.4282, allocations: 44.02 kB / 0.61 GB, free: 12.91 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.729e-05/0.4282, allocations: 68 kB / 0.6101 GB, free: 12.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.782e-05/0.4283, allocations: 96 kB / 0.6102 GB, free: 12.75 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001874/0.4302, allocations: 0.7252 MB / 0.6109 GB, free: 12.02 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-05/0.4303, allocations: 143.4 kB / 0.611 GB, free: 11.88 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001716/0.432, allocations: 459.1 kB / 0.6114 GB, free: 11.43 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002275/0.4323, allocations: 203.9 kB / 0.6116 GB, free: 11.23 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 322 * Number of states: 0 () * Number of discrete variables: 24 (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 (401): * Single equations (assignments): 396 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002106/0.4344, allocations: 1.47 MB / 0.6131 GB, free: 9.754 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002036/0.4346, allocations: 173.7 kB / 0.6132 GB, free: 9.582 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001848/0.4364, allocations: 1.233 MB / 0.6144 GB, free: 8.336 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.767e-05/0.4365, allocations: 12 kB / 0.6144 GB, free: 8.324 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.778e-06/0.4365, allocations: 0 / 0.6144 GB, free: 8.324 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.4365, allocations: 7.922 kB / 0.6145 GB, free: 8.316 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006962/0.4435, allocations: 5.029 MB / 0.6194 GB, free: 3.086 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-05/0.4435, allocations: 12 kB / 0.6194 GB, free: 3.074 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005079/0.444, allocations: 139.8 kB / 0.6195 GB, free: 2.938 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.351e-05/0.444, allocations: 15.94 kB / 0.6195 GB, free: 2.922 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.254e-05/0.4441, allocations: 32.67 kB / 0.6196 GB, free: 2.891 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-05/0.4441, allocations: 15.94 kB / 0.6196 GB, free: 2.875 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.428e-06/0.4441, allocations: 19.94 kB / 0.6196 GB, free: 2.855 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001707/0.4458, allocations: 1.57 MB / 0.6211 GB, free: 1.133 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003604/0.4462, allocations: 278.5 kB / 0.6214 GB, free: 0.8398 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001598/0.4464, allocations: 23.98 kB / 0.6214 GB, free: 0.8164 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005471/0.4469, allocations: 43.88 kB / 0.6215 GB, free: 0.7734 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.4471, allocations: 79.67 kB / 0.6215 GB, free: 0.6953 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.094e-05/0.4472, allocations: 40 kB / 0.6216 GB, free: 0.6562 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001597/0.4488, allocations: 1.337 MB / 0.6229 GB, free: 15.29 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4488, allocations: 0 / 0.6229 GB, free: 15.29 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002297/0.4511, allocations: 0.7737 MB / 0.6236 GB, free: 14.52 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * 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 (76): * Single equations (assignments): 73 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002099/0.4532, allocations: 2.202 MB / 0.6258 GB, free: 12.16 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003037/0.4562, allocations: 2.284 MB / 0.628 GB, free: 9.895 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/0.4562, allocations: 4 kB / 0.628 GB, free: 9.891 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006772/0.4569, allocations: 0.5495 MB / 0.6286 GB, free: 9.344 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003226/0.4602, allocations: 251.7 kB / 0.6288 GB, free: 9.098 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02374/0.4839, allocations: 17.37 MB / 0.6458 GB, free: 5.926 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002358/0.4863, allocations: 2.454 MB / 0.6482 GB, free: 3.445 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001414/0.4877, allocations: 1.198 MB / 0.6493 GB, free: 2.246 MB / 474.7 MB Notification: Performance of SimCode: time 5.91e-07/0.4877, allocations: 0 / 0.6493 GB, free: 2.246 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.928/5.415, allocations: 44.46 MB / 0.6927 GB, free: 154.1 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutTorque2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutTorque2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/CutTorque2/CutTorque2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches