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.001884/0.001884, allocations: 109 kB / 20.48 MB, free: 1.492 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.002377/0.002377, allocations: 211.9 kB / 23.79 MB, free: 4.707 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.475/1.475, allocations: 207.6 MB / 234.6 MB, free: 10.01 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.2341/0.2341, allocations: 44.23 MB / 331.1 MB, free: 9.543 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.002384/0.002384, allocations: 72.42 kB / 468.3 MB, free: 4.531 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1205, allocations: 61.04 MB / 0.5169 GB, free: 7.355 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01313/0.1336, allocations: 9.501 MB / 0.5262 GB, free: 13.8 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008229/0.1419, allocations: 3.649 MB / 0.5297 GB, free: 10.14 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001337/0.1432, allocations: 55.75 kB / 0.5298 GB, free: 10.09 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003544/0.1467, allocations: 1.728 MB / 0.5315 GB, free: 8.355 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004708/0.1514, allocations: 1.681 MB / 0.5331 GB, free: 6.668 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001352/0.1528, allocations: 0.5653 MB / 0.5337 GB, free: 6.102 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005147/0.1579, allocations: 3.513 MB / 0.5371 GB, free: 2.578 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002649/0.1606, allocations: 1.903 MB / 0.539 GB, free: 0.625 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2245/0.3851, allocations: 1.179 MB / 0.5401 GB, free: 11.81 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003143/0.3883, allocations: 1.776 MB / 0.5419 GB, free: 11.81 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001017/0.3893, allocations: 236.8 kB / 0.5421 GB, free: 11.81 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002795/0.3921, allocations: 1.153 MB / 0.5432 GB, free: 11.81 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002128/0.3942, allocations: 1.563 MB / 0.5447 GB, free: 11.61 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002508/0.3967, allocations: 1.802 MB / 0.5465 GB, free: 10.97 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01022/0.407, allocations: 5.965 MB / 0.5523 GB, free: 10.06 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.194e-06/0.407, allocations: 0 / 0.5523 GB, free: 10.06 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.056e-06/0.407, allocations: 4.719 kB / 0.5523 GB, free: 10.06 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002138/0.4072, allocations: 2.062 kB / 0.5523 GB, free: 10.06 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.01904/0.4262, allocations: 4.02 MB / 0.5563 GB, free: 8.188 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.969e-05/0.4263, allocations: 9 kB / 0.5563 GB, free: 8.188 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0003157/0.4266, allocations: 83.05 kB / 0.5563 GB, free: 8.18 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00262/0.4292, allocations: 0.5796 MB / 0.5569 GB, free: 7.918 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09887/0.5281, allocations: 6.987 MB / 0.5637 GB, free: 7.23 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007471/0.5356, allocations: 2.669 MB / 0.5663 GB, free: 5.754 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001848/0.5357, allocations: 173.2 kB / 0.5665 GB, free: 5.703 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008443/0.5366, allocations: 230 kB / 0.5667 GB, free: 5.652 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01267/0.5493, allocations: 7.822 MB / 0.5744 GB, free: 0.8789 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001036/0.5494, allocations: 41.95 kB / 0.5744 GB, free: 0.8711 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003648/0.5497, allocations: 116.6 kB / 0.5745 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002645/0.5524, allocations: 1.665 MB / 0.5761 GB, free: 204 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01215/0.5645, allocations: 6.63 MB / 0.5826 GB, free: 13.31 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04472/0.6092, allocations: 31.04 MB / 0.6129 GB, free: 13.8 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005022/0.6143, allocations: 1.752 MB / 0.6146 GB, free: 12.03 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001733/0.616, allocations: 1.03 MB / 0.6156 GB, free: 10.99 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003427/0.6163, allocations: 102.4 kB / 0.6157 GB, free: 10.9 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.56e-05/0.6164, allocations: 50.16 kB / 0.6158 GB, free: 10.84 MB / 462.1 MB Notification: Performance of pre-optimization done (n=117): time 4.919e-06/0.6164, allocations: 2.391 kB / 0.6158 GB, free: 10.84 MB / 462.1 MB Notification: Performance of matching and sorting (n=141): time 0.03926/0.6556, allocations: 11.41 MB / 0.6269 GB, free: 15.41 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001489/0.6558, allocations: 195.8 kB / 0.6271 GB, free: 15.18 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007137/0.6629, allocations: 3.757 MB / 0.6308 GB, free: 11.43 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000374/0.6633, allocations: 45.7 kB / 0.6308 GB, free: 11.38 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003036/0.6663, allocations: 2.803 MB / 0.6336 GB, free: 8.586 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001054/0.6674, allocations: 0.576 MB / 0.6341 GB, free: 8.016 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00262/0.67, allocations: 1.095 MB / 0.6352 GB, free: 6.914 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.6702, allocations: 305.1 kB / 0.6355 GB, free: 6.613 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003592/0.6738, allocations: 1.697 MB / 0.6372 GB, free: 4.91 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007538/0.6813, allocations: 5.133 MB / 0.6422 GB, free: 14.11 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01198/0.6933, allocations: 7.435 MB / 0.6494 GB, free: 5.395 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001344/0.6934, allocations: 35.62 kB / 0.6495 GB, free: 5.363 MB / 494.1 MB Notification: Performance of matching and sorting (n=700) (initialization): time 0.01765/0.711, allocations: 6.806 MB / 0.6561 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.000198/0.7112, allocations: 61 kB / 0.6562 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003253/0.7116, allocations: 123.9 kB / 0.6563 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001468/0.713, allocations: 401.3 kB / 0.6567 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005224/0.7183, allocations: 1.244 MB / 0.6579 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005223/0.7235, allocations: 3.223 MB / 0.661 GB, free: 9.395 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006382/0.7299, allocations: 303.5 kB / 0.6613 GB, free: 9.098 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00143/0.7313, allocations: 336 kB / 0.6616 GB, free: 8.77 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.005783/0.7371, allocations: 1.782 MB / 0.6634 GB, free: 6.98 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001043/0.7381, allocations: 333.7 kB / 0.6637 GB, free: 6.652 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005016/0.7431, allocations: 1.849 MB / 0.6655 GB, free: 4.785 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-05/0.7432, allocations: 16 kB / 0.6655 GB, free: 4.77 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.454e-05/0.7432, allocations: 8 kB / 0.6655 GB, free: 4.762 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-05/0.7432, allocations: 7.969 kB / 0.6655 GB, free: 4.754 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01631/0.7595, allocations: 5.524 MB / 0.6709 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.852e-05/0.7596, allocations: 0 / 0.6709 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001328/0.7609, allocations: 212.4 kB / 0.6711 GB, free: 14.97 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009109/0.7618, allocations: 232.7 kB / 0.6714 GB, free: 14.74 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003009/0.7621, allocations: 23.98 kB / 0.6714 GB, free: 14.72 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004144/0.7662, allocations: 2.605 MB / 0.6739 GB, free: 12.01 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.7662, allocations: 0 / 0.6739 GB, free: 12.01 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009258/0.7755, allocations: 3.912 MB / 0.6777 GB, free: 8.07 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002366/0.7779, allocations: 490.7 kB / 0.6782 GB, free: 7.59 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001409/0.7793, allocations: 24 kB / 0.6782 GB, free: 7.566 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002482/0.7818, allocations: 75.91 kB / 0.6783 GB, free: 7.492 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004992/0.7823, allocations: 80.44 kB / 0.6784 GB, free: 7.414 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002847/0.7825, allocations: 36 kB / 0.6784 GB, free: 7.379 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00742/0.79, allocations: 2.354 MB / 0.6807 GB, free: 5.039 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.6e-07/0.79, allocations: 0 / 0.6807 GB, free: 5.039 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006871/0.7968, allocations: 0.8068 MB / 0.6815 GB, free: 4.234 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.009025/0.8059, allocations: 4.545 MB / 0.6859 GB, free: 15.65 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00874/0.8146, allocations: 3.956 MB / 0.6898 GB, free: 11.72 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.012e-05/0.8146, allocations: 0 / 0.6898 GB, free: 11.72 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002337/0.8169, allocations: 1.06 MB / 0.6908 GB, free: 10.64 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004204/0.8211, allocations: 386.7 kB / 0.6912 GB, free: 10.28 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08934/0.9105, allocations: 38.22 MB / 0.7285 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006498/0.917, allocations: 2.761 MB / 0.7312 GB, free: 12.09 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.006284/0.9233, allocations: 1.758 MB / 0.733 GB, free: 10.33 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004654/0.9279, allocations: 1.499 MB / 0.7344 GB, free: 8.832 MB / 0.5762 GB Notification: Performance of SimCode: time 1.603e-06/0.9279, allocations: 0 / 0.7344 GB, free: 8.832 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4503/1.378, allocations: 60.33 MB / 0.7933 GB, free: 207.4 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.36/22.74, allocations: 7.312 kB / 0.7933 GB, free: 207.4 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.801270053023472]