Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009505/0.0009505, allocations: 204.4 kB / 15.8 MB, free: 6.328 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.248/1.248, allocations: 226.5 MB / 243.1 MB, free: 14.29 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007547/0.0007547, allocations: 97.03 kB / 295.1 MB, free: 10.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1847/0.1847, allocations: 44.83 MB / 392 MB, free: 9.328 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002313/0.0002313, allocations: 8 kB / 464.7 MB, free: 49.76 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08623/0.08648, allocations: 62.95 MB / 0.5153 GB, free: 2.77 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.2098/0.2963, allocations: 30.33 MB / 0.5449 GB, free: 8.352 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01598/0.3123, allocations: 7.236 MB / 0.552 GB, free: 3.457 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005849/0.3182, allocations: 137.5 kB / 0.5521 GB, free: 3.438 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004597/0.3228, allocations: 1.548 MB / 0.5536 GB, free: 2.887 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01336/0.3362, allocations: 4.779 MB / 0.5583 GB, free: 15.89 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002094/0.3383, allocations: 485.1 kB / 0.5588 GB, free: 15.6 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.03475/0.3731, allocations: 31.58 MB / 0.5896 GB, free: 1.473 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004234/0.3774, allocations: 2.622 MB / 0.5922 GB, free: 14.82 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00185/0.3793, allocations: 0.9572 MB / 0.5931 GB, free: 13.86 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002221/0.3815, allocations: 1.519 MB / 0.5946 GB, free: 12.33 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005919/0.3821, allocations: 104 kB / 0.5947 GB, free: 12.23 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001996/0.3841, allocations: 0.8972 MB / 0.5956 GB, free: 11.33 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001472/0.3856, allocations: 1.321 MB / 0.5969 GB, free: 10.01 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009163/0.3865, allocations: 0.6364 MB / 0.5975 GB, free: 9.363 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004182/0.3907, allocations: 4.193 MB / 0.6016 GB, free: 5.16 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.3908, allocations: 0 / 0.6016 GB, free: 5.16 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.976e-06/0.3908, allocations: 0 / 0.6016 GB, free: 5.16 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001522/0.3909, allocations: 7.938 kB / 0.6016 GB, free: 5.152 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.006157/0.3971, allocations: 3.135 MB / 0.6047 GB, free: 1.949 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.3971, allocations: 8.031 kB / 0.6047 GB, free: 1.941 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01464/0.4118, allocations: 2.417 MB / 0.607 GB, free: 15.52 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004563/0.4164, allocations: 2.135 MB / 0.6091 GB, free: 13.33 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001146/0.4165, allocations: 160.2 kB / 0.6093 GB, free: 13.17 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004128/0.4169, allocations: 223.8 kB / 0.6095 GB, free: 12.95 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01049/0.4274, allocations: 7.591 MB / 0.6169 GB, free: 4.734 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.692e-05/0.4276, allocations: 35.66 kB / 0.6169 GB, free: 4.699 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002704/0.4278, allocations: 107.9 kB / 0.617 GB, free: 4.594 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002447/0.4303, allocations: 1.613 MB / 0.6186 GB, free: 2.973 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01016/0.4405, allocations: 6.445 MB / 0.6249 GB, free: 12.52 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03087/0.4714, allocations: 30.68 MB / 0.6548 GB, free: 12.9 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004151/0.4756, allocations: 2.227 MB / 0.657 GB, free: 10.52 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001345/0.4769, allocations: 1.13 MB / 0.6581 GB, free: 9.383 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003434/0.4773, allocations: 323.6 kB / 0.6584 GB, free: 9.012 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/0.4773, allocations: 39 kB / 0.6585 GB, free: 8.965 MB / 474.7 MB Notification: Performance of pre-optimization done (n=108): time 3.457e-06/0.4773, allocations: 4 kB / 0.6585 GB, free: 8.961 MB / 474.7 MB Notification: Performance of matching and sorting (n=132): time 0.0337/0.511, allocations: 11.9 MB / 0.6701 GB, free: 12.92 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/0.5112, allocations: 196.6 kB / 0.6703 GB, free: 12.68 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004437/0.5156, allocations: 3.641 MB / 0.6738 GB, free: 9.043 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000147/0.5158, allocations: 45.69 kB / 0.6739 GB, free: 8.992 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001673/0.5175, allocations: 2.584 MB / 0.6764 GB, free: 6.371 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004749/0.5179, allocations: 0.5286 MB / 0.6769 GB, free: 5.836 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001886/0.5181, allocations: 108 kB / 0.677 GB, free: 5.73 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003133/0.5185, allocations: 0.5331 MB / 0.6775 GB, free: 5.191 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002417/0.5209, allocations: 1.72 MB / 0.6792 GB, free: 3.465 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004329/0.5252, allocations: 5.091 MB / 0.6842 GB, free: 12.68 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003681/0.5289, allocations: 2.906 MB / 0.687 GB, free: 9.77 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.279e-05/0.529, allocations: 32 kB / 0.6871 GB, free: 9.738 MB / 0.4948 GB Notification: Performance of matching and sorting (n=697) (initialization): time 0.01045/0.5394, allocations: 7.034 MB / 0.6939 GB, free: 2.695 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 6.96e-05/0.5395, allocations: 62.38 kB / 0.694 GB, free: 2.637 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000108/0.5397, allocations: 119.9 kB / 0.6941 GB, free: 2.52 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001508/0.5412, allocations: 0.6642 MB / 0.6948 GB, free: 1.852 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003295/0.5445, allocations: 1.224 MB / 0.696 GB, free: 0.625 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004271/0.5488, allocations: 3.756 MB / 0.6996 GB, free: 12.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003094/0.5519, allocations: 303.5 kB / 0.6999 GB, free: 12.43 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004073/0.5523, allocations: 328 kB / 0.7002 GB, free: 12.11 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 542 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.arrowLine.twoHeadedArrow,Distance1.arrow.headAtOrigin,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 (662): * Single equations (assignments): 658 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002244/0.5545, allocations: 1.736 MB / 0.7019 GB, free: 10.36 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004277/0.555, allocations: 300.1 kB / 0.7022 GB, free: 10.07 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003563/0.5585, allocations: 2.092 MB / 0.7043 GB, free: 7.957 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.389e-05/0.5586, allocations: 16 kB / 0.7043 GB, free: 7.941 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.798e-06/0.5586, allocations: 4 kB / 0.7043 GB, free: 7.938 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/0.5586, allocations: 7.938 kB / 0.7043 GB, free: 7.93 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008919/0.5675, allocations: 5.733 MB / 0.7099 GB, free: 2.105 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.291e-06/0.5676, allocations: 0 / 0.7099 GB, free: 2.105 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008954/0.5685, allocations: 195.7 kB / 0.7101 GB, free: 1.914 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001258/0.5697, allocations: 488.3 kB / 0.7105 GB, free: 1.434 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.52e-05/0.5698, allocations: 23.94 kB / 0.7106 GB, free: 1.41 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1851/0.755, allocations: 3.203 MB / 0.7137 GB, free: 163.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.755, allocations: 4.641 kB / 0.7137 GB, free: 163.7 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00567/0.7607, allocations: 4.155 MB / 0.7177 GB, free: 162.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006092/0.7613, allocations: 371.4 kB / 0.7181 GB, free: 162.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002701/0.7616, allocations: 19.89 kB / 0.7181 GB, free: 162.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001058/0.7627, allocations: 77.75 kB / 0.7182 GB, free: 162.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001453/0.7628, allocations: 73.83 kB / 0.7183 GB, free: 162.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.567e-05/0.7629, allocations: 36.92 kB / 0.7183 GB, free: 162.5 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00305/0.766, allocations: 2.272 MB / 0.7205 GB, free: 161.7 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.042e-06/0.766, allocations: 1.062 kB / 0.7205 GB, free: 161.7 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003188/0.7692, allocations: 0.8067 MB / 0.7213 GB, free: 161.6 MB / 0.5105 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 (102): * Single equations (assignments): 98 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002729/0.7694, allocations: 148.3 kB / 0.7214 GB, free: 161.5 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.005135/0.7746, allocations: 4.117 MB / 0.7255 GB, free: 160.1 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.7746, allocations: 5.281 kB / 0.7255 GB, free: 160.1 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00136/0.776, allocations: 1.13 MB / 0.7266 GB, free: 159.7 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001616/0.7776, allocations: 345.2 kB / 0.7269 GB, free: 159.5 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01046/0.7881, allocations: 8.803 MB / 0.7355 GB, free: 155.2 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00221/0.7903, allocations: 2.677 MB / 0.7381 GB, free: 154 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006838/0.791, allocations: 254.2 kB / 0.7384 GB, free: 154 MB / 0.5105 GB Notification: Performance of SimCode: time 6.11e-07/0.791, allocations: 1.25 kB / 0.7384 GB, free: 154 MB / 0.5105 GB Notification: Performance of Templates: time 0.05231/0.8433, allocations: 61.04 MB / 0.798 GB, free: 101 MB / 0.5105 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches