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.001319/0.001319, allocations: 108.3 kB / 19.7 MB, free: 1.918 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.001467/0.001467, allocations: 214.1 kB / 22.99 MB, free: 4.977 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.529/1.529, allocations: 207.7 MB / 233.8 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.2209/0.2209, allocations: 44.27 MB / 330.3 MB, free: 9.309 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",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.002296/0.002296, allocations: 78.7 kB / 467.5 MB, free: 4.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1227, allocations: 61.04 MB / 0.5161 GB, free: 7.184 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01165/0.1344, allocations: 8.841 MB / 0.5248 GB, free: 14.29 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007755/0.1421, allocations: 3.521 MB / 0.5282 GB, free: 10.76 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001182/0.1433, allocations: 59.75 kB / 0.5283 GB, free: 10.7 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003994/0.1473, allocations: 1.908 MB / 0.5301 GB, free: 8.789 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004461/0.1518, allocations: 1.794 MB / 0.5319 GB, free: 6.988 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001397/0.1532, allocations: 0.577 MB / 0.5325 GB, free: 6.41 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005367/0.1585, allocations: 3.751 MB / 0.5361 GB, free: 2.648 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003243/0.1618, allocations: 2.135 MB / 0.5382 GB, free: 468 kB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2377/0.3995, allocations: 1.297 MB / 0.5395 GB, free: 12.65 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003296/0.4028, allocations: 1.891 MB / 0.5413 GB, free: 12.58 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000872/0.4037, allocations: 277.3 kB / 0.5416 GB, free: 12.58 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002316/0.406, allocations: 1.055 MB / 0.5426 GB, free: 12.58 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002076/0.4081, allocations: 1.736 MB / 0.5443 GB, free: 12.37 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002401/0.4105, allocations: 1.49 MB / 0.5458 GB, free: 11.84 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009552/0.42, allocations: 6.63 MB / 0.5522 GB, free: 10.84 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.42, allocations: 0 / 0.5522 GB, free: 10.84 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.42, allocations: 0 / 0.5522 GB, free: 10.84 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002469/0.4203, allocations: 0.6562 kB / 0.5522 GB, free: 10.84 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.01528/0.4355, allocations: 4.38 MB / 0.5565 GB, free: 8.578 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.515e-05/0.4356, allocations: 12.22 kB / 0.5565 GB, free: 8.578 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001792/0.4374, allocations: 0.6471 MB / 0.5572 GB, free: 8.289 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08725/0.5246, allocations: 7.058 MB / 0.564 GB, free: 7.285 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008797/0.5334, allocations: 2.798 MB / 0.5668 GB, free: 5.75 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002246/0.5337, allocations: 196.2 kB / 0.567 GB, free: 5.691 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001178/0.5348, allocations: 263.2 kB / 0.5672 GB, free: 5.633 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01476/0.5496, allocations: 8.737 MB / 0.5758 GB, free: 404 kB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001209/0.5497, allocations: 45.72 kB / 0.5758 GB, free: 392 kB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004085/0.5501, allocations: 128 kB / 0.5759 GB, free: 344 kB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002947/0.5531, allocations: 1.836 MB / 0.5777 GB, free: 15.65 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01433/0.5674, allocations: 7.323 MB / 0.5849 GB, free: 11.23 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04968/0.6171, allocations: 32.5 MB / 0.6166 GB, free: 10.2 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00542/0.6225, allocations: 1.988 MB / 0.6185 GB, free: 8.191 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001853/0.6244, allocations: 1.03 MB / 0.6195 GB, free: 7.152 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003545/0.6247, allocations: 104.2 kB / 0.6196 GB, free: 7.051 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.876e-05/0.6248, allocations: 44.84 kB / 0.6197 GB, free: 7 MB / 462.1 MB Notification: Performance of pre-optimization done (n=119): time 4.589e-06/0.6248, allocations: 0 / 0.6197 GB, free: 7 MB / 462.1 MB Notification: Performance of matching and sorting (n=133): time 0.02458/0.6494, allocations: 9.114 MB / 0.6286 GB, free: 13.88 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001342/0.6495, allocations: 193.4 kB / 0.6288 GB, free: 13.65 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006328/0.6558, allocations: 4.211 MB / 0.6329 GB, free: 9.453 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002334/0.656, allocations: 41.7 kB / 0.6329 GB, free: 9.406 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002569/0.6586, allocations: 3.09 MB / 0.6359 GB, free: 6.332 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007216/0.6593, allocations: 0.566 MB / 0.6365 GB, free: 5.773 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001655/0.661, allocations: 1.174 MB / 0.6376 GB, free: 4.59 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.6611, allocations: 301.1 kB / 0.6379 GB, free: 4.293 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002836/0.664, allocations: 1.707 MB / 0.6396 GB, free: 2.582 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00634/0.6703, allocations: 5.561 MB / 0.645 GB, free: 11.15 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01147/0.6818, allocations: 7.856 MB / 0.6527 GB, free: 1.711 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001817/0.682, allocations: 40 kB / 0.6527 GB, free: 1.672 MB / 494.1 MB Notification: Performance of matching and sorting (n=751) (initialization): time 0.01521/0.6972, allocations: 7.107 MB / 0.6597 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001119/0.6973, allocations: 64 kB / 0.6597 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001746/0.6974, allocations: 140 kB / 0.6599 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001024/0.6985, allocations: 421.5 kB / 0.6603 GB, free: 9.945 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004073/0.7025, allocations: 1.326 MB / 0.6616 GB, free: 8.617 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004374/0.7069, allocations: 3.235 MB / 0.6647 GB, free: 5.273 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004283/0.7112, allocations: 304.4 kB / 0.665 GB, free: 4.977 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007164/0.7119, allocations: 364 kB / 0.6654 GB, free: 4.621 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.004007/0.7159, allocations: 1.945 MB / 0.6673 GB, free: 2.664 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007617/0.7167, allocations: 350.4 kB / 0.6676 GB, free: 2.32 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00345/0.7201, allocations: 1.693 MB / 0.6692 GB, free: 0.6133 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.763e-05/0.7202, allocations: 16 kB / 0.6693 GB, free: 0.5977 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.7202, allocations: 0 / 0.6693 GB, free: 0.5977 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.561e-05/0.7202, allocations: 11.97 kB / 0.6693 GB, free: 0.5859 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01111/0.7313, allocations: 5.174 MB / 0.6743 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.357e-06/0.7313, allocations: 4.156 kB / 0.6743 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009129/0.7322, allocations: 191.7 kB / 0.6745 GB, free: 11.19 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007001/0.7329, allocations: 221.8 kB / 0.6747 GB, free: 10.97 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.664e-05/0.733, allocations: 27.92 kB / 0.6748 GB, free: 10.94 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003308/0.7363, allocations: 2.577 MB / 0.6773 GB, free: 8.242 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.7363, allocations: 7.938 kB / 0.6773 GB, free: 8.234 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005623/0.7419, allocations: 3.562 MB / 0.6808 GB, free: 4.633 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001673/0.7436, allocations: 477.5 kB / 0.6812 GB, free: 4.164 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004669/0.7441, allocations: 20 kB / 0.6812 GB, free: 4.145 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001138/0.7452, allocations: 59.92 kB / 0.6813 GB, free: 4.086 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001993/0.7454, allocations: 76.41 kB / 0.6814 GB, free: 4.012 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.987e-05/0.7455, allocations: 44.05 kB / 0.6814 GB, free: 3.969 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004574/0.7501, allocations: 2.485 MB / 0.6838 GB, free: 1.504 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.91e-07/0.7501, allocations: 0 / 0.6838 GB, free: 1.504 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004673/0.7548, allocations: 0.8542 MB / 0.6847 GB, free: 0.6523 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.00625/0.761, allocations: 4.186 MB / 0.6888 GB, free: 12.43 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007922/0.7689, allocations: 3.959 MB / 0.6926 GB, free: 8.488 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.742e-06/0.769, allocations: 1.188 kB / 0.6926 GB, free: 8.488 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001558/0.7705, allocations: 0.9446 MB / 0.6935 GB, free: 7.531 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002608/0.7731, allocations: 402.2 kB / 0.6939 GB, free: 7.148 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06458/0.8377, allocations: 40.37 MB / 0.7333 GB, free: 8.957 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003441/0.8411, allocations: 2.416 MB / 0.7357 GB, free: 6.508 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00427/0.8454, allocations: 1.803 MB / 0.7375 GB, free: 4.695 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00249/0.8479, allocations: 1.659 MB / 0.7391 GB, free: 3.035 MB / 0.5762 GB Notification: Performance of SimCode: time 1.283e-06/0.8479, allocations: 0 / 0.7391 GB, free: 3.035 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3863/1.234, allocations: 58.01 MB / 0.7957 GB, free: 208.9 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.76/17, allocations: 5.531 kB / 0.7957 GB, free: 208.9 MB / 0.6075 GB " [Timeout remaining time 643] (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: 20.545948449987918]