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.001679/0.001679, allocations: 107.5 kB / 19.69 MB, free: 2.203 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.002107/0.002107, allocations: 227.9 kB / 23.01 MB, free: 5.039 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.508/1.508, allocations: 207.6 MB / 233.8 MB, free: 9.992 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.2295/0.2295, allocations: 44.24 MB / 330.3 MB, free: 9.52 MB / 270.1 MB " [Timeout remaining time 180] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",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.002362/0.002362, allocations: 70.97 kB / 467.5 MB, free: 4.523 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1248, allocations: 61.04 MB / 0.5161 GB, free: 7.344 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01251/0.1373, allocations: 9.501 MB / 0.5254 GB, free: 13.8 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008878/0.1462, allocations: 3.646 MB / 0.529 GB, free: 10.14 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002165/0.1483, allocations: 59.75 kB / 0.529 GB, free: 10.08 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004144/0.1525, allocations: 1.728 MB / 0.5307 GB, free: 8.348 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005229/0.1577, allocations: 1.681 MB / 0.5324 GB, free: 6.66 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001675/0.1594, allocations: 0.5653 MB / 0.5329 GB, free: 6.094 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005973/0.1654, allocations: 3.517 MB / 0.5363 GB, free: 2.566 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003759/0.1691, allocations: 1.903 MB / 0.5382 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2841/0.4532, allocations: 1.181 MB / 0.5394 GB, free: 11.9 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003547/0.4567, allocations: 1.773 MB / 0.5411 GB, free: 11.89 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009766/0.4577, allocations: 236.2 kB / 0.5413 GB, free: 11.89 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003051/0.4607, allocations: 1.158 MB / 0.5424 GB, free: 11.89 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002159/0.4629, allocations: 1.563 MB / 0.544 GB, free: 11.69 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002426/0.4653, allocations: 1.796 MB / 0.5457 GB, free: 11.05 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01029/0.4756, allocations: 5.965 MB / 0.5516 GB, free: 10.14 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.837e-06/0.4756, allocations: 4.688 kB / 0.5516 GB, free: 10.14 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.4756, allocations: 0 / 0.5516 GB, free: 10.14 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002396/0.4759, allocations: 0 / 0.5516 GB, free: 10.14 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.01405/0.4899, allocations: 4.021 MB / 0.5555 GB, free: 8.273 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.792e-05/0.49, allocations: 10.39 kB / 0.5555 GB, free: 8.273 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001393/0.4914, allocations: 0.5784 MB / 0.5561 GB, free: 8.016 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0818/0.5732, allocations: 6.993 MB / 0.5629 GB, free: 7.316 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007628/0.5808, allocations: 2.673 MB / 0.5655 GB, free: 5.84 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001617/0.581, allocations: 171 kB / 0.5657 GB, free: 5.789 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008096/0.5818, allocations: 231 kB / 0.5659 GB, free: 5.738 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01429/0.5961, allocations: 7.826 MB / 0.5735 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.644e-05/0.5962, allocations: 37.8 kB / 0.5736 GB, free: 0.957 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003182/0.5965, allocations: 113.1 kB / 0.5737 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002521/0.599, allocations: 1.665 MB / 0.5753 GB, free: 292 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01202/0.611, allocations: 6.623 MB / 0.5818 GB, free: 13.4 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04841/0.6594, allocations: 31.05 MB / 0.6121 GB, free: 13.88 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004928/0.6644, allocations: 1.756 MB / 0.6138 GB, free: 12.11 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001733/0.6661, allocations: 1.031 MB / 0.6148 GB, free: 11.07 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003416/0.6664, allocations: 95.25 kB / 0.6149 GB, free: 10.98 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.866e-05/0.6665, allocations: 49.95 kB / 0.6149 GB, free: 10.93 MB / 462.1 MB Notification: Performance of pre-optimization done (n=117): time 4.368e-06/0.6665, allocations: 4 kB / 0.6149 GB, free: 10.92 MB / 462.1 MB Notification: Performance of matching and sorting (n=141): time 0.03883/0.7053, allocations: 11.41 MB / 0.6261 GB, free: 15.49 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001399/0.7055, allocations: 192.6 kB / 0.6263 GB, free: 15.26 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008039/0.7135, allocations: 3.757 MB / 0.6299 GB, free: 11.51 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003385/0.7138, allocations: 45.7 kB / 0.63 GB, free: 11.46 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002967/0.7168, allocations: 2.807 MB / 0.6327 GB, free: 8.668 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009926/0.7178, allocations: 0.5688 MB / 0.6333 GB, free: 8.105 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002835/0.7206, allocations: 1.102 MB / 0.6344 GB, free: 6.996 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.7208, allocations: 305.1 kB / 0.6347 GB, free: 6.695 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00339/0.7242, allocations: 1.697 MB / 0.6363 GB, free: 4.996 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006557/0.7307, allocations: 5.134 MB / 0.6413 GB, free: 14.19 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01023/0.7409, allocations: 7.436 MB / 0.6486 GB, free: 5.477 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001266/0.7411, allocations: 32.62 kB / 0.6486 GB, free: 5.445 MB / 494.1 MB Notification: Performance of matching and sorting (n=700) (initialization): time 0.01522/0.7563, allocations: 6.806 MB / 0.6553 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.000133/0.7564, allocations: 59.94 kB / 0.6553 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002047/0.7566, allocations: 120 kB / 0.6554 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00109/0.7577, allocations: 409.3 kB / 0.6558 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004379/0.7621, allocations: 1.236 MB / 0.657 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004368/0.7665, allocations: 3.236 MB / 0.6602 GB, free: 9.473 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004497/0.771, allocations: 291.5 kB / 0.6605 GB, free: 9.188 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001072/0.772, allocations: 336 kB / 0.6608 GB, free: 8.859 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.004694/0.7767, allocations: 1.788 MB / 0.6625 GB, free: 7.066 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008751/0.7776, allocations: 325.8 kB / 0.6628 GB, free: 6.746 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004336/0.7819, allocations: 1.849 MB / 0.6647 GB, free: 4.879 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.236e-05/0.782, allocations: 19.94 kB / 0.6647 GB, free: 4.859 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.432e-05/0.782, allocations: 4 kB / 0.6647 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.653e-05/0.782, allocations: 3.984 kB / 0.6647 GB, free: 4.852 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01454/0.7966, allocations: 5.528 MB / 0.6701 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.447e-05/0.7966, allocations: 0 / 0.6701 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001151/0.7977, allocations: 211.7 kB / 0.6703 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007519/0.7985, allocations: 236.6 kB / 0.6705 GB, free: 14.83 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001603/0.7986, allocations: 23.98 kB / 0.6705 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003364/0.802, allocations: 2.606 MB / 0.6731 GB, free: 12.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/0.802, allocations: 4 kB / 0.6731 GB, free: 12.1 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006454/0.8085, allocations: 3.907 MB / 0.6769 GB, free: 8.16 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002029/0.8105, allocations: 489.5 kB / 0.6774 GB, free: 7.68 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001051/0.8115, allocations: 31.88 kB / 0.6774 GB, free: 7.648 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001935/0.8135, allocations: 71.97 kB / 0.6775 GB, free: 7.578 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002495/0.8137, allocations: 72.52 kB / 0.6775 GB, free: 7.508 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001253/0.8138, allocations: 44.22 kB / 0.6776 GB, free: 7.469 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.006756/0.8206, allocations: 2.354 MB / 0.6799 GB, free: 5.129 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9e-08/0.8206, allocations: 0 / 0.6799 GB, free: 5.129 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.007229/0.8278, allocations: 0.8085 MB / 0.6807 GB, free: 4.32 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.008597/0.8364, allocations: 4.541 MB / 0.6851 GB, free: 15.74 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008079/0.8445, allocations: 3.96 MB / 0.689 GB, free: 11.8 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.674e-06/0.8445, allocations: 0 / 0.689 GB, free: 11.8 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001984/0.8465, allocations: 1.06 MB / 0.69 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00355/0.8501, allocations: 378.7 kB / 0.6904 GB, free: 10.37 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.081/0.931, allocations: 38.23 MB / 0.7277 GB, free: 14.97 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004815/0.9359, allocations: 2.752 MB / 0.7304 GB, free: 12.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004651/0.9405, allocations: 1.762 MB / 0.7321 GB, free: 10.43 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003018/0.9435, allocations: 1.511 MB / 0.7336 GB, free: 8.922 MB / 0.5762 GB Notification: Performance of SimCode: time 1.302e-06/0.9435, allocations: 0 / 0.7336 GB, free: 8.922 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3912/1.335, allocations: 60.29 MB / 0.7925 GB, free: 207.5 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.32/22.66, allocations: 1.469 kB / 0.7925 GB, free: 207.5 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.085897477110848]