Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.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.001756/0.001756, allocations: 101.9 kB / 20.48 MB, free: 1.383 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.002279/0.002279, allocations: 216.5 kB / 23.78 MB, free: 4.551 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.47/1.47, allocations: 207.7 MB / 234.6 MB, free: 9.793 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.22/0.22, allocations: 44.27 MB / 331.1 MB, free: 9.297 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.Distance2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",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.002187/0.002187, allocations: 68.52 kB / 468.3 MB, free: 4.371 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1248, allocations: 61.06 MB / 0.5169 GB, free: 7.188 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01253/0.1373, allocations: 8.774 MB / 0.5255 GB, free: 14.36 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008482/0.1458, allocations: 3.517 MB / 0.5289 GB, free: 10.84 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001545/0.1474, allocations: 59.75 kB / 0.529 GB, free: 10.78 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004206/0.1516, allocations: 1.911 MB / 0.5308 GB, free: 8.859 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004847/0.1564, allocations: 1.794 MB / 0.5326 GB, free: 7.059 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001733/0.1581, allocations: 0.5771 MB / 0.5332 GB, free: 6.48 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006083/0.1642, allocations: 3.747 MB / 0.5368 GB, free: 2.723 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003737/0.168, allocations: 2.139 MB / 0.5389 GB, free: 0.5273 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.258/0.426, allocations: 1.3 MB / 0.5402 GB, free: 12.15 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004481/0.4304, allocations: 1.992 MB / 0.5421 GB, free: 12.09 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00147/0.4319, allocations: 273 kB / 0.5424 GB, free: 12.09 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003632/0.4355, allocations: 1.06 MB / 0.5434 GB, free: 12.09 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003196/0.4387, allocations: 1.745 MB / 0.5451 GB, free: 11.88 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003998/0.4427, allocations: 1.487 MB / 0.5466 GB, free: 11.35 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01211/0.4548, allocations: 6.627 MB / 0.553 GB, free: 10.35 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/0.4548, allocations: 1.094 kB / 0.553 GB, free: 10.35 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.4549, allocations: 4.062 kB / 0.5531 GB, free: 10.35 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002806/0.4551, allocations: 0 / 0.5531 GB, free: 10.35 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: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.01955/0.4747, allocations: 4.384 MB / 0.5573 GB, free: 8.305 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.332e-05/0.4747, allocations: 9.781 kB / 0.5573 GB, free: 8.305 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002981/0.475, allocations: 89.12 kB / 0.5574 GB, free: 8.297 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003846/0.4789, allocations: 0.6385 MB / 0.558 GB, free: 8.012 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08188/0.5608, allocations: 7.064 MB / 0.5649 GB, free: 7.035 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008222/0.569, allocations: 2.802 MB / 0.5677 GB, free: 5.5 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002586/0.5692, allocations: 195.1 kB / 0.5679 GB, free: 5.441 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001608/0.5709, allocations: 265.7 kB / 0.5681 GB, free: 5.379 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02031/0.5912, allocations: 8.735 MB / 0.5767 GB, free: 148 kB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000283/0.5914, allocations: 43.47 kB / 0.5767 GB, free: 140 kB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001421/0.5929, allocations: 127.3 kB / 0.5768 GB, free: 88 kB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003641/0.5965, allocations: 1.843 MB / 0.5786 GB, free: 15.39 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01799/0.6145, allocations: 7.337 MB / 0.5858 GB, free: 10.89 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05516/0.6697, allocations: 32.49 MB / 0.6175 GB, free: 9.859 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005742/0.6754, allocations: 1.981 MB / 0.6194 GB, free: 7.852 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002044/0.6774, allocations: 1.034 MB / 0.6205 GB, free: 6.809 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003769/0.6778, allocations: 106 kB / 0.6206 GB, free: 6.707 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.933e-05/0.6779, allocations: 48.56 kB / 0.6206 GB, free: 6.656 MB / 462.1 MB Notification: Performance of pre-optimization done (n=119): time 7.093e-06/0.6779, allocations: 0 / 0.6206 GB, free: 6.656 MB / 462.1 MB Notification: Performance of matching and sorting (n=133): time 0.03028/0.7082, allocations: 9.099 MB / 0.6295 GB, free: 13.55 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001691/0.7083, allocations: 203.8 kB / 0.6297 GB, free: 13.31 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00813/0.7165, allocations: 3.989 MB / 0.6336 GB, free: 9.34 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003055/0.7168, allocations: 41.7 kB / 0.6336 GB, free: 9.293 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00301/0.7198, allocations: 3.088 MB / 0.6366 GB, free: 6.223 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009249/0.7207, allocations: 0.567 MB / 0.6372 GB, free: 5.66 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0025/0.7232, allocations: 1.178 MB / 0.6383 GB, free: 4.473 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.7233, allocations: 305.1 kB / 0.6386 GB, free: 4.172 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003255/0.7266, allocations: 1.694 MB / 0.6403 GB, free: 2.473 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006695/0.7333, allocations: 5.565 MB / 0.6457 GB, free: 11.04 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01126/0.7446, allocations: 7.861 MB / 0.6534 GB, free: 1.598 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001854/0.7447, allocations: 44 kB / 0.6534 GB, free: 1.555 MB / 494.1 MB Notification: Performance of matching and sorting (n=751) (initialization): time 0.01645/0.7612, allocations: 7.1 MB / 0.6604 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001569/0.7613, allocations: 64 kB / 0.6604 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002302/0.7616, allocations: 132 kB / 0.6606 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001121/0.7627, allocations: 426 kB / 0.661 GB, free: 9.836 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004688/0.7674, allocations: 1.318 MB / 0.6623 GB, free: 8.516 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004674/0.7721, allocations: 3.242 MB / 0.6654 GB, free: 5.164 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005232/0.7773, allocations: 303.6 kB / 0.6657 GB, free: 4.867 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001649/0.7789, allocations: 368 kB / 0.6661 GB, free: 4.508 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (716): * Single equations (assignments): 712 * 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.00587/0.7848, allocations: 1.946 MB / 0.668 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001/0.7858, allocations: 349.6 kB / 0.6683 GB, free: 2.207 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004177/0.79, allocations: 1.695 MB / 0.6699 GB, free: 0.4961 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-05/0.79, allocations: 13.64 kB / 0.67 GB, free: 496 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/0.79, allocations: 4 kB / 0.67 GB, free: 492 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.762e-05/0.79, allocations: 8.594 kB / 0.67 GB, free: 484 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01416/0.8042, allocations: 5.183 MB / 0.675 GB, free: 11.26 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.809e-05/0.8042, allocations: 1.125 kB / 0.675 GB, free: 11.26 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001044/0.8053, allocations: 191.7 kB / 0.6752 GB, free: 11.07 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007819/0.806, allocations: 220.8 kB / 0.6754 GB, free: 10.85 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001734/0.8062, allocations: 27.94 kB / 0.6755 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003601/0.8098, allocations: 2.583 MB / 0.678 GB, free: 8.125 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.086e-05/0.8098, allocations: 9.5 kB / 0.678 GB, free: 8.117 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006617/0.8164, allocations: 3.559 MB / 0.6815 GB, free: 4.512 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001768/0.8182, allocations: 473.4 kB / 0.6819 GB, free: 4.047 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009806/0.8192, allocations: 24.12 kB / 0.6819 GB, free: 4.023 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001819/0.821, allocations: 55.94 kB / 0.682 GB, free: 3.969 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002548/0.8213, allocations: 76.45 kB / 0.6821 GB, free: 3.895 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001236/0.8214, allocations: 43.11 kB / 0.6821 GB, free: 3.855 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.006655/0.828, allocations: 2.485 MB / 0.6845 GB, free: 1.391 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8281, allocations: 0 / 0.6845 GB, free: 1.391 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006926/0.835, allocations: 0.8515 MB / 0.6854 GB, free: 0.5391 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 98 * 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.007189/0.8422, allocations: 4.184 MB / 0.6894 GB, free: 12.32 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008268/0.8504, allocations: 3.96 MB / 0.6933 GB, free: 8.379 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/0.8504, allocations: 4.312 kB / 0.6933 GB, free: 8.375 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001769/0.8522, allocations: 0.9392 MB / 0.6942 GB, free: 7.422 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003492/0.8557, allocations: 401.8 kB / 0.6946 GB, free: 7.035 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08485/0.9406, allocations: 40.38 MB / 0.7341 GB, free: 8.828 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003924/0.9445, allocations: 2.408 MB / 0.7364 GB, free: 6.391 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004704/0.9492, allocations: 1.814 MB / 0.7382 GB, free: 4.566 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003237/0.9524, allocations: 1.651 MB / 0.7398 GB, free: 2.914 MB / 0.5762 GB Notification: Performance of SimCode: time 1.092e-06/0.9524, allocations: 0 / 0.7398 GB, free: 2.914 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3924/1.345, allocations: 60.26 MB / 0.7986 GB, free: 210.5 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.15/23.49, allocations: 10.03 kB / 0.7986 GB, free: 210.5 MB / 0.6075 GB " [Timeout remaining time 636] (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --stepSize=9.996e-05 --timeout=50 --tolerance=1e-10 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.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: 27.426661684992723]