Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009667/0.0009667, allocations: 96.78 kB / 15.7 MB, free: 468 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 175.3 kB / 16.58 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.594/1.594, allocations: 205.4 MB / 222.7 MB, free: 5.613 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4024/0.4024, allocations: 43.57 MB / 314.6 MB, free: 8.785 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006751/0.0006755, allocations: 12 kB / 383.9 MB, free: 7.992 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1509/0.1516, allocations: 58.87 MB / 442.8 MB, free: 13.02 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.3093/0.4609, allocations: 30.66 MB / 473.5 MB, free: 33.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01745/0.4785, allocations: 7.267 MB / 480.7 MB, free: 28.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008925/0.4874, allocations: 135.5 kB / 480.9 MB, free: 28.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006198/0.4936, allocations: 1.561 MB / 482.4 MB, free: 27.69 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01936/0.5131, allocations: 4.821 MB / 487.3 MB, free: 25.69 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002751/0.5158, allocations: 487.3 kB / 487.7 MB, free: 25.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02784/0.5437, allocations: 18.04 MB / 0.4939 GB, free: 20.98 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006184/0.5499, allocations: 2.663 MB / 0.4965 GB, free: 19.94 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002918/0.5529, allocations: 0.9937 MB / 0.4975 GB, free: 19.62 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003399/0.5563, allocations: 1.604 MB / 0.4991 GB, free: 19.07 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001095/0.5574, allocations: 111.3 kB / 0.4992 GB, free: 19.07 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002911/0.5604, allocations: 0.9113 MB / 0.5001 GB, free: 18.68 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002685/0.5631, allocations: 1.368 MB / 0.5014 GB, free: 17.94 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001901/0.565, allocations: 0.6646 MB / 0.502 GB, free: 17.47 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007002/0.572, allocations: 4.366 MB / 0.5063 GB, free: 14.61 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.868e-06/0.5721, allocations: 0 / 0.5063 GB, free: 14.61 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.569e-06/0.5721, allocations: 0 / 0.5063 GB, free: 14.61 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003923/0.5725, allocations: 0 / 0.5063 GB, free: 14.61 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: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.009288/0.5818, allocations: 3.234 MB / 0.5095 GB, free: 11.9 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.5818, allocations: 8.031 kB / 0.5095 GB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0129/0.5947, allocations: 2.437 MB / 0.5119 GB, free: 9.445 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005579/0.6003, allocations: 2.25 MB / 0.514 GB, free: 7.145 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001211/0.6005, allocations: 172.3 kB / 0.5142 GB, free: 6.973 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006129/0.6011, allocations: 227.8 kB / 0.5144 GB, free: 6.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01174/0.6129, allocations: 7.894 MB / 0.5221 GB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000111/0.613, allocations: 39.64 kB / 0.5222 GB, free: 14.19 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003431/0.6134, allocations: 111.9 kB / 0.5223 GB, free: 14.08 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003044/0.6164, allocations: 1.672 MB / 0.5239 GB, free: 12.4 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01356/0.63, allocations: 6.729 MB / 0.5305 GB, free: 5.672 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04717/0.6773, allocations: 31.55 MB / 0.5613 GB, free: 5.195 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005893/0.6832, allocations: 2.347 MB / 0.5636 GB, free: 2.699 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002041/0.6853, allocations: 1.178 MB / 0.5647 GB, free: 1.512 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005036/0.6858, allocations: 331.7 kB / 0.5651 GB, free: 1.133 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.037e-05/0.6859, allocations: 43.12 kB / 0.5651 GB, free: 1.082 MB / 430.1 MB Notification: Performance of pre-optimization done (n=117): time 5.871e-06/0.6859, allocations: 4 kB / 0.5651 GB, free: 1.078 MB / 430.1 MB Notification: Performance of matching and sorting (n=141): time 0.03653/0.7225, allocations: 12.31 MB / 0.5771 GB, free: 4.617 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.7226, allocations: 196.5 kB / 0.5773 GB, free: 4.383 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005642/0.7283, allocations: 3.715 MB / 0.5809 GB, free: 0.6719 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003166/0.7286, allocations: 49.7 kB / 0.581 GB, free: 0.6172 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002211/0.7308, allocations: 2.658 MB / 0.5836 GB, free: 13.92 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008185/0.7316, allocations: 0.5633 MB / 0.5841 GB, free: 13.35 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002269/0.7319, allocations: 119.9 kB / 0.5843 GB, free: 13.23 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003898/0.7323, allocations: 0.5452 MB / 0.5848 GB, free: 12.68 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002841/0.7351, allocations: 1.779 MB / 0.5865 GB, free: 10.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005509/0.7407, allocations: 5.229 MB / 0.5916 GB, free: 3.938 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004704/0.7454, allocations: 2.998 MB / 0.5946 GB, free: 0.9375 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.268e-05/0.7455, allocations: 32 kB / 0.5946 GB, free: 0.9062 MB / 462.1 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01458/0.7601, allocations: 7.239 MB / 0.6017 GB, free: 9.66 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001095/0.7602, allocations: 56 kB / 0.6017 GB, free: 9.605 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001897/0.7604, allocations: 124 kB / 0.6018 GB, free: 9.484 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001709/0.7621, allocations: 0.6643 MB / 0.6025 GB, free: 8.816 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004411/0.7666, allocations: 1.271 MB / 0.6037 GB, free: 7.543 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005238/0.7718, allocations: 3.776 MB / 0.6074 GB, free: 3.629 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004931/0.7768, allocations: 311.5 kB / 0.6077 GB, free: 3.324 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001235/0.778, allocations: 336 kB / 0.608 GB, free: 2.996 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 27 (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 (684): * Single equations (assignments): 680 * 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.004643/0.7827, allocations: 1.786 MB / 0.6098 GB, free: 1.195 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009329/0.7836, allocations: 308 kB / 0.6101 GB, free: 0.8906 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005327/0.789, allocations: 2.223 MB / 0.6122 GB, free: 14.64 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-05/0.789, allocations: 16 kB / 0.6122 GB, free: 14.63 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.578e-05/0.7891, allocations: 4 kB / 0.6122 GB, free: 14.62 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.419e-05/0.7891, allocations: 3.984 kB / 0.6123 GB, free: 14.62 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01401/0.8031, allocations: 5.985 MB / 0.6181 GB, free: 8.555 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.489e-05/0.8032, allocations: 4 kB / 0.6181 GB, free: 8.551 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001184/0.8044, allocations: 211.7 kB / 0.6183 GB, free: 8.344 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001362/0.8058, allocations: 488.3 kB / 0.6188 GB, free: 7.863 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001734/0.806, allocations: 24 kB / 0.6188 GB, free: 7.84 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004007/0.81, allocations: 3.21 MB / 0.6219 GB, free: 4.496 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/0.81, allocations: 7.953 kB / 0.6219 GB, free: 4.488 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007289/0.8173, allocations: 4.331 MB / 0.6262 GB, free: 132 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2833/1.101, allocations: 0.5524 MB / 0.6267 GB, free: 136.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004429/1.101, allocations: 22.31 kB / 0.6267 GB, free: 136.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00116/1.102, allocations: 80.81 kB / 0.6268 GB, free: 136.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000201/1.103, allocations: 73.41 kB / 0.6269 GB, free: 136.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001036/1.103, allocations: 42.61 kB / 0.6269 GB, free: 136.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003402/1.106, allocations: 2.321 MB / 0.6292 GB, free: 136 MB / 494.1 MB Notification: Performance of sort global known variables: time 2e-07/1.106, allocations: 0 / 0.6292 GB, free: 136 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004362/1.11, allocations: 0.8325 MB / 0.63 GB, free: 136 MB / 494.1 MB 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 (112): * Single equations (assignments): 108 * 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.0003473/1.111, allocations: 151 kB / 0.6301 GB, free: 135.9 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0065/1.117, allocations: 4.26 MB / 0.6343 GB, free: 135.6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/1.117, allocations: 3.719 kB / 0.6343 GB, free: 135.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001527/1.119, allocations: 1.195 MB / 0.6355 GB, free: 135.4 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002088/1.121, allocations: 349.9 kB / 0.6358 GB, free: 135.4 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01382/1.135, allocations: 8.792 MB / 0.6444 GB, free: 131.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002885/1.138, allocations: 2.762 MB / 0.6471 GB, free: 130.4 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004335/1.142, allocations: 1.724 MB / 0.6488 GB, free: 130.3 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006386/1.143, allocations: 221 kB / 0.649 GB, free: 130.3 MB / 494.1 MB Notification: Performance of SimCode: time 1.673e-06/1.143, allocations: 0 / 0.649 GB, free: 130.3 MB / 494.1 MB Notification: Performance of Templates: time 0.07263/1.215, allocations: 28.38 MB / 0.6767 GB, free: 124.7 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches