Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.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 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 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 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.AbsoluteSensor2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",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.001084/0.001084, allocations: 105 kB / 16.4 MB, free: 6.477 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.001222/0.001222, allocations: 189.5 kB / 17.34 MB, free: 5.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.291/1.291, allocations: 205.1 MB / 223.2 MB, free: 12.1 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2022/0.2022, allocations: 43.52 MB / 314.1 MB, free: 444 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 75.88 kB / 441.3 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1059, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.01292/0.1188, allocations: 12.44 MB / 0.4995 GB, free: 15.8 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007557/0.1264, allocations: 4.047 MB / 0.5035 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00193/0.1284, allocations: 83.88 kB / 0.5036 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003289/0.1317, allocations: 1.678 MB / 0.5052 GB, free: 9.969 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003693/0.1355, allocations: 1.599 MB / 0.5068 GB, free: 8.363 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002265/0.1377, allocations: 1.181 MB / 0.5079 GB, free: 7.18 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004629/0.1424, allocations: 3.623 MB / 0.5115 GB, free: 3.547 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003364/0.1458, allocations: 2.524 MB / 0.5139 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001877/0.1477, allocations: 1.211 MB / 0.5151 GB, free: 15.76 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002334/0.15, allocations: 1.666 MB / 0.5167 GB, free: 14.09 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00071/0.1507, allocations: 255.9 kB / 0.517 GB, free: 13.84 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001577/0.1523, allocations: 0.71 MB / 0.5177 GB, free: 13.12 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001759/0.1541, allocations: 1.656 MB / 0.5193 GB, free: 11.46 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002532/0.1566, allocations: 1.983 MB / 0.5212 GB, free: 9.469 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006052/0.1627, allocations: 6.519 MB / 0.5276 GB, free: 2.926 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.1627, allocations: 0 / 0.5276 GB, free: 2.926 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1627, allocations: 0 / 0.5276 GB, free: 2.926 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001214/0.1629, allocations: 0 / 0.5276 GB, free: 2.926 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: 1617 * Number of variables: 1617 Notification: Performance of Generate backend data structure: time 0.2133/0.3762, allocations: 4.187 MB / 0.5317 GB, free: 37.61 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.3763, allocations: 10.48 kB / 0.5317 GB, free: 37.61 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009332/0.3772, allocations: 0.7507 MB / 0.5324 GB, free: 37.53 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009677/0.3869, allocations: 3.011 MB / 0.5354 GB, free: 37.25 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003497/0.3904, allocations: 1.871 MB / 0.5372 GB, free: 36.64 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001579/0.3906, allocations: 203.3 kB / 0.5374 GB, free: 36.63 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000574/0.3912, allocations: 262 kB / 0.5376 GB, free: 36.63 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01627/0.4074, allocations: 10.52 MB / 0.5479 GB, free: 31.92 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.927e-05/0.4075, allocations: 36.03 kB / 0.5479 GB, free: 31.9 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003957/0.4079, allocations: 131.8 kB / 0.5481 GB, free: 31.81 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003622/0.4116, allocations: 2.441 MB / 0.5505 GB, free: 31.17 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0142/0.4258, allocations: 9.375 MB / 0.5596 GB, free: 24.79 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03796/0.4638, allocations: 38.74 MB / 0.5974 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005706/0.4695, allocations: 3.494 MB / 0.6009 GB, free: 13.14 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00179/0.4714, allocations: 1.266 MB / 0.6021 GB, free: 11.86 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00919/0.4806, allocations: 5.458 MB / 0.6074 GB, free: 6.25 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.401e-05/0.4806, allocations: 43.12 kB / 0.6075 GB, free: 6.199 MB / 446.1 MB Notification: Performance of pre-optimization done (n=153): time 6.302e-06/0.4807, allocations: 1.969 kB / 0.6075 GB, free: 6.199 MB / 446.1 MB Notification: Performance of matching and sorting (n=153): time 0.007077/0.4877, allocations: 3.358 MB / 0.6107 GB, free: 2.836 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.404e-05/0.4879, allocations: 170.8 kB / 0.6109 GB, free: 2.633 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006279/0.4941, allocations: 3.952 MB / 0.6148 GB, free: 14.69 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001628/0.4943, allocations: 41.7 kB / 0.6148 GB, free: 14.64 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002465/0.4968, allocations: 3.324 MB / 0.618 GB, free: 11.27 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007268/0.4975, allocations: 0.6214 MB / 0.6187 GB, free: 10.64 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001891/0.4994, allocations: 1.341 MB / 0.62 GB, free: 9.289 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.4996, allocations: 309.1 kB / 0.6203 GB, free: 8.984 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002712/0.5023, allocations: 1.996 MB / 0.6222 GB, free: 6.984 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005592/0.5079, allocations: 6.315 MB / 0.6284 GB, free: 14.52 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01002/0.5179, allocations: 9.061 MB / 0.6372 GB, free: 3.316 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000159/0.5181, allocations: 44 kB / 0.6373 GB, free: 3.273 MB / 478.1 MB Notification: Performance of matching and sorting (n=877) (initialization): time 0.01348/0.5316, allocations: 7.931 MB / 0.645 GB, free: 11.33 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001285/0.5318, allocations: 72 kB / 0.6451 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002196/0.532, allocations: 156 kB / 0.6452 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002141/0.5322, allocations: 200.7 kB / 0.6454 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004308/0.5365, allocations: 1.513 MB / 0.6469 GB, free: 9.398 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002336/0.5368, allocations: 302.8 kB / 0.6472 GB, free: 9.102 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004262/0.5411, allocations: 0.9435 MB / 0.6481 GB, free: 8.148 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006339/0.5417, allocations: 412 kB / 0.6485 GB, free: 7.746 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 698 * Number of states: 0 () * Number of discrete variables: 21 (freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[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 (819): * Single equations (assignments): 811 * Array equations: 8 * 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.003199/0.5449, allocations: 2.288 MB / 0.6507 GB, free: 5.449 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005454/0.5455, allocations: 315.8 kB / 0.651 GB, free: 5.137 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007891/0.5463, allocations: 421.1 kB / 0.6514 GB, free: 4.723 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.519e-05/0.5463, allocations: 35.98 kB / 0.6515 GB, free: 4.688 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.041e-05/0.5463, allocations: 0 / 0.6515 GB, free: 4.688 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.311e-05/0.5464, allocations: 11.97 kB / 0.6515 GB, free: 4.676 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009388/0.5557, allocations: 5.7 MB / 0.6571 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.554e-05/0.5558, allocations: 4 kB / 0.6571 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009403/0.5567, allocations: 216.5 kB / 0.6573 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.576e-05/0.5568, allocations: 12 kB / 0.6573 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.615e-05/0.5569, allocations: 27.98 kB / 0.6573 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.542e-05/0.5569, allocations: 15.98 kB / 0.6573 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.184e-06/0.5569, allocations: 12.44 kB / 0.6573 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002982/0.5599, allocations: 2.586 MB / 0.6599 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006737/0.5606, allocations: 376.6 kB / 0.6602 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004711/0.5611, allocations: 29.98 kB / 0.6602 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0011/0.5622, allocations: 63.92 kB / 0.6603 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000159/0.5623, allocations: 96.2 kB / 0.6604 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.025e-05/0.5624, allocations: 44 kB / 0.6604 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003549/0.566, allocations: 2.411 MB / 0.6628 GB, free: 8.867 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.81e-07/0.566, allocations: 0 / 0.6628 GB, free: 8.867 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004684/0.5707, allocations: 1.136 MB / 0.6639 GB, free: 7.73 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 (111): * Single equations (assignments): 105 * Array equations: 6 * 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.003559/0.5743, allocations: 3.216 MB / 0.667 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00725/0.5815, allocations: 4.55 MB / 0.6715 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.626e-06/0.5816, allocations: 0 / 0.6715 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00126/0.5828, allocations: 0.9689 MB / 0.6724 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002391/0.5852, allocations: 365.9 kB / 0.6728 GB, free: 14.58 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0589/0.6441, allocations: 43.18 MB / 0.7149 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004074/0.6483, allocations: 3.276 MB / 0.7181 GB, free: 9.293 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00476/0.653, allocations: 2.281 MB / 0.7204 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002321/0.6554, allocations: 1.753 MB / 0.7221 GB, free: 5.25 MB / 0.5606 GB Notification: Performance of SimCode: time 9.22e-07/0.6554, allocations: 4 kB / 0.7221 GB, free: 5.246 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3042/0.9596, allocations: 53.26 MB / 0.7741 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.84/19.8, allocations: 16.14 kB / 0.7741 GB, free: 210.2 MB / 0.5919 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/AbsoluteSensor2/AbsoluteSensor2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches