Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2.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.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001038/0.001038, allocations: 202.2 kB / 15.8 MB, free: 6.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.259/1.259, allocations: 226.6 MB / 243.1 MB, free: 14.28 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007997/0.0007996, allocations: 89.5 kB / 295.1 MB, free: 10.06 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1737/0.1737, allocations: 44.84 MB / 392 MB, free: 9.328 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002294/0.0002295, allocations: 8 kB / 464.7 MB, free: 49.78 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09019/0.09043, allocations: 62.96 MB / 0.5153 GB, free: 2.777 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.2047/0.2952, allocations: 36.9 MB / 0.5514 GB, free: 3.66 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01873/0.3139, allocations: 8.405 MB / 0.5596 GB, free: 13.96 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007408/0.3214, allocations: 168 kB / 0.5597 GB, free: 13.93 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00558/0.327, allocations: 1.913 MB / 0.5616 GB, free: 12.86 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01504/0.342, allocations: 5.781 MB / 0.5672 GB, free: 8.402 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00248/0.3445, allocations: 0.4991 MB / 0.5677 GB, free: 7.902 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.03419/0.3787, allocations: 31.79 MB / 0.5988 GB, free: 8.078 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004657/0.3834, allocations: 2.949 MB / 0.6016 GB, free: 5.086 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001801/0.3853, allocations: 1.008 MB / 0.6026 GB, free: 4.074 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002361/0.3877, allocations: 1.604 MB / 0.6042 GB, free: 2.465 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008392/0.3885, allocations: 112 kB / 0.6043 GB, free: 2.355 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002104/0.3907, allocations: 0.9049 MB / 0.6052 GB, free: 1.449 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001563/0.3922, allocations: 1.418 MB / 0.6066 GB, free: 28 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008237/0.3931, allocations: 0.6831 MB / 0.6072 GB, free: 15.33 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004309/0.3974, allocations: 4.516 MB / 0.6117 GB, free: 10.81 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.3974, allocations: 0 / 0.6117 GB, free: 10.81 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.3974, allocations: 0 / 0.6117 GB, free: 10.81 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001156/0.3976, allocations: 0 / 0.6117 GB, free: 10.81 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.005725/0.4033, allocations: 3.32 MB / 0.6149 GB, free: 7.426 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.4033, allocations: 8.031 kB / 0.6149 GB, free: 7.418 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01433/0.4177, allocations: 2.464 MB / 0.6173 GB, free: 4.945 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004321/0.422, allocations: 2.236 MB / 0.6195 GB, free: 2.656 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001316/0.4222, allocations: 180.6 kB / 0.6197 GB, free: 2.477 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004465/0.4226, allocations: 235.8 kB / 0.6199 GB, free: 2.246 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01101/0.4336, allocations: 8.15 MB / 0.6278 GB, free: 9.453 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.821e-05/0.4338, allocations: 43.58 kB / 0.6279 GB, free: 9.41 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003145/0.4341, allocations: 115.9 kB / 0.628 GB, free: 9.297 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002568/0.4367, allocations: 1.707 MB / 0.6297 GB, free: 7.586 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01059/0.4473, allocations: 6.884 MB / 0.6364 GB, free: 0.6914 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03256/0.4798, allocations: 32.51 MB / 0.6681 GB, free: 15.16 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004402/0.4843, allocations: 2.468 MB / 0.6706 GB, free: 12.55 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001334/0.4856, allocations: 1.118 MB / 0.6716 GB, free: 11.42 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003213/0.486, allocations: 331.2 kB / 0.672 GB, free: 11.05 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.989e-05/0.486, allocations: 46.45 kB / 0.672 GB, free: 10.99 MB / 490.7 MB Notification: Performance of pre-optimization done (n=104): time 2.905e-06/0.486, allocations: 0 / 0.672 GB, free: 10.99 MB / 490.7 MB Notification: Performance of matching and sorting (n=118): time 0.02109/0.5071, allocations: 9.23 MB / 0.681 GB, free: 1.652 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.872e-05/0.5072, allocations: 188.5 kB / 0.6812 GB, free: 1.426 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004564/0.5118, allocations: 3.792 MB / 0.6849 GB, free: 13.64 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 9.51e-05/0.5119, allocations: 45.64 kB / 0.6849 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001682/0.5136, allocations: 2.785 MB / 0.6877 GB, free: 10.77 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003881/0.514, allocations: 0.4942 MB / 0.6881 GB, free: 10.27 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001872/0.5142, allocations: 108 kB / 0.6882 GB, free: 10.16 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002914/0.5145, allocations: 0.5454 MB / 0.6888 GB, free: 9.609 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002258/0.5168, allocations: 1.682 MB / 0.6904 GB, free: 7.918 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004357/0.5211, allocations: 5.311 MB / 0.6956 GB, free: 0.7812 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003624/0.5248, allocations: 2.924 MB / 0.6985 GB, free: 13.86 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-05/0.5248, allocations: 36 kB / 0.6985 GB, free: 13.82 MB / 0.5105 GB Notification: Performance of matching and sorting (n=726) (initialization): time 0.0104/0.5352, allocations: 7.143 MB / 0.7055 GB, free: 6.668 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 7.51e-05/0.5353, allocations: 62.03 kB / 0.7055 GB, free: 6.609 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001054/0.5354, allocations: 132 kB / 0.7057 GB, free: 6.48 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001476/0.5369, allocations: 0.6799 MB / 0.7063 GB, free: 5.801 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003097/0.54, allocations: 1.263 MB / 0.7076 GB, free: 4.535 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004141/0.5442, allocations: 3.798 MB / 0.7113 GB, free: 0.6055 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00301/0.5472, allocations: 295.4 kB / 0.7115 GB, free: 324 kB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.175/0.7222, allocations: 348.5 kB / 0.7119 GB, free: 163.3 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 586 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.arrowLine.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 (691): * Single equations (assignments): 687 * 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%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003545/0.7258, allocations: 1.839 MB / 0.7137 GB, free: 163.2 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005282/0.7263, allocations: 310 kB / 0.714 GB, free: 163.2 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003299/0.7297, allocations: 1.832 MB / 0.7158 GB, free: 162.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-05/0.7297, allocations: 16.23 kB / 0.7158 GB, free: 162.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.308e-06/0.7297, allocations: 3.625 kB / 0.7158 GB, free: 162.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.452e-05/0.7297, allocations: 8.922 kB / 0.7158 GB, free: 162.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008758/0.7385, allocations: 5.355 MB / 0.721 GB, free: 161 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.907e-06/0.7385, allocations: 5.672 kB / 0.721 GB, free: 161 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007152/0.7392, allocations: 162 kB / 0.7212 GB, free: 161 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001288/0.7405, allocations: 486.6 kB / 0.7216 GB, free: 160.9 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.127e-05/0.7406, allocations: 25.58 kB / 0.7217 GB, free: 160.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00331/0.7439, allocations: 3.209 MB / 0.7248 GB, free: 158.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.744, allocations: 1.375 kB / 0.7248 GB, free: 158.9 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005147/0.7491, allocations: 3.731 MB / 0.7284 GB, free: 157.5 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009367/0.7501, allocations: 366.7 kB / 0.7288 GB, free: 157.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003051/0.7504, allocations: 19.31 kB / 0.7288 GB, free: 157.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009835/0.7514, allocations: 65.81 kB / 0.7289 GB, free: 157.3 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001771/0.7516, allocations: 67.64 kB / 0.7289 GB, free: 157.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.686e-05/0.7516, allocations: 33.3 kB / 0.729 GB, free: 157.3 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00336/0.755, allocations: 2.347 MB / 0.7313 GB, free: 156.5 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.01e-07/0.755, allocations: 0 / 0.7313 GB, free: 156.5 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003705/0.7587, allocations: 0.827 MB / 0.7321 GB, free: 156.4 MB / 0.5105 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 (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.0002892/0.759, allocations: 152.1 kB / 0.7322 GB, free: 156.3 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.005539/0.7646, allocations: 4.012 MB / 0.7361 GB, free: 155 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.7646, allocations: 1.375 kB / 0.7361 GB, free: 155 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001159/0.7658, allocations: 0.9935 MB / 0.7371 GB, free: 154.6 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001848/0.7676, allocations: 355.6 kB / 0.7374 GB, free: 154.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009823/0.7775, allocations: 9.072 MB / 0.7463 GB, free: 149.8 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002034/0.7795, allocations: 2.801 MB / 0.749 GB, free: 148.6 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006304/0.7802, allocations: 248.9 kB / 0.7493 GB, free: 148.6 MB / 0.5105 GB Notification: Performance of SimCode: time 9.12e-07/0.7802, allocations: 3.938 kB / 0.7493 GB, free: 148.6 MB / 0.5105 GB Notification: Performance of Templates: time 0.0615/0.8417, allocations: 62.91 MB / 0.8107 GB, free: 87.21 MB / 0.5105 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches