Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001218/0.001218, allocations: 100.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001311/0.001311, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 227.4 MB / 246.9 MB, free: 10.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2202/0.2202, allocations: 46.11 MB / 344.3 MB, free: 11.71 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 79.5 kB / 417.5 MB, free: 20.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.105, allocations: 62.44 MB / 479.9 MB, free: 5.711 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.03075/0.1357, allocations: 33.34 MB / 0.5012 GB, free: 4.238 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2349/0.3707, allocations: 7.556 MB / 0.5086 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007763/0.3785, allocations: 139.5 kB / 0.5088 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004503/0.383, allocations: 1.893 MB / 0.5106 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004497/0.3876, allocations: 1.467 MB / 0.512 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001387/0.389, allocations: 0.5287 MB / 0.5125 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008074/0.3971, allocations: 5.223 MB / 0.5176 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003754/0.4009, allocations: 2.41 MB / 0.52 GB, free: 9.645 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001912/0.4028, allocations: 1.023 MB / 0.521 GB, free: 9.441 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002348/0.4052, allocations: 1.769 MB / 0.5227 GB, free: 9.008 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000503/0.4057, allocations: 171 kB / 0.5229 GB, free: 9.008 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002072/0.4078, allocations: 1.107 MB / 0.524 GB, free: 8.828 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001358/0.4091, allocations: 1.471 MB / 0.5254 GB, free: 8.074 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001542/0.4107, allocations: 1.666 MB / 0.527 GB, free: 6.84 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004192/0.4149, allocations: 4.418 MB / 0.5314 GB, free: 4.059 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.4149, allocations: 0 / 0.5314 GB, free: 4.059 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4149, allocations: 0 / 0.5314 GB, free: 4.059 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001488/0.4151, allocations: 0 / 0.5314 GB, free: 4.059 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.007863/0.4229, allocations: 3.839 MB / 0.5351 GB, free: 1.422 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.423, allocations: 8.469 kB / 0.5351 GB, free: 1.422 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01404/0.4371, allocations: 2.346 MB / 0.5374 GB, free: 312 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005327/0.4424, allocations: 2.208 MB / 0.5396 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001372/0.4426, allocations: 189.3 kB / 0.5397 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007602/0.4434, allocations: 235.1 kB / 0.54 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01321/0.4566, allocations: 7.792 MB / 0.5476 GB, free: 7.141 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001142/0.4567, allocations: 47.56 kB / 0.5476 GB, free: 7.094 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003893/0.4571, allocations: 117.7 kB / 0.5477 GB, free: 7.008 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002612/0.4598, allocations: 1.582 MB / 0.5493 GB, free: 5.438 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01256/0.4723, allocations: 6.578 MB / 0.5557 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03579/0.5082, allocations: 31.75 MB / 0.5867 GB, free: 14.28 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004728/0.5129, allocations: 2.478 MB / 0.5891 GB, free: 11.65 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001398/0.5144, allocations: 1.128 MB / 0.5902 GB, free: 10.51 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000375/0.5148, allocations: 319.7 kB / 0.5905 GB, free: 10.15 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.082e-05/0.5148, allocations: 54.5 kB / 0.5906 GB, free: 10.09 MB / 446.1 MB Notification: Performance of pre-optimization done (n=104): time 3.146e-06/0.5148, allocations: 0 / 0.5906 GB, free: 10.09 MB / 446.1 MB Notification: Performance of matching and sorting (n=118): time 0.0246/0.5394, allocations: 9.136 MB / 0.5995 GB, free: 0.8477 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.5396, allocations: 192.5 kB / 0.5997 GB, free: 0.6133 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007136/0.5467, allocations: 3.751 MB / 0.6034 GB, free: 12.87 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002662/0.547, allocations: 41.89 kB / 0.6034 GB, free: 12.82 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00229/0.5493, allocations: 2.691 MB / 0.606 GB, free: 10.14 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007537/0.5501, allocations: 0.4931 MB / 0.6065 GB, free: 9.648 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002171/0.5523, allocations: 1.122 MB / 0.6076 GB, free: 8.516 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.5524, allocations: 305.1 kB / 0.6079 GB, free: 8.215 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00253/0.555, allocations: 1.697 MB / 0.6095 GB, free: 6.512 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005088/0.5601, allocations: 5.256 MB / 0.6147 GB, free: 15.46 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008284/0.5684, allocations: 7.51 MB / 0.622 GB, free: 6.176 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.978e-05/0.5685, allocations: 40 kB / 0.622 GB, free: 6.137 MB / 478.1 MB Notification: Performance of matching and sorting (n=717) (initialization): time 0.01257/0.5811, allocations: 7.116 MB / 0.629 GB, free: 15.01 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.181e-05/0.5812, allocations: 62.19 kB / 0.6291 GB, free: 14.95 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001374/0.5813, allocations: 135.9 kB / 0.6292 GB, free: 14.82 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001609/0.583, allocations: 0.6526 MB / 0.6298 GB, free: 14.16 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003635/0.5866, allocations: 1.248 MB / 0.631 GB, free: 12.91 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004594/0.5912, allocations: 3.787 MB / 0.6347 GB, free: 8.992 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003646/0.5949, allocations: 303.4 kB / 0.635 GB, free: 8.695 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005947/0.5955, allocations: 344 kB / 0.6354 GB, free: 8.359 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 577 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.twoHeadedArrow,distance1.arrow.headAtOrigin,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 (682): * Single equations (assignments): 678 * 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 {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002775/0.5983, allocations: 1.767 MB / 0.6371 GB, free: 6.578 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005488/0.5988, allocations: 304.1 kB / 0.6374 GB, free: 6.277 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003362/0.6022, allocations: 1.844 MB / 0.6392 GB, free: 4.418 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.516e-05/0.6022, allocations: 16 kB / 0.6392 GB, free: 4.402 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.425e-06/0.6023, allocations: 0 / 0.6392 GB, free: 4.402 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.235e-05/0.6023, allocations: 7.984 kB / 0.6392 GB, free: 4.395 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009336/0.6116, allocations: 5.243 MB / 0.6443 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.776e-06/0.6117, allocations: 0 / 0.6443 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007567/0.6124, allocations: 159.8 kB / 0.6445 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001297/0.6137, allocations: 484.2 kB / 0.6449 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.775e-05/0.6138, allocations: 20 kB / 0.645 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004026/0.6179, allocations: 3.212 MB / 0.6481 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.276e-06/0.6179, allocations: 8.016 kB / 0.6481 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005578/0.6235, allocations: 3.721 MB / 0.6517 GB, free: 7.352 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008722/0.6244, allocations: 361 kB / 0.6521 GB, free: 6.977 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003431/0.6247, allocations: 16 kB / 0.6521 GB, free: 6.961 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001003/0.6257, allocations: 63.98 kB / 0.6521 GB, free: 6.898 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001847/0.6259, allocations: 64.41 kB / 0.6522 GB, free: 6.836 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001001/0.626, allocations: 34.97 kB / 0.6522 GB, free: 6.805 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003504/0.6295, allocations: 2.334 MB / 0.6545 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.6e-07/0.6296, allocations: 4 kB / 0.6545 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004243/0.6338, allocations: 0.7929 MB / 0.6553 GB, free: 3.688 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (88): * Single equations (assignments): 84 * 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.0003612/0.6342, allocations: 153 kB / 0.6554 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.006052/0.6402, allocations: 4.015 MB / 0.6594 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.6403, allocations: 8.125 kB / 0.6594 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001375/0.6416, allocations: 1.001 MB / 0.6604 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002192/0.6439, allocations: 352.7 kB / 0.6607 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01307/0.6569, allocations: 9.033 MB / 0.6695 GB, free: 5.098 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002638/0.6596, allocations: 2.705 MB / 0.6722 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008233/0.6605, allocations: 251.4 kB / 0.6724 GB, free: 2.121 MB / 0.5137 GB Notification: Performance of SimCode: time 9.31e-07/0.6605, allocations: 0 / 0.6724 GB, free: 2.121 MB / 0.5137 GB Notification: Performance of Templates: time 0.2925/0.953, allocations: 61.42 MB / 0.7324 GB, free: 176.7 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches