Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 89.92 kB / 20.48 MB, free: 1.363 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001445/0.001445, allocations: 215 kB / 23.78 MB, free: 4.516 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.565/1.565, allocations: 207.7 MB / 234.6 MB, free: 9.801 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2684/0.2684, allocations: 44.26 MB / 331.1 MB, free: 9.316 MB / 270.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002178/0.002178, allocations: 71.14 kB / 468.3 MB, free: 4.371 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1222, allocations: 61.05 MB / 0.5169 GB, free: 7.191 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01177/0.134, allocations: 8.291 MB / 0.525 GB, free: 14.86 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007674/0.1416, allocations: 3.424 MB / 0.5284 GB, free: 11.42 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001611/0.1432, allocations: 63.62 kB / 0.5284 GB, free: 11.36 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003891/0.1471, allocations: 1.647 MB / 0.53 GB, free: 9.707 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004811/0.152, allocations: 1.693 MB / 0.5317 GB, free: 8.008 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00161/0.1536, allocations: 0.5653 MB / 0.5322 GB, free: 7.441 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005666/0.1592, allocations: 3.509 MB / 0.5357 GB, free: 3.922 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003049/0.1623, allocations: 1.903 MB / 0.5375 GB, free: 1.969 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001919/0.1642, allocations: 1.183 MB / 0.5387 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2153/0.3795, allocations: 1.774 MB / 0.5404 GB, free: 12.57 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009556/0.3804, allocations: 240.7 kB / 0.5406 GB, free: 12.57 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002857/0.3833, allocations: 1.033 MB / 0.5416 GB, free: 12.57 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002073/0.3854, allocations: 1.56 MB / 0.5432 GB, free: 12.57 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002515/0.3879, allocations: 1.338 MB / 0.5445 GB, free: 12.17 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01108/0.399, allocations: 5.98 MB / 0.5503 GB, free: 11.26 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.698e-06/0.399, allocations: 5.438 kB / 0.5503 GB, free: 11.26 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.399, allocations: 3.938 kB / 0.5503 GB, free: 11.26 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002739/0.3993, allocations: 1.312 kB / 0.5503 GB, free: 11.26 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: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.01666/0.4159, allocations: 4.016 MB / 0.5542 GB, free: 9.586 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.56e-05/0.416, allocations: 9.516 kB / 0.5543 GB, free: 9.586 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002101/0.4162, allocations: 82.38 kB / 0.5543 GB, free: 9.578 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001902/0.4181, allocations: 0.5762 MB / 0.5549 GB, free: 9.512 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07464/0.4927, allocations: 6.995 MB / 0.5617 GB, free: 9.102 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006669/0.4994, allocations: 2.675 MB / 0.5643 GB, free: 7.875 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000147/0.4995, allocations: 170.6 kB / 0.5645 GB, free: 7.824 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008957/0.5004, allocations: 238.2 kB / 0.5647 GB, free: 7.766 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0143/0.5147, allocations: 7.873 MB / 0.5724 GB, free: 2.984 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000124/0.5149, allocations: 44.06 kB / 0.5725 GB, free: 2.977 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003779/0.5152, allocations: 115 kB / 0.5726 GB, free: 2.93 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002526/0.5178, allocations: 1.663 MB / 0.5742 GB, free: 2.309 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01201/0.5298, allocations: 6.622 MB / 0.5807 GB, free: 15.43 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04376/0.5735, allocations: 29.93 MB / 0.6099 GB, free: 2.059 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004816/0.5784, allocations: 1.745 MB / 0.6116 GB, free: 296 kB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001604/0.58, allocations: 1.031 MB / 0.6126 GB, free: 15.25 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003039/0.5803, allocations: 88.3 kB / 0.6127 GB, free: 15.16 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.818e-05/0.5803, allocations: 48.31 kB / 0.6127 GB, free: 15.11 MB / 462.1 MB Notification: Performance of pre-optimization done (n=117): time 4.238e-06/0.5803, allocations: 0 / 0.6127 GB, free: 15.11 MB / 462.1 MB Notification: Performance of matching and sorting (n=141): time 0.03697/0.6173, allocations: 11.46 MB / 0.6239 GB, free: 3.641 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001443/0.6174, allocations: 204.2 kB / 0.6241 GB, free: 3.398 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006434/0.6239, allocations: 3.761 MB / 0.6278 GB, free: 15.64 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003006/0.6242, allocations: 43.67 kB / 0.6278 GB, free: 15.59 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00284/0.627, allocations: 2.804 MB / 0.6306 GB, free: 12.8 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008286/0.6278, allocations: 0.5715 MB / 0.6311 GB, free: 12.24 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001643/0.6295, allocations: 1.092 MB / 0.6322 GB, free: 11.14 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002667/0.6297, allocations: 316.9 kB / 0.6325 GB, free: 10.83 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003281/0.633, allocations: 1.689 MB / 0.6341 GB, free: 9.137 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006842/0.6399, allocations: 5.19 MB / 0.6392 GB, free: 2.266 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01091/0.6508, allocations: 7.433 MB / 0.6465 GB, free: 9.527 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001105/0.6509, allocations: 32 kB / 0.6465 GB, free: 9.496 MB / 494.1 MB Notification: Performance of matching and sorting (n=700) (initialization): time 0.01382/0.6647, allocations: 6.805 MB / 0.6531 GB, free: 2.68 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001122/0.6648, allocations: 60.94 kB / 0.6532 GB, free: 2.621 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001759/0.665, allocations: 120 kB / 0.6533 GB, free: 2.504 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009883/0.666, allocations: 409.2 kB / 0.6537 GB, free: 2.102 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00438/0.6704, allocations: 1.232 MB / 0.6549 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004518/0.6749, allocations: 3.212 MB / 0.658 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00458/0.6795, allocations: 304.8 kB / 0.6583 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001015/0.6805, allocations: 332 kB / 0.6586 GB, free: 12.93 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 27 (BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (665): * Single equations (assignments): 661 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003903/0.6844, allocations: 1.78 MB / 0.6604 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007675/0.6851, allocations: 333.8 kB / 0.6607 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003756/0.6889, allocations: 1.853 MB / 0.6625 GB, free: 8.945 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.027e-05/0.6889, allocations: 16 kB / 0.6625 GB, free: 8.93 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.6889, allocations: 4 kB / 0.6625 GB, free: 8.926 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.378e-05/0.689, allocations: 7.984 kB / 0.6625 GB, free: 8.918 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01069/0.6996, allocations: 5.225 MB / 0.6676 GB, free: 3.656 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.337e-06/0.6997, allocations: 0.875 kB / 0.6676 GB, free: 3.656 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001206/0.7009, allocations: 211.7 kB / 0.6678 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000744/0.7016, allocations: 232.6 kB / 0.6681 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00011/0.7017, allocations: 27.98 kB / 0.6681 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003484/0.7052, allocations: 2.582 MB / 0.6706 GB, free: 0.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.7052, allocations: 0 / 0.6706 GB, free: 0.5 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006331/0.7115, allocations: 3.908 MB / 0.6744 GB, free: 12.56 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001595/0.7131, allocations: 0.4897 MB / 0.6749 GB, free: 12.07 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004214/0.7136, allocations: 19.94 kB / 0.6749 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001197/0.7147, allocations: 71.91 kB / 0.675 GB, free: 11.98 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002135/0.715, allocations: 72.52 kB / 0.6751 GB, free: 11.91 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001127/0.7151, allocations: 39.98 kB / 0.6751 GB, free: 11.88 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004328/0.7194, allocations: 2.35 MB / 0.6774 GB, free: 9.539 MB / 0.5137 GB Notification: Performance of sort global known variables: time 7e-08/0.7194, allocations: 0 / 0.6774 GB, free: 9.539 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00463/0.724, allocations: 0.8153 MB / 0.6782 GB, free: 8.727 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (112): * Single equations (assignments): 108 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006625/0.7307, allocations: 4.548 MB / 0.6826 GB, free: 4.141 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007186/0.7378, allocations: 3.955 MB / 0.6865 GB, free: 212 kB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.7378, allocations: 0 / 0.6865 GB, free: 212 kB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001864/0.7397, allocations: 1.067 MB / 0.6875 GB, free: 15.13 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002462/0.7422, allocations: 380.1 kB / 0.6879 GB, free: 14.76 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06503/0.8072, allocations: 38.22 MB / 0.7252 GB, free: 3.371 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003292/0.8105, allocations: 2.208 MB / 0.7274 GB, free: 1.133 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00458/0.8151, allocations: 1.759 MB / 0.7291 GB, free: 15.37 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002571/0.8177, allocations: 1.507 MB / 0.7306 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of SimCode: time 1.563e-06/0.8177, allocations: 4 kB / 0.7306 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.344/1.162, allocations: 57.89 MB / 0.7871 GB, free: 215.2 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.51/22.68, allocations: 18.47 kB / 0.7871 GB, free: 215.2 MB / 0.6075 GB " [Timeout remaining time 637] (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 26.789188569993712]