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.001285/0.001285, allocations: 108.1 kB / 16.41 MB, free: 6.496 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.001341/0.001341, allocations: 189.5 kB / 17.34 MB, free: 5.742 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.463/1.463, allocations: 205.1 MB / 223.2 MB, free: 12.22 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.2364/0.2364, allocations: 43.52 MB / 314.1 MB, free: 456 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.001506/0.001506, allocations: 69.45 kB / 441.3 MB, free: 6.176 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0995/0.101, allocations: 57.79 MB / 499.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.01516/0.1162, allocations: 12.44 MB / 0.4995 GB, free: 15.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008665/0.1249, allocations: 4.051 MB / 0.5035 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00198/0.127, allocations: 83.81 kB / 0.5036 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003778/0.1307, allocations: 1.682 MB / 0.5052 GB, free: 9.98 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00421/0.1351, allocations: 1.584 MB / 0.5068 GB, free: 8.391 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002616/0.1377, allocations: 1.196 MB / 0.5079 GB, free: 7.191 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00574/0.1435, allocations: 3.627 MB / 0.5115 GB, free: 3.555 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00459/0.1481, allocations: 2.52 MB / 0.5139 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002888/0.151, allocations: 1.214 MB / 0.5151 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003418/0.1545, allocations: 1.662 MB / 0.5167 GB, free: 14.1 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001021/0.1555, allocations: 255.9 kB / 0.517 GB, free: 13.85 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002236/0.1578, allocations: 0.7138 MB / 0.5177 GB, free: 13.13 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002081/0.1599, allocations: 1.652 MB / 0.5193 GB, free: 11.48 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003061/0.163, allocations: 1.987 MB / 0.5212 GB, free: 9.477 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006895/0.1699, allocations: 6.507 MB / 0.5276 GB, free: 2.945 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1699, allocations: 0 / 0.5276 GB, free: 2.945 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.1699, allocations: 4 kB / 0.5276 GB, free: 2.941 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001962/0.1701, allocations: 0 / 0.5276 GB, free: 2.941 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.2355/0.4056, allocations: 4.189 MB / 0.5317 GB, free: 37.59 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.515e-05/0.4057, allocations: 12.11 kB / 0.5317 GB, free: 37.59 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001334/0.407, allocations: 0.7497 MB / 0.5324 GB, free: 37.51 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0106/0.4176, allocations: 3.018 MB / 0.5354 GB, free: 37.23 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005282/0.423, allocations: 1.872 MB / 0.5372 GB, free: 36.61 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002113/0.4232, allocations: 200.4 kB / 0.5374 GB, free: 36.6 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009947/0.4242, allocations: 258.9 kB / 0.5376 GB, free: 36.6 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01686/0.4411, allocations: 10.53 MB / 0.5479 GB, free: 31.89 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.331e-05/0.4412, allocations: 32.75 kB / 0.5479 GB, free: 31.87 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004066/0.4416, allocations: 134.3 kB / 0.5481 GB, free: 31.77 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003841/0.4455, allocations: 2.439 MB / 0.5505 GB, free: 31.13 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01589/0.4614, allocations: 9.372 MB / 0.5596 GB, free: 24.74 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04836/0.5098, allocations: 38.75 MB / 0.5975 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006079/0.5159, allocations: 3.482 MB / 0.6009 GB, free: 13.09 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001858/0.5178, allocations: 1.269 MB / 0.6021 GB, free: 11.81 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0103/0.5281, allocations: 5.455 MB / 0.6074 GB, free: 6.207 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.497e-05/0.5282, allocations: 51.06 kB / 0.6075 GB, free: 6.148 MB / 446.1 MB Notification: Performance of pre-optimization done (n=153): time 5.44e-06/0.5282, allocations: 3.984 kB / 0.6075 GB, free: 6.145 MB / 446.1 MB Notification: Performance of matching and sorting (n=153): time 0.006692/0.5349, allocations: 3.355 MB / 0.6107 GB, free: 2.785 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001287/0.5351, allocations: 174.7 kB / 0.6109 GB, free: 2.578 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005543/0.5406, allocations: 3.948 MB / 0.6148 GB, free: 14.64 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001795/0.5409, allocations: 45.69 kB / 0.6148 GB, free: 14.59 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002353/0.5432, allocations: 3.316 MB / 0.618 GB, free: 11.22 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006737/0.5439, allocations: 0.6214 MB / 0.6187 GB, free: 10.59 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001542/0.5454, allocations: 1.348 MB / 0.62 GB, free: 9.234 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.5456, allocations: 305.1 kB / 0.6203 GB, free: 8.934 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002662/0.5482, allocations: 2 MB / 0.6222 GB, free: 6.93 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005957/0.5542, allocations: 6.307 MB / 0.6284 GB, free: 14.47 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01028/0.5645, allocations: 9.066 MB / 0.6372 GB, free: 3.262 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001097/0.5647, allocations: 44 kB / 0.6373 GB, free: 3.219 MB / 478.1 MB Notification: Performance of matching and sorting (n=877) (initialization): time 0.01245/0.5771, allocations: 7.932 MB / 0.645 GB, free: 11.28 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.414e-05/0.5772, allocations: 68.09 kB / 0.6451 GB, free: 11.21 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001505/0.5774, allocations: 159.9 kB / 0.6452 GB, free: 11.06 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001803/0.5776, allocations: 200 kB / 0.6454 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004126/0.5817, allocations: 1.509 MB / 0.6469 GB, free: 9.352 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002116/0.5819, allocations: 302.8 kB / 0.6472 GB, free: 9.055 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004543/0.5865, allocations: 0.9402 MB / 0.6481 GB, free: 8.105 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007384/0.5872, allocations: 424 kB / 0.6485 GB, free: 7.691 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.00312/0.5904, allocations: 2.284 MB / 0.6507 GB, free: 5.395 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005584/0.5909, allocations: 315.8 kB / 0.651 GB, free: 5.082 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007586/0.5917, allocations: 416.2 kB / 0.6514 GB, free: 4.672 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.974e-05/0.5918, allocations: 35.98 kB / 0.6515 GB, free: 4.637 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.368e-05/0.5918, allocations: 4 kB / 0.6515 GB, free: 4.633 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.111e-05/0.5918, allocations: 3.984 kB / 0.6515 GB, free: 4.629 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009019/0.6008, allocations: 5.709 MB / 0.6571 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-05/0.6009, allocations: 4 kB / 0.6571 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009753/0.6019, allocations: 215.7 kB / 0.6573 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.602e-05/0.6019, allocations: 11.98 kB / 0.6573 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.913e-05/0.602, allocations: 29.81 kB / 0.6573 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.424e-05/0.602, allocations: 15.94 kB / 0.6573 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.822e-06/0.602, allocations: 7.938 kB / 0.6573 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003022/0.6051, allocations: 2.594 MB / 0.6599 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007443/0.6058, allocations: 376.6 kB / 0.6602 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002836/0.6061, allocations: 31.97 kB / 0.6603 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009551/0.6071, allocations: 63.92 kB / 0.6603 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001671/0.6072, allocations: 88.28 kB / 0.6604 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.899e-05/0.6073, allocations: 40 kB / 0.6604 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003205/0.6105, allocations: 2.415 MB / 0.6628 GB, free: 8.812 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.1e-07/0.6106, allocations: 0 / 0.6628 GB, free: 8.812 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004533/0.6151, allocations: 1.136 MB / 0.6639 GB, free: 7.676 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.003483/0.6186, allocations: 3.219 MB / 0.667 GB, free: 4.359 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007139/0.6257, allocations: 4.544 MB / 0.6715 GB, free: 15.85 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.546e-06/0.6258, allocations: 4 kB / 0.6715 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001167/0.6269, allocations: 0.9707 MB / 0.6724 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002175/0.6291, allocations: 364.6 kB / 0.6728 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06118/0.6903, allocations: 43.17 MB / 0.7149 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005728/0.6961, allocations: 3.28 MB / 0.7181 GB, free: 9.234 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.006495/0.7026, allocations: 2.283 MB / 0.7204 GB, free: 6.941 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00339/0.7061, allocations: 1.749 MB / 0.7221 GB, free: 5.191 MB / 0.5606 GB Notification: Performance of SimCode: time 1.202e-06/0.7061, allocations: 0 / 0.7221 GB, free: 5.191 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3027/1.009, allocations: 53.28 MB / 0.7741 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.59/19.6, allocations: 7.156 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