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.001272/0.001272, allocations: 114.3 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001236/0.001236, allocations: 208 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2407/0.2407, allocations: 46.11 MB / 345 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 80.16 kB / 482 MB, free: 4.035 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3501/0.3515, allocations: 62.43 MB / 0.5316 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01027/0.3618, allocations: 9.055 MB / 0.5405 GB, free: 6.492 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008099/0.3699, allocations: 3.567 MB / 0.544 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002217/0.3722, allocations: 48.78 kB / 0.544 GB, free: 3.723 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004498/0.3767, allocations: 1.914 MB / 0.5459 GB, free: 2.434 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004934/0.3818, allocations: 1.579 MB / 0.5474 GB, free: 1.34 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001668/0.3834, allocations: 0.5659 MB / 0.548 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005621/0.3891, allocations: 3.657 MB / 0.5516 GB, free: 13.27 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003287/0.3924, allocations: 2.419 MB / 0.5539 GB, free: 10.8 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002195/0.3946, allocations: 1.164 MB / 0.5551 GB, free: 9.633 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002869/0.3975, allocations: 1.635 MB / 0.5567 GB, free: 7.992 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001001/0.3985, allocations: 244 kB / 0.5569 GB, free: 7.754 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002974/0.4015, allocations: 1.116 MB / 0.558 GB, free: 6.637 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002918/0.4045, allocations: 1.52 MB / 0.5595 GB, free: 5.113 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004467/0.409, allocations: 1.708 MB / 0.5611 GB, free: 3.395 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01272/0.4218, allocations: 5.695 MB / 0.5667 GB, free: 13.68 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.897e-06/0.4218, allocations: 0 / 0.5667 GB, free: 13.68 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.138e-06/0.4219, allocations: 0 / 0.5667 GB, free: 13.68 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002811/0.4221, allocations: 3.984 kB / 0.5667 GB, free: 13.68 MB / 430.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.01666/0.4388, allocations: 3.826 MB / 0.5704 GB, free: 9.781 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.649e-05/0.4389, allocations: 8.031 kB / 0.5704 GB, free: 9.773 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03136/0.4703, allocations: 2.344 MB / 0.5727 GB, free: 7.422 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009163/0.4795, allocations: 2.252 MB / 0.5749 GB, free: 5.117 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002868/0.4799, allocations: 176.8 kB / 0.5751 GB, free: 4.941 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001369/0.4813, allocations: 243.9 kB / 0.5753 GB, free: 4.703 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02424/0.5055, allocations: 7.786 MB / 0.5829 GB, free: 12.27 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002609/0.5059, allocations: 39.66 kB / 0.583 GB, free: 12.23 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001416/0.5073, allocations: 123.8 kB / 0.5831 GB, free: 12.11 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005265/0.5126, allocations: 1.582 MB / 0.5846 GB, free: 10.52 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02246/0.5351, allocations: 6.586 MB / 0.5911 GB, free: 3.926 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05282/0.588, allocations: 31.6 MB / 0.6219 GB, free: 3.34 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004989/0.593, allocations: 2.482 MB / 0.6243 GB, free: 0.7109 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001589/0.5946, allocations: 1.128 MB / 0.6254 GB, free: 15.57 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004141/0.5951, allocations: 327.2 kB / 0.6258 GB, free: 15.2 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.277e-05/0.5951, allocations: 50.5 kB / 0.6258 GB, free: 15.14 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 5.049e-06/0.5952, allocations: 0 / 0.6258 GB, free: 15.14 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02546/0.6206, allocations: 9.14 MB / 0.6347 GB, free: 5.887 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001315/0.6208, allocations: 188.5 kB / 0.6349 GB, free: 5.656 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006944/0.6278, allocations: 3.751 MB / 0.6386 GB, free: 1.91 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000302/0.6281, allocations: 41.7 kB / 0.6386 GB, free: 1.863 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002419/0.6306, allocations: 2.7 MB / 0.6413 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007673/0.6313, allocations: 0.4903 MB / 0.6417 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002271/0.6336, allocations: 1.122 MB / 0.6428 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001115/0.6338, allocations: 305.1 kB / 0.6431 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002742/0.6365, allocations: 1.686 MB / 0.6448 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005211/0.6417, allocations: 5.267 MB / 0.6499 GB, free: 4.438 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008555/0.6503, allocations: 7.499 MB / 0.6572 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001312/0.6505, allocations: 40 kB / 0.6573 GB, free: 11.12 MB / 0.5137 GB Notification: Performance of matching and sorting (n=717) (initialization): time 0.01423/0.6647, allocations: 7.121 MB / 0.6642 GB, free: 3.992 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001514/0.6649, allocations: 67.97 kB / 0.6643 GB, free: 3.926 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002426/0.6652, allocations: 124 kB / 0.6644 GB, free: 3.805 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001833/0.667, allocations: 0.6564 MB / 0.665 GB, free: 3.145 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004191/0.6713, allocations: 1.251 MB / 0.6663 GB, free: 1.891 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005255/0.6765, allocations: 4.075 MB / 0.6703 GB, free: 13.68 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004606/0.6812, allocations: 299.5 kB / 0.6705 GB, free: 13.38 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001163/0.6824, allocations: 344 kB / 0.6709 GB, free: 13.05 MB / 0.5294 GB 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.004344/0.6867, allocations: 1.779 MB / 0.6726 GB, free: 11.26 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008069/0.6875, allocations: 300.1 kB / 0.6729 GB, free: 10.96 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003971/0.6915, allocations: 1.848 MB / 0.6747 GB, free: 9.098 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.322e-05/0.6916, allocations: 12 kB / 0.6747 GB, free: 9.086 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.487e-05/0.6916, allocations: 7.938 kB / 0.6747 GB, free: 9.078 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.658e-05/0.6916, allocations: 3.984 kB / 0.6747 GB, free: 9.074 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01184/0.7035, allocations: 5.212 MB / 0.6798 GB, free: 3.789 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-05/0.7035, allocations: 3.938 kB / 0.6798 GB, free: 3.785 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008085/0.7043, allocations: 159.8 kB / 0.68 GB, free: 3.629 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001396/0.7058, allocations: 488.3 kB / 0.6804 GB, free: 3.148 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000126/0.7059, allocations: 20 kB / 0.6804 GB, free: 3.129 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004377/0.7103, allocations: 3.418 MB / 0.6838 GB, free: 15.57 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.551e-06/0.7103, allocations: 4.094 kB / 0.6838 GB, free: 15.56 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00615/0.7165, allocations: 3.749 MB / 0.6874 GB, free: 11.79 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001134/0.7177, allocations: 353.4 kB / 0.6878 GB, free: 11.42 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007937/0.7185, allocations: 19.94 kB / 0.6878 GB, free: 11.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001532/0.72, allocations: 63.86 kB / 0.6879 GB, free: 11.34 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002504/0.7203, allocations: 60.42 kB / 0.6879 GB, free: 11.28 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001046/0.7204, allocations: 35.98 kB / 0.688 GB, free: 11.25 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004765/0.7252, allocations: 2.326 MB / 0.6902 GB, free: 8.934 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.41e-07/0.7252, allocations: 4.062 kB / 0.6902 GB, free: 8.93 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005381/0.7306, allocations: 0.8047 MB / 0.691 GB, free: 8.125 MB / 0.545 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.0005272/0.7312, allocations: 139 kB / 0.6912 GB, free: 7.98 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007257/0.7384, allocations: 4.03 MB / 0.6951 GB, free: 3.965 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.584e-06/0.7385, allocations: 0 / 0.6951 GB, free: 3.965 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001679/0.7402, allocations: 1.009 MB / 0.6961 GB, free: 2.949 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003213/0.7434, allocations: 358.4 kB / 0.6964 GB, free: 2.598 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0176/0.761, allocations: 7.462 MB / 0.7037 GB, free: 11.08 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00315/0.7643, allocations: 2.704 MB / 0.7063 GB, free: 8.352 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000874/0.7651, allocations: 247.4 kB / 0.7066 GB, free: 8.113 MB / 0.5606 GB Notification: Performance of SimCode: time 1.663e-06/0.7652, allocations: 0 / 0.7066 GB, free: 8.113 MB / 0.5606 GB Notification: Performance of Templates: time 0.3889/1.154, allocations: 62.02 MB / 0.7671 GB, free: 151.5 MB / 0.5762 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