Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007495/0.0007495, allocations: 91.77 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008407/0.0008407, allocations: 197.9 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.7 MB / 246.8 MB, free: 11.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1931/0.1931, allocations: 46.18 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002574/0.0002574, allocations: 8 kB / 419.6 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1239, allocations: 63.56 MB / 483.2 MB, free: 4.066 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.02153/0.1454, allocations: 21.44 MB / 0.4928 GB, free: 14.54 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01245/0.1579, allocations: 5.684 MB / 0.4983 GB, free: 8.836 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00322/0.1612, allocations: 99.75 kB / 0.4984 GB, free: 8.738 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001005/0.1622, allocations: 438.1 kB / 0.4988 GB, free: 8.309 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003123/0.1654, allocations: 1.448 MB / 0.5003 GB, free: 6.855 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006162/0.166, allocations: 231.5 kB / 0.5005 GB, free: 6.629 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005945/0.1719, allocations: 4.945 MB / 0.5053 GB, free: 1.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2453/0.4173, allocations: 3.165 MB / 0.5084 GB, free: 10.86 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001568/0.4189, allocations: 0.8858 MB / 0.5093 GB, free: 10.86 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001851/0.4208, allocations: 1.541 MB / 0.5108 GB, free: 10.71 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000338/0.4211, allocations: 122.5 kB / 0.5109 GB, free: 10.71 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001232/0.4224, allocations: 0.6365 MB / 0.5115 GB, free: 10.71 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001267/0.4236, allocations: 1.444 MB / 0.5129 GB, free: 10.53 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001289/0.4249, allocations: 1.752 MB / 0.5146 GB, free: 9.762 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005579/0.4305, allocations: 5.633 MB / 0.5201 GB, free: 8.93 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.4305, allocations: 0 / 0.5201 GB, free: 8.93 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.4305, allocations: 0 / 0.5201 GB, free: 8.93 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.32e-05/0.4306, allocations: 1.5 kB / 0.5201 GB, free: 8.93 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1539 * Number of variables: 1539 Notification: Performance of Generate backend data structure: time 0.004594/0.4352, allocations: 3.226 MB / 0.5233 GB, free: 7.227 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.4353, allocations: 9.188 kB / 0.5233 GB, free: 7.227 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007616/0.4361, allocations: 0.7153 MB / 0.524 GB, free: 7.152 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009497/0.4456, allocations: 3.054 MB / 0.527 GB, free: 6.148 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002666/0.4482, allocations: 1.804 MB / 0.5287 GB, free: 5.469 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00012/0.4484, allocations: 191.4 kB / 0.5289 GB, free: 5.461 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004728/0.4489, allocations: 247.9 kB / 0.5292 GB, free: 5.457 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01138/0.4602, allocations: 10.04 MB / 0.539 GB, free: 1.242 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.461e-05/0.4603, allocations: 30.75 kB / 0.539 GB, free: 1.242 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003416/0.4607, allocations: 124.1 kB / 0.5391 GB, free: 1.203 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002931/0.4636, allocations: 2.322 MB / 0.5414 GB, free: 324 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01401/0.4776, allocations: 8.923 MB / 0.5501 GB, free: 8.617 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04485/0.5225, allocations: 37.73 MB / 0.5869 GB, free: 2.23 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00557/0.5281, allocations: 3.377 MB / 0.5902 GB, free: 14.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001733/0.5299, allocations: 1.24 MB / 0.5914 GB, free: 13.35 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008154/0.538, allocations: 5.172 MB / 0.5965 GB, free: 8.07 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.025e-05/0.5381, allocations: 58.06 kB / 0.5965 GB, free: 8.004 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 4.408e-06/0.5381, allocations: 0 / 0.5965 GB, free: 8.004 MB / 446.1 MB Notification: Performance of matching and sorting (n=150): time 0.006793/0.5449, allocations: 3.324 MB / 0.5998 GB, free: 4.691 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.757e-05/0.545, allocations: 169.6 kB / 0.6 GB, free: 4.488 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005656/0.5507, allocations: 3.825 MB / 0.6037 GB, free: 0.668 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.539e-05/0.5508, allocations: 41.7 kB / 0.6037 GB, free: 0.6211 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002346/0.5531, allocations: 3.172 MB / 0.6068 GB, free: 13.45 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006081/0.5537, allocations: 0.6081 MB / 0.6074 GB, free: 12.85 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000714/0.5545, allocations: 0.5473 MB / 0.608 GB, free: 12.3 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.5546, allocations: 309.1 kB / 0.6082 GB, free: 11.99 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002919/0.5575, allocations: 1.953 MB / 0.6102 GB, free: 10.04 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00594/0.5635, allocations: 6.105 MB / 0.6161 GB, free: 1.93 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009382/0.5729, allocations: 8.794 MB / 0.6247 GB, free: 7.66 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001144/0.573, allocations: 44 kB / 0.6247 GB, free: 7.617 MB / 478.1 MB Notification: Performance of matching and sorting (n=849) (initialization): time 0.01175/0.5847, allocations: 7.702 MB / 0.6323 GB, free: 56 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001218/0.5849, allocations: 71.98 kB / 0.6323 GB, free: 15.98 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002006/0.5851, allocations: 152.9 kB / 0.6325 GB, free: 15.83 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001975/0.5853, allocations: 192 kB / 0.6327 GB, free: 15.64 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004092/0.5894, allocations: 1.466 MB / 0.6341 GB, free: 14.18 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002408/0.5896, allocations: 286.9 kB / 0.6344 GB, free: 13.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003976/0.5936, allocations: 0.9107 MB / 0.6353 GB, free: 12.98 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005453/0.5942, allocations: 396 kB / 0.6356 GB, free: 12.59 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 673 * Number of states: 0 () * Number of discrete variables: 23 (freeMotion.arrow.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 (791): * Single equations (assignments): 783 * 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.003619/0.5978, allocations: 2.205 MB / 0.6378 GB, free: 10.38 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005202/0.5983, allocations: 312.2 kB / 0.6381 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008364/0.5992, allocations: 407.1 kB / 0.6385 GB, free: 9.66 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.438e-05/0.5992, allocations: 34.58 kB / 0.6385 GB, free: 9.629 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.517e-05/0.5993, allocations: 7.984 kB / 0.6385 GB, free: 9.621 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.188e-05/0.5993, allocations: 7.984 kB / 0.6385 GB, free: 9.613 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008959/0.6082, allocations: 5.462 MB / 0.6439 GB, free: 4.047 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.178e-05/0.6083, allocations: 4 kB / 0.6439 GB, free: 4.043 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008999/0.6092, allocations: 207.7 kB / 0.6441 GB, free: 3.84 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.704e-05/0.6092, allocations: 15.92 kB / 0.6441 GB, free: 3.824 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.353e-05/0.6093, allocations: 26.61 kB / 0.6441 GB, free: 3.801 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.211e-05/0.6093, allocations: 19.94 kB / 0.6441 GB, free: 3.781 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.945e-06/0.6093, allocations: 11.94 kB / 0.6441 GB, free: 3.77 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003066/0.6124, allocations: 2.522 MB / 0.6466 GB, free: 1.168 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007042/0.6131, allocations: 384.6 kB / 0.647 GB, free: 0.7695 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004188/0.6136, allocations: 27.94 kB / 0.647 GB, free: 0.7422 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001051/0.6146, allocations: 70.56 kB / 0.6471 GB, free: 0.6758 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001821/0.6148, allocations: 80.48 kB / 0.6471 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001079/0.6149, allocations: 47.98 kB / 0.6472 GB, free: 0.5508 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00354/0.6185, allocations: 2.334 MB / 0.6495 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6185, allocations: 0 / 0.6495 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004367/0.6229, allocations: 1.065 MB / 0.6505 GB, free: 13.16 MB / 0.4981 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 (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.003546/0.6264, allocations: 3.166 MB / 0.6536 GB, free: 9.91 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00661/0.633, allocations: 4.412 MB / 0.6579 GB, free: 5.527 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.6331, allocations: 0 / 0.6579 GB, free: 5.527 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001182/0.6342, allocations: 0.9553 MB / 0.6588 GB, free: 4.574 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004121/0.6384, allocations: 325.4 kB / 0.6591 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06214/0.7005, allocations: 47.37 MB / 0.7054 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004384/0.7049, allocations: 3.162 MB / 0.7085 GB, free: 9.879 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005093/0.7101, allocations: 2.22 MB / 0.7107 GB, free: 7.648 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002179/0.7123, allocations: 1.667 MB / 0.7123 GB, free: 5.98 MB / 0.5606 GB Notification: Performance of SimCode: time 8.02e-07/0.7123, allocations: 0 / 0.7123 GB, free: 5.98 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2761/0.9883, allocations: 53.57 MB / 0.7646 GB, free: 183.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001384/0.9885, allocations: 202.1 kB / 0.7648 GB, free: 183.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.192/4.181, allocations: 0 / 0.7648 GB, free: 183.6 MB / 0.5606 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches