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: translateModel(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r.3.|freeMotion.r.2.|freeMotion.r.1.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2") translateModel(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r.3.|freeMotion.r.2.|freeMotion.r.1.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008133/0.0008133, allocations: 93.38 kB / 18.01 MB, free: 5.738 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.0008554/0.0008555, allocations: 176.8 kB / 18.91 MB, free: 4.871 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.342/1.342, allocations: 223.3 MB / 243 MB, free: 14.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2022/0.2022, allocations: 44.24 MB / 338.3 MB, free: 2.441 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003197/0.0003197, allocations: 9.531 kB / 411 MB, free: 27.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1048, allocations: 61.92 MB / 472.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.02307/0.1279, allocations: 25.07 MB / 498 MB, free: 4.168 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01388/0.1418, allocations: 6.272 MB / 0.4924 GB, free: 13.88 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004544/0.1464, allocations: 119.7 kB / 0.4925 GB, free: 13.76 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001429/0.1479, allocations: 450 kB / 0.493 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003723/0.1516, allocations: 1.483 MB / 0.4944 GB, free: 11.83 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008508/0.1525, allocations: 227.5 kB / 0.4946 GB, free: 11.61 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006165/0.1587, allocations: 5.001 MB / 0.4995 GB, free: 6.598 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005247/0.164, allocations: 3.188 MB / 0.5026 GB, free: 3.332 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00214/0.1661, allocations: 0.9101 MB / 0.5035 GB, free: 2.418 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002488/0.1687, allocations: 1.561 MB / 0.505 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000749/0.1694, allocations: 124 kB / 0.5052 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0017/0.1711, allocations: 0.6434 MB / 0.5058 GB, free: 88 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2546/0.4257, allocations: 1.486 MB / 0.5072 GB, free: 15.24 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003649/0.4294, allocations: 1.81 MB / 0.509 GB, free: 14.69 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008878/0.4383, allocations: 4.795 MB / 0.5137 GB, free: 14.39 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.268e-06/0.4384, allocations: 1.531 kB / 0.5137 GB, free: 14.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.579e-06/0.4384, allocations: 0 / 0.5137 GB, free: 14.39 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000307/0.4387, allocations: 0 / 0.5137 GB, free: 14.39 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.01/0.4487, allocations: 3.31 MB / 0.5169 GB, free: 12.64 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.976e-05/0.4488, allocations: 10.19 kB / 0.5169 GB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01186/0.4607, allocations: 3.086 MB / 0.52 GB, free: 12.37 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005578/0.4663, allocations: 1.819 MB / 0.5217 GB, free: 11.87 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003567/0.4667, allocations: 196 kB / 0.5219 GB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001825/0.4685, allocations: 250.4 kB / 0.5222 GB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01984/0.4884, allocations: 10.23 MB / 0.5321 GB, free: 9.129 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-05/0.4885, allocations: 34.06 kB / 0.5322 GB, free: 9.125 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004934/0.489, allocations: 128.5 kB / 0.5323 GB, free: 9.082 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003619/0.4927, allocations: 2.369 MB / 0.5346 GB, free: 8.184 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01597/0.5086, allocations: 9.086 MB / 0.5435 GB, free: 2.973 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05879/0.5675, allocations: 38.17 MB / 0.5808 GB, free: 12.15 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00633/0.5739, allocations: 3.383 MB / 0.5841 GB, free: 8.504 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001914/0.5758, allocations: 1.234 MB / 0.5853 GB, free: 7.258 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008977/0.5848, allocations: 5.191 MB / 0.5903 GB, free: 1.961 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.75e-05/0.5849, allocations: 49.47 kB / 0.5904 GB, free: 1.906 MB / 430.1 MB Notification: Performance of pre-optimization done (n=150): time 6.012e-06/0.5849, allocations: 0 / 0.5904 GB, free: 1.906 MB / 430.1 MB Notification: Performance of matching and sorting (n=150): time 0.007477/0.5924, allocations: 3.321 MB / 0.5936 GB, free: 14.59 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/0.5926, allocations: 177.2 kB / 0.5938 GB, free: 14.39 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006739/0.5993, allocations: 3.865 MB / 0.5976 GB, free: 10.53 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003196/0.5997, allocations: 43.97 kB / 0.5976 GB, free: 10.48 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002822/0.6025, allocations: 3.225 MB / 0.6008 GB, free: 7.262 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001178/0.6037, allocations: 0.6087 MB / 0.6014 GB, free: 6.656 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009535/0.6047, allocations: 0.5503 MB / 0.6019 GB, free: 6.102 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.6048, allocations: 301.1 kB / 0.6022 GB, free: 5.805 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003254/0.608, allocations: 1.965 MB / 0.6041 GB, free: 3.836 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006746/0.6148, allocations: 6.151 MB / 0.6101 GB, free: 11.66 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01207/0.6269, allocations: 8.858 MB / 0.6188 GB, free: 1.32 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001529/0.6271, allocations: 48 kB / 0.6188 GB, free: 1.273 MB / 462.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01679/0.6439, allocations: 7.745 MB / 0.6264 GB, free: 10.11 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001146/0.6441, allocations: 68 kB / 0.6264 GB, free: 10.05 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001887/0.6443, allocations: 148 kB / 0.6266 GB, free: 9.902 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001947/0.6445, allocations: 196 kB / 0.6268 GB, free: 9.711 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005103/0.6496, allocations: 1.474 MB / 0.6282 GB, free: 8.234 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002505/0.6499, allocations: 291.3 kB / 0.6285 GB, free: 7.949 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005523/0.6554, allocations: 0.9194 MB / 0.6294 GB, free: 7.023 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001132/0.6565, allocations: 404 kB / 0.6298 GB, free: 6.629 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.005047/0.6616, allocations: 2.229 MB / 0.6319 GB, free: 4.387 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005917/0.6622, allocations: 311.9 kB / 0.6322 GB, free: 4.078 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008969/0.6631, allocations: 415.4 kB / 0.6326 GB, free: 3.672 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.547e-05/0.6632, allocations: 32 kB / 0.6327 GB, free: 3.641 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.398e-05/0.6632, allocations: 4 kB / 0.6327 GB, free: 3.637 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.39e-05/0.6632, allocations: 14.31 kB / 0.6327 GB, free: 3.625 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009743/0.673, allocations: 5.531 MB / 0.6381 GB, free: 14 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.414e-05/0.673, allocations: 4 kB / 0.6381 GB, free: 13.99 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009775/0.674, allocations: 215.7 kB / 0.6383 GB, free: 13.78 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-05/0.674, allocations: 12 kB / 0.6383 GB, free: 13.77 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.153e-05/0.6741, allocations: 27.75 kB / 0.6383 GB, free: 13.75 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-05/0.6742, allocations: 8 kB / 0.6383 GB, free: 13.74 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.695e-06/0.6742, allocations: 11.94 kB / 0.6384 GB, free: 13.73 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003079/0.6773, allocations: 2.536 MB / 0.6408 GB, free: 11.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008461/0.6781, allocations: 384.6 kB / 0.6412 GB, free: 10.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000289/0.6784, allocations: 28 kB / 0.6412 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009778/0.6794, allocations: 74.33 kB / 0.6413 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001587/0.6796, allocations: 72.36 kB / 0.6414 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/0.6797, allocations: 47.98 kB / 0.6414 GB, free: 10.49 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004201/0.6839, allocations: 2.354 MB / 0.6437 GB, free: 8.148 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.6839, allocations: 4 kB / 0.6437 GB, free: 8.145 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005743/0.6897, allocations: 1.104 MB / 0.6448 GB, free: 7.039 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.0004273/0.6901, allocations: 155.3 kB / 0.6449 GB, free: 6.883 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007916/0.698, allocations: 4.437 MB / 0.6493 GB, free: 2.484 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.126e-05/0.6981, allocations: 11.88 kB / 0.6493 GB, free: 2.473 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00133/0.6994, allocations: 0.9561 MB / 0.6502 GB, free: 1.523 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004504/0.7039, allocations: 338.3 kB / 0.6505 GB, free: 1.191 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01858/0.7225, allocations: 10.93 MB / 0.6612 GB, free: 6.156 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004031/0.7266, allocations: 3.219 MB / 0.6644 GB, free: 2.91 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001017/0.7277, allocations: 275.4 kB / 0.6646 GB, free: 2.641 MB / 0.4981 GB Notification: Performance of SimCode: time 1.162e-06/0.7277, allocations: 4 kB / 0.6646 GB, free: 2.637 MB / 0.4981 GB Notification: Performance of Templates: time 0.3009/1.029, allocations: 52.18 MB / 0.7156 GB, free: 200.5 MB / 0.545 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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