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.001588/0.001588, allocations: 106 kB / 16.27 MB, free: 5.93 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.001803/0.001803, allocations: 190.1 kB / 17.2 MB, free: 5.574 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.485/1.485, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.205/0.205, allocations: 43.53 MB / 313.9 MB, free: 0.5234 MB / 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.001597/0.001597, allocations: 77.62 kB / 382.8 MB, free: 56.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09335/0.09497, allocations: 57.79 MB / 440.6 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.0113/0.1063, allocations: 12.42 MB / 453 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007944/0.1143, allocations: 4.051 MB / 457.1 MB, free: 6.262 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001735/0.1161, allocations: 79.88 kB / 457.2 MB, free: 6.184 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003205/0.1193, allocations: 1.682 MB / 458.9 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003589/0.123, allocations: 1.592 MB / 460.4 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002205/0.1252, allocations: 1.192 MB / 461.6 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004326/0.1295, allocations: 3.622 MB / 465.3 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002666/0.1322, allocations: 2.524 MB / 467.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001435/0.1336, allocations: 1.218 MB / 469 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001923/0.1356, allocations: 1.658 MB / 470.7 MB, free: 8.617 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004572/0.1361, allocations: 256 kB / 470.9 MB, free: 8.367 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001396/0.1375, allocations: 0.71 MB / 471.6 MB, free: 7.656 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001267/0.1387, allocations: 1.656 MB / 473.3 MB, free: 5.996 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001749/0.1405, allocations: 1.983 MB / 475.3 MB, free: 4 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005724/0.1462, allocations: 6.203 MB / 481.5 MB, free: 13.78 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1463, allocations: 0 / 481.5 MB, free: 13.78 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.476e-06/0.1463, allocations: 0 / 481.5 MB, free: 13.78 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001139/0.1464, allocations: 3.938 kB / 481.5 MB, free: 13.77 MB / 366.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.006804/0.1532, allocations: 4.184 MB / 485.6 MB, free: 9.52 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.714e-05/0.1533, allocations: 15.89 kB / 485.7 MB, free: 9.504 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008942/0.1542, allocations: 0.7496 MB / 486.4 MB, free: 8.742 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009996/0.1642, allocations: 3.009 MB / 489.4 MB, free: 5.723 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003512/0.1677, allocations: 1.854 MB / 491.3 MB, free: 3.82 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001417/0.1679, allocations: 205.1 kB / 491.5 MB, free: 3.617 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005312/0.1684, allocations: 267.8 kB / 491.7 MB, free: 3.355 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01486/0.1833, allocations: 10.53 MB / 0.4905 GB, free: 8.168 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.488e-05/0.1834, allocations: 31.69 kB / 0.4905 GB, free: 8.137 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003868/0.1838, allocations: 131.8 kB / 0.4906 GB, free: 8.008 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003908/0.1877, allocations: 2.435 MB / 0.493 GB, free: 5.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01751/0.2052, allocations: 9.369 MB / 0.5022 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2551/0.4604, allocations: 38.93 MB / 0.5402 GB, free: 60.8 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005599/0.466, allocations: 3.483 MB / 0.5436 GB, free: 59.52 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001763/0.4678, allocations: 1.282 MB / 0.5448 GB, free: 59.46 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00951/0.4773, allocations: 5.46 MB / 0.5502 GB, free: 57.59 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.216e-05/0.4774, allocations: 52.09 kB / 0.5502 GB, free: 57.54 MB / 414.1 MB Notification: Performance of pre-optimization done (n=153): time 6.632e-06/0.4774, allocations: 0.5625 kB / 0.5502 GB, free: 57.54 MB / 414.1 MB Notification: Performance of matching and sorting (n=153): time 0.006867/0.4843, allocations: 3.355 MB / 0.5535 GB, free: 57.07 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.53e-05/0.4844, allocations: 173.8 kB / 0.5537 GB, free: 56.88 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004212/0.4886, allocations: 3.957 MB / 0.5575 GB, free: 55.45 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.12e-05/0.4887, allocations: 40.86 kB / 0.5576 GB, free: 55.4 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001347/0.49, allocations: 3.317 MB / 0.5608 GB, free: 52.85 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004233/0.4905, allocations: 0.6145 MB / 0.5614 GB, free: 52.43 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001221/0.4917, allocations: 1.355 MB / 0.5627 GB, free: 51.77 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 3.851e-05/0.4917, allocations: 303.2 kB / 0.563 GB, free: 51.47 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002214/0.494, allocations: 1.999 MB / 0.565 GB, free: 50.87 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004035/0.498, allocations: 6.308 MB / 0.5711 GB, free: 44.48 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007259/0.5053, allocations: 9.061 MB / 0.58 GB, free: 35.67 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001087/0.5054, allocations: 44 kB / 0.58 GB, free: 35.63 MB / 414.1 MB Notification: Performance of matching and sorting (n=877) (initialization): time 0.01135/0.5168, allocations: 7.922 MB / 0.5878 GB, free: 27.71 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.726e-05/0.5169, allocations: 81.86 kB / 0.5878 GB, free: 27.63 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001131/0.517, allocations: 156 kB / 0.588 GB, free: 27.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001313/0.5172, allocations: 200 kB / 0.5882 GB, free: 27.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003786/0.521, allocations: 1.509 MB / 0.5897 GB, free: 25.77 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001514/0.5211, allocations: 294.9 kB / 0.5899 GB, free: 25.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004266/0.5254, allocations: 0.9404 MB / 0.5909 GB, free: 24.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005766/0.526, allocations: 416 kB / 0.5912 GB, free: 24.13 MB / 414.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.002685/0.5287, allocations: 2.289 MB / 0.5935 GB, free: 21.84 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004201/0.5291, allocations: 323.7 kB / 0.5938 GB, free: 21.52 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005845/0.5297, allocations: 420.2 kB / 0.5942 GB, free: 21.11 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-05/0.5298, allocations: 36.61 kB / 0.5942 GB, free: 21.07 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.264e-05/0.5298, allocations: 0 / 0.5942 GB, free: 21.07 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.5298, allocations: 7.984 kB / 0.5942 GB, free: 21.06 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007584/0.5374, allocations: 5.708 MB / 0.5998 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.758e-05/0.5374, allocations: 15.75 kB / 0.5998 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009379/0.5384, allocations: 203.7 kB / 0.6 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.36e-05/0.5384, allocations: 12 kB / 0.6 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.236e-05/0.5385, allocations: 35.45 kB / 0.6001 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-05/0.5385, allocations: 11.94 kB / 0.6001 GB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.55e-06/0.5385, allocations: 8 kB / 0.6001 GB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002411/0.5409, allocations: 2.587 MB / 0.6026 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006379/0.5416, allocations: 388.4 kB / 0.603 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003065/0.5419, allocations: 28.11 kB / 0.603 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009757/0.5429, allocations: 75.84 kB / 0.6031 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000153/0.543, allocations: 76.3 kB / 0.6032 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.265e-05/0.5431, allocations: 56.53 kB / 0.6032 GB, free: 11.67 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002828/0.546, allocations: 2.403 MB / 0.6056 GB, free: 9.281 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.546, allocations: 0 / 0.6056 GB, free: 9.281 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0045/0.5505, allocations: 1.138 MB / 0.6067 GB, free: 8.145 MB / 414.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 (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.002727/0.5532, allocations: 3.214 MB / 0.6098 GB, free: 4.84 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006516/0.5598, allocations: 5.204 MB / 0.6149 GB, free: 15.68 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.047e-05/0.5598, allocations: 0 / 0.6149 GB, free: 15.68 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001272/0.5611, allocations: 0.9618 MB / 0.6158 GB, free: 14.71 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002221/0.5633, allocations: 369.8 kB / 0.6162 GB, free: 14.37 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06498/0.6283, allocations: 47.4 MB / 0.6625 GB, free: 6.738 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003897/0.6322, allocations: 3.274 MB / 0.6657 GB, free: 3.445 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005605/0.6379, allocations: 2.278 MB / 0.6679 GB, free: 1.164 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002582/0.6405, allocations: 1.757 MB / 0.6696 GB, free: 15.43 MB / 494.1 MB Notification: Performance of SimCode: time 1.262e-06/0.6405, allocations: 0 / 0.6696 GB, free: 15.43 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1128/0.7533, allocations: 56.64 MB / 0.7249 GB, free: 6.738 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.215/9.968, allocations: 7.859 kB / 0.7249 GB, free: 6.73 MB / 0.5294 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