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.001025/0.001025, allocations: 197 kB / 16.1 MB, free: 5.488 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 226.6 MB / 243.4 MB, free: 13.96 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007418/0.0007418, allocations: 102.5 kB / 295.5 MB, free: 9.887 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1865/0.1865, allocations: 44.83 MB / 392.3 MB, free: 9.152 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002937/0.0002937, allocations: 8 kB / 465.3 MB, free: 49.42 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1194, allocations: 62.94 MB / 0.5159 GB, free: 2.43 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.2513/0.3707, allocations: 30.34 MB / 0.5455 GB, free: 8.176 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01935/0.3901, allocations: 7.232 MB / 0.5526 GB, free: 3.273 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007259/0.3974, allocations: 136.4 kB / 0.5527 GB, free: 3.254 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005941/0.4034, allocations: 1.549 MB / 0.5542 GB, free: 2.707 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01492/0.4184, allocations: 4.808 MB / 0.5589 GB, free: 15.66 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002401/0.4208, allocations: 0.5107 MB / 0.5594 GB, free: 15.34 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.03791/0.4587, allocations: 31.62 MB / 0.5903 GB, free: 1.043 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004587/0.4633, allocations: 2.864 MB / 0.5931 GB, free: 14.12 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001946/0.4653, allocations: 0.9534 MB / 0.594 GB, free: 13.17 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0021/0.4674, allocations: 1.519 MB / 0.5955 GB, free: 11.64 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003664/0.4678, allocations: 108 kB / 0.5956 GB, free: 11.54 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001787/0.4696, allocations: 1.037 MB / 0.5966 GB, free: 10.5 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001189/0.4708, allocations: 1.313 MB / 0.5979 GB, free: 9.184 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001314/0.4721, allocations: 1.462 MB / 0.5993 GB, free: 7.707 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003854/0.476, allocations: 4.197 MB / 0.6034 GB, free: 3.5 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.476, allocations: 0 / 0.6034 GB, free: 3.5 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.476, allocations: 0 / 0.6034 GB, free: 3.5 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.773e-05/0.4761, allocations: 0 / 0.6034 GB, free: 3.5 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.00533/0.4815, allocations: 3.088 MB / 0.6064 GB, free: 352 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.4815, allocations: 8.031 kB / 0.6064 GB, free: 344 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01372/0.4952, allocations: 2.43 MB / 0.6088 GB, free: 13.9 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004742/0.5, allocations: 2.166 MB / 0.6109 GB, free: 11.68 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001262/0.5002, allocations: 164.5 kB / 0.6111 GB, free: 11.52 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004925/0.5007, allocations: 223.7 kB / 0.6113 GB, free: 11.3 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01079/0.5115, allocations: 7.587 MB / 0.6187 GB, free: 3.086 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.35e-05/0.5116, allocations: 39.59 kB / 0.6187 GB, free: 3.047 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000288/0.5119, allocations: 103.9 kB / 0.6188 GB, free: 2.945 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002441/0.5144, allocations: 1.597 MB / 0.6204 GB, free: 1.348 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01131/0.5257, allocations: 6.46 MB / 0.6267 GB, free: 10.88 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03293/0.5587, allocations: 30.69 MB / 0.6567 GB, free: 11.24 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004204/0.5629, allocations: 2.226 MB / 0.6589 GB, free: 8.863 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00135/0.5643, allocations: 1.134 MB / 0.66 GB, free: 7.719 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003445/0.5646, allocations: 319.6 kB / 0.6603 GB, free: 7.352 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.485e-05/0.5647, allocations: 47 kB / 0.6603 GB, free: 7.297 MB / 474.7 MB Notification: Performance of pre-optimization done (n=108): time 3.106e-06/0.5647, allocations: 0 / 0.6603 GB, free: 7.297 MB / 474.7 MB Notification: Performance of matching and sorting (n=132): time 0.03221/0.5969, allocations: 11.9 MB / 0.6719 GB, free: 11.24 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/0.5971, allocations: 196.6 kB / 0.6721 GB, free: 11.01 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004955/0.602, allocations: 3.637 MB / 0.6757 GB, free: 7.371 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002502/0.6023, allocations: 45.7 kB / 0.6757 GB, free: 7.32 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001616/0.6039, allocations: 2.588 MB / 0.6783 GB, free: 4.699 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005319/0.6045, allocations: 0.5285 MB / 0.6788 GB, free: 4.164 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001948/0.6047, allocations: 104 kB / 0.6789 GB, free: 4.062 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002796/0.605, allocations: 0.5371 MB / 0.6794 GB, free: 3.52 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002414/0.6074, allocations: 1.724 MB / 0.6811 GB, free: 1.789 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004367/0.6117, allocations: 5.079 MB / 0.686 GB, free: 11.02 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007758/0.6195, allocations: 7.369 MB / 0.6932 GB, free: 1.969 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.682e-05/0.6196, allocations: 36 kB / 0.6933 GB, free: 1.934 MB / 0.4948 GB Notification: Performance of matching and sorting (n=697) (initialization): time 0.01228/0.6319, allocations: 7.045 MB / 0.7001 GB, free: 10.88 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 7.195e-05/0.632, allocations: 56 kB / 0.7002 GB, free: 10.83 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001169/0.6322, allocations: 120 kB / 0.7003 GB, free: 10.71 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001549/0.6337, allocations: 0.6517 MB / 0.701 GB, free: 10.06 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003858/0.6376, allocations: 1.216 MB / 0.7021 GB, free: 8.84 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005425/0.643, allocations: 3.77 MB / 0.7058 GB, free: 4.934 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003572/0.6466, allocations: 295.4 kB / 0.7061 GB, free: 4.645 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007102/0.6474, allocations: 332 kB / 0.7064 GB, free: 4.32 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.002749/0.6501, allocations: 1.732 MB / 0.7081 GB, free: 2.574 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005095/0.6507, allocations: 300.1 kB / 0.7084 GB, free: 2.277 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003674/0.6543, allocations: 2.084 MB / 0.7104 GB, free: 176 kB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-05/0.6544, allocations: 16 kB / 0.7104 GB, free: 160 kB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/0.6544, allocations: 8 kB / 0.7105 GB, free: 152 kB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.273e-05/0.6544, allocations: 7.922 kB / 0.7105 GB, free: 144 kB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2379/0.8924, allocations: 5.722 MB / 0.7161 GB, free: 164.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.39e-05/0.8924, allocations: 2.031 kB / 0.7161 GB, free: 164.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009811/0.8934, allocations: 197 kB / 0.7162 GB, free: 164.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00143/0.8949, allocations: 487.5 kB / 0.7167 GB, free: 164.3 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001244/0.895, allocations: 26.16 kB / 0.7167 GB, free: 164.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003735/0.8987, allocations: 3.212 MB / 0.7199 GB, free: 162.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.8988, allocations: 1.156 kB / 0.7199 GB, free: 162.3 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006578/0.9053, allocations: 4.156 MB / 0.7239 GB, free: 160.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001054/0.9064, allocations: 366.6 kB / 0.7243 GB, free: 160.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003135/0.9067, allocations: 24.75 kB / 0.7243 GB, free: 160.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001076/0.9078, allocations: 77.02 kB / 0.7244 GB, free: 160.6 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002311/0.9081, allocations: 70.25 kB / 0.7244 GB, free: 160.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.912e-05/0.9082, allocations: 38.2 kB / 0.7245 GB, free: 160.5 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003918/0.9121, allocations: 2.272 MB / 0.7267 GB, free: 159.8 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.81e-07/0.9121, allocations: 288 / 0.7267 GB, free: 159.8 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004443/0.9166, allocations: 0.8063 MB / 0.7275 GB, free: 159.7 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.000373/0.917, allocations: 154.1 kB / 0.7276 GB, free: 159.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00704/0.924, allocations: 4.124 MB / 0.7317 GB, free: 158.1 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.924, allocations: 1.125 kB / 0.7317 GB, free: 158.1 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00157/0.9256, allocations: 1.129 MB / 0.7328 GB, free: 157.6 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002734/0.9284, allocations: 342.7 kB / 0.7331 GB, free: 157.5 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01181/0.9402, allocations: 8.802 MB / 0.7417 GB, free: 153.1 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00208/0.9423, allocations: 2.678 MB / 0.7443 GB, free: 152 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008118/0.9431, allocations: 247.1 kB / 0.7445 GB, free: 152 MB / 0.5105 GB Notification: Performance of SimCode: time 1.243e-06/0.9431, allocations: 0 / 0.7445 GB, free: 152 MB / 0.5105 GB Notification: Performance of Templates: time 0.06379/1.007, allocations: 60.95 MB / 0.8041 GB, free: 93.93 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