Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,fileNamePrefix="ModelicaTest_4_0_0_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.0007265/0.0007266, allocations: 93.33 kB / 17.35 MB, free: 6.371 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.0007653/0.0007652, allocations: 174.8 kB / 18.25 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.252/1.252, allocations: 223.3 MB / 242.3 MB, free: 240 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1784/0.1784, allocations: 44.25 MB / 337.7 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002753/0.0002753, allocations: 12.81 kB / 410.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09642/0.09671, allocations: 61.92 MB / 472.4 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.02182/0.1186, allocations: 25.07 MB / 497.4 MB, free: 4.102 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01244/0.131, allocations: 6.28 MB / 0.4919 GB, free: 13.8 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003203/0.1343, allocations: 111.8 kB / 0.492 GB, free: 13.69 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001051/0.1353, allocations: 454 kB / 0.4924 GB, free: 13.25 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003025/0.1384, allocations: 1.475 MB / 0.4939 GB, free: 11.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006328/0.139, allocations: 235.5 kB / 0.4941 GB, free: 11.54 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005119/0.1442, allocations: 4.998 MB / 0.499 GB, free: 6.531 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003932/0.1481, allocations: 3.187 MB / 0.5021 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001142/0.1493, allocations: 0.9101 MB / 0.503 GB, free: 2.352 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001564/0.1508, allocations: 1.565 MB / 0.5045 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002337/0.1511, allocations: 124 kB / 0.5046 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009756/0.1521, allocations: 0.6434 MB / 0.5053 GB, free: 16 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2001/0.3522, allocations: 1.488 MB / 0.5067 GB, free: 14.78 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002017/0.3543, allocations: 1.808 MB / 0.5085 GB, free: 14.21 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006644/0.3609, allocations: 5.79 MB / 0.5141 GB, free: 13.35 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.022e-06/0.3609, allocations: 0 / 0.5141 GB, free: 13.35 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3609, allocations: 1.031 kB / 0.5141 GB, free: 13.35 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001562/0.3611, allocations: 0 / 0.5141 GB, free: 13.35 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: 1568 * Number of variables: 1568 Notification: Performance of Generate backend data structure: time 0.006304/0.3674, allocations: 3.304 MB / 0.5174 GB, free: 11.61 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.3675, allocations: 9.406 kB / 0.5174 GB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00105/0.3685, allocations: 0.7268 MB / 0.5181 GB, free: 11.53 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009951/0.3785, allocations: 3.084 MB / 0.5211 GB, free: 11.26 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003462/0.382, allocations: 1.819 MB / 0.5229 GB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001359/0.3821, allocations: 194.5 kB / 0.523 GB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005403/0.3827, allocations: 256.7 kB / 0.5233 GB, free: 10.74 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01377/0.3965, allocations: 10.23 MB / 0.5333 GB, free: 7.742 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.58e-05/0.3966, allocations: 28.91 kB / 0.5333 GB, free: 7.742 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000372/0.3969, allocations: 130.1 kB / 0.5334 GB, free: 7.699 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003083/0.4, allocations: 2.378 MB / 0.5358 GB, free: 6.793 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.014/0.414, allocations: 9.084 MB / 0.5446 GB, free: 1.105 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04865/0.4627, allocations: 38.17 MB / 0.5819 GB, free: 10.28 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005895/0.4687, allocations: 3.387 MB / 0.5852 GB, free: 6.633 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001835/0.4705, allocations: 1.238 MB / 0.5864 GB, free: 5.387 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00908/0.4796, allocations: 5.196 MB / 0.5915 GB, free: 88 kB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.499e-05/0.4797, allocations: 45.75 kB / 0.5915 GB, free: 36 kB / 430.1 MB Notification: Performance of pre-optimization done (n=150): time 4.539e-06/0.4797, allocations: 3.844 kB / 0.5915 GB, free: 36 kB / 430.1 MB Notification: Performance of matching and sorting (n=150): time 0.007034/0.4868, allocations: 3.323 MB / 0.5948 GB, free: 12.72 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.461e-05/0.4869, allocations: 173.4 kB / 0.5949 GB, free: 12.52 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007366/0.4942, allocations: 3.861 MB / 0.5987 GB, free: 8.66 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001355/0.4944, allocations: 45.22 kB / 0.5988 GB, free: 8.613 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002507/0.4969, allocations: 3.222 MB / 0.6019 GB, free: 5.395 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006813/0.4976, allocations: 0.6145 MB / 0.6025 GB, free: 4.785 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009078/0.4985, allocations: 0.55 MB / 0.603 GB, free: 4.23 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.4986, allocations: 309.1 kB / 0.6033 GB, free: 3.926 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003125/0.5018, allocations: 1.961 MB / 0.6053 GB, free: 1.961 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005989/0.5078, allocations: 6.154 MB / 0.6113 GB, free: 9.789 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009627/0.5174, allocations: 8.851 MB / 0.6199 GB, free: 15.45 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001245/0.5176, allocations: 44 kB / 0.62 GB, free: 15.41 MB / 478.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.0134/0.531, allocations: 7.756 MB / 0.6275 GB, free: 8.25 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001216/0.5311, allocations: 70.03 kB / 0.6276 GB, free: 8.184 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001875/0.5313, allocations: 148 kB / 0.6277 GB, free: 8.039 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001851/0.5315, allocations: 196 kB / 0.6279 GB, free: 7.848 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00432/0.5358, allocations: 1.47 MB / 0.6294 GB, free: 6.375 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002205/0.5361, allocations: 286.9 kB / 0.6296 GB, free: 6.094 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004353/0.5404, allocations: 0.9164 MB / 0.6305 GB, free: 5.168 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006911/0.5411, allocations: 408 kB / 0.6309 GB, free: 4.77 MB / 478.1 MB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003807/0.5449, allocations: 2.225 MB / 0.6331 GB, free: 2.531 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005539/0.5455, allocations: 315.9 kB / 0.6334 GB, free: 2.219 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008965/0.5464, allocations: 403.4 kB / 0.6338 GB, free: 1.824 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.858e-05/0.5465, allocations: 39.98 kB / 0.6338 GB, free: 1.785 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/0.5465, allocations: 0 / 0.6338 GB, free: 1.785 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.298e-05/0.5465, allocations: 11.92 kB / 0.6338 GB, free: 1.773 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009891/0.5564, allocations: 5.539 MB / 0.6392 GB, free: 12.13 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.055e-05/0.5565, allocations: 8 kB / 0.6392 GB, free: 12.12 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009235/0.5574, allocations: 207.6 kB / 0.6394 GB, free: 11.92 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.619e-05/0.5574, allocations: 12 kB / 0.6394 GB, free: 11.91 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.227e-05/0.5575, allocations: 31.34 kB / 0.6395 GB, free: 11.88 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.308e-05/0.5575, allocations: 12.25 kB / 0.6395 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.134e-06/0.5575, allocations: 11.94 kB / 0.6395 GB, free: 11.86 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002988/0.5605, allocations: 2.529 MB / 0.642 GB, free: 9.238 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009271/0.5615, allocations: 392.6 kB / 0.6423 GB, free: 8.832 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005085/0.562, allocations: 24 kB / 0.6424 GB, free: 8.809 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001222/0.5632, allocations: 66.97 kB / 0.6424 GB, free: 8.746 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001772/0.5634, allocations: 84.28 kB / 0.6425 GB, free: 8.664 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-05/0.5635, allocations: 47.98 kB / 0.6426 GB, free: 8.617 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004267/0.5678, allocations: 2.354 MB / 0.6449 GB, free: 6.277 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5678, allocations: 0 / 0.6449 GB, free: 6.277 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005072/0.5729, allocations: 1.108 MB / 0.6459 GB, free: 5.168 MB / 494.1 MB 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.003535/0.5764, allocations: 3.168 MB / 0.649 GB, free: 1.914 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006678/0.5831, allocations: 4.432 MB / 0.6534 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/0.5831, allocations: 4 kB / 0.6534 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00116/0.5843, allocations: 0.9454 MB / 0.6543 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004393/0.5887, allocations: 353 kB / 0.6546 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07077/0.6595, allocations: 47.9 MB / 0.7014 GB, free: 4.422 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004239/0.6638, allocations: 3.203 MB / 0.7045 GB, free: 1.195 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.187/0.8507, allocations: 2.233 MB / 0.7067 GB, free: 207.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002999/0.8538, allocations: 1.696 MB / 0.7084 GB, free: 207.5 MB / 0.545 GB Notification: Performance of SimCode: time 1.252e-06/0.8538, allocations: 2.906 kB / 0.7084 GB, free: 207.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06129/0.9151, allocations: 54.2 MB / 0.7613 GB, free: 169.3 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001393/0.9152, allocations: 198.3 kB / 0.7615 GB, free: 169.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.093/4.008, allocations: 3.625 kB / 0.7615 GB, free: 169.1 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches