Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001014/0.001014, allocations: 188.9 kB / 16.09 MB, free: 5.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.214/1.214, allocations: 226.5 MB / 243.4 MB, free: 6.449 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007958/0.0007962, allocations: 92.91 kB / 295.5 MB, free: 6.633 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2908/0.2908, allocations: 44.82 MB / 392.3 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002756/0.0002757, allocations: 8 kB / 465.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/0.3028, allocations: 62.96 MB / 0.516 GB, free: 37.29 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.01621/0.3191, allocations: 23.37 MB / 0.5388 GB, free: 20.58 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01152/0.3307, allocations: 5.987 MB / 0.5446 GB, free: 16.48 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004439/0.3351, allocations: 112.9 kB / 0.5447 GB, free: 16.47 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002716/0.3379, allocations: 1.114 MB / 0.5458 GB, free: 16.08 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008219/0.3461, allocations: 3.355 MB / 0.5491 GB, free: 14.72 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001375/0.3475, allocations: 230.9 kB / 0.5493 GB, free: 14.62 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.006524/0.3541, allocations: 3.989 MB / 0.5532 GB, free: 13.3 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005794/0.3599, allocations: 3.09 MB / 0.5562 GB, free: 12 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00251/0.3624, allocations: 1.005 MB / 0.5572 GB, free: 11.68 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002963/0.3654, allocations: 1.535 MB / 0.5587 GB, free: 11.15 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009781/0.3664, allocations: 123.1 kB / 0.5588 GB, free: 11.15 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002255/0.3686, allocations: 0.6292 MB / 0.5594 GB, free: 10.86 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002298/0.371, allocations: 1.444 MB / 0.5609 GB, free: 10.11 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004557/0.3755, allocations: 1.7 MB / 0.5625 GB, free: 8.812 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00532/0.3809, allocations: 4.795 MB / 0.5672 GB, free: 4.734 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.3809, allocations: 0 / 0.5672 GB, free: 4.734 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3809, allocations: 0 / 0.5672 GB, free: 4.734 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000149/0.3811, allocations: 0 / 0.5672 GB, free: 4.734 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: 1568 * Number of variables: 1568 Notification: Performance of Generate backend data structure: time 0.005077/0.3861, allocations: 3.31 MB / 0.5704 GB, free: 1.355 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.3862, allocations: 8.875 kB / 0.5704 GB, free: 1.348 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007354/0.3869, allocations: 0.7288 MB / 0.5712 GB, free: 0.6055 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009158/0.3961, allocations: 3.088 MB / 0.5742 GB, free: 13.51 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00344/0.3996, allocations: 1.815 MB / 0.5759 GB, free: 11.64 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001361/0.3997, allocations: 196.8 kB / 0.5761 GB, free: 11.45 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004721/0.4002, allocations: 255.8 kB / 0.5764 GB, free: 11.2 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01524/0.4155, allocations: 10.21 MB / 0.5863 GB, free: 344 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.664e-05/0.4156, allocations: 31.69 kB / 0.5864 GB, free: 312 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003749/0.416, allocations: 123.8 kB / 0.5865 GB, free: 188 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003509/0.4195, allocations: 2.376 MB / 0.5888 GB, free: 13.81 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01594/0.4354, allocations: 9.035 MB / 0.5976 GB, free: 4.762 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05266/0.4881, allocations: 38.17 MB / 0.6349 GB, free: 13.43 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005804/0.494, allocations: 3.372 MB / 0.6382 GB, free: 9.785 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001853/0.4959, allocations: 1.227 MB / 0.6394 GB, free: 8.539 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009211/0.5051, allocations: 5.191 MB / 0.6445 GB, free: 3.191 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.923e-05/0.5052, allocations: 55.05 kB / 0.6445 GB, free: 3.129 MB / 458.7 MB Notification: Performance of pre-optimization done (n=150): time 5.04e-06/0.5052, allocations: 0 / 0.6445 GB, free: 3.129 MB / 458.7 MB Notification: Performance of matching and sorting (n=150): time 0.006648/0.5119, allocations: 3.317 MB / 0.6478 GB, free: 15.81 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.479e-05/0.512, allocations: 162.8 kB / 0.6479 GB, free: 15.61 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00649/0.5185, allocations: 3.85 MB / 0.6517 GB, free: 11.77 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001468/0.5186, allocations: 41.7 kB / 0.6517 GB, free: 11.72 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002094/0.5207, allocations: 3.227 MB / 0.6549 GB, free: 8.445 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006786/0.5214, allocations: 0.6137 MB / 0.6555 GB, free: 7.824 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002605/0.5217, allocations: 120 kB / 0.6556 GB, free: 7.707 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003552/0.5221, allocations: 0.5985 MB / 0.6562 GB, free: 7.102 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002701/0.5248, allocations: 1.933 MB / 0.6581 GB, free: 5.164 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005036/0.5298, allocations: 6.133 MB / 0.6641 GB, free: 12.94 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008862/0.5387, allocations: 8.818 MB / 0.6727 GB, free: 2.027 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.503e-05/0.5388, allocations: 44 kB / 0.6727 GB, free: 1.984 MB / 490.7 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01302/0.5518, allocations: 7.694 MB / 0.6802 GB, free: 10.29 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001018/0.552, allocations: 68 kB / 0.6803 GB, free: 10.22 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001985/0.5522, allocations: 148 kB / 0.6804 GB, free: 10.07 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001853/0.5524, allocations: 196 kB / 0.6806 GB, free: 9.883 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004148/0.5565, allocations: 1.462 MB / 0.682 GB, free: 8.418 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001973/0.5568, allocations: 294.8 kB / 0.6823 GB, free: 8.129 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004329/0.5611, allocations: 0.916 MB / 0.6832 GB, free: 7.207 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007782/0.5619, allocations: 404 kB / 0.6836 GB, free: 6.812 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 679 * Number of states: 0 () * Number of discrete variables: 23 (freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,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 (797): * Single equations (assignments): 789 * Array equations: 8 * 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.003957/0.5659, allocations: 2.238 MB / 0.6858 GB, free: 4.559 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000562/0.5664, allocations: 307.9 kB / 0.6861 GB, free: 4.254 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009406/0.5674, allocations: 411.4 kB / 0.6865 GB, free: 3.848 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.935e-05/0.5674, allocations: 35.98 kB / 0.6865 GB, free: 3.812 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-05/0.5675, allocations: 4 kB / 0.6865 GB, free: 3.809 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.122e-05/0.5675, allocations: 3.984 kB / 0.6865 GB, free: 3.805 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.251/0.8185, allocations: 5.527 MB / 0.6919 GB, free: 139.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-05/0.8185, allocations: 5.594 kB / 0.6919 GB, free: 139.1 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008905/0.8194, allocations: 210 kB / 0.6921 GB, free: 139.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.183e-05/0.8194, allocations: 8.438 kB / 0.6921 GB, free: 139.1 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.325e-05/0.8195, allocations: 28.34 kB / 0.6922 GB, free: 139.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.096e-05/0.8195, allocations: 15.83 kB / 0.6922 GB, free: 139.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.8195, allocations: 11.14 kB / 0.6922 GB, free: 139.1 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002335/0.8219, allocations: 2.535 MB / 0.6947 GB, free: 138.1 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006025/0.8225, allocations: 395.9 kB / 0.695 GB, free: 137.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002586/0.8228, allocations: 22.91 kB / 0.6951 GB, free: 137.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008999/0.8237, allocations: 64.2 kB / 0.6951 GB, free: 137.9 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002105/0.8239, allocations: 76.36 kB / 0.6952 GB, free: 137.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.208e-05/0.824, allocations: 44.75 kB / 0.6952 GB, free: 137.8 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003089/0.8271, allocations: 2.347 MB / 0.6975 GB, free: 137.1 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.41e-07/0.8271, allocations: 0 / 0.6975 GB, free: 137.1 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004062/0.8311, allocations: 1.105 MB / 0.6986 GB, free: 136.8 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (108): * Single equations (assignments): 102 * Array equations: 6 * 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.002577/0.8337, allocations: 3.157 MB / 0.7017 GB, free: 135 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.005422/0.8392, allocations: 4.403 MB / 0.706 GB, free: 133.6 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/0.8392, allocations: 0 / 0.706 GB, free: 133.6 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0009823/0.8402, allocations: 0.9478 MB / 0.7069 GB, free: 133.3 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003963/0.8442, allocations: 353.8 kB / 0.7072 GB, free: 133.1 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04732/0.8915, allocations: 30.28 MB / 0.7368 GB, free: 112.5 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004381/0.8959, allocations: 3.222 MB / 0.74 GB, free: 111.2 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002452/0.8984, allocations: 1.756 MB / 0.7417 GB, free: 109.8 MB / 0.4948 GB Notification: Performance of SimCode: time 1.142e-06/0.8984, allocations: 3.5 kB / 0.7417 GB, free: 109.8 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.755/6.654, allocations: 67.79 MB / 0.8079 GB, free: 47.03 MB / 0.4948 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/AbsoluteSensor2/AbsoluteSensor2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches