Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.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: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001285/0.001285, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001318/0.001318, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.4 MB / 247 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2217/0.2217, allocations: 46.11 MB / 344.3 MB, free: 11.45 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002249/0.002249, allocations: 75.88 kB / 480.9 MB, free: 4.508 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3159/0.3181, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01082/0.329, allocations: 8.917 MB / 0.5393 GB, free: 6.395 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007502/0.3365, allocations: 3.547 MB / 0.5428 GB, free: 3.645 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001507/0.3381, allocations: 46.91 kB / 0.5428 GB, free: 3.637 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003604/0.3417, allocations: 1.668 MB / 0.5445 GB, free: 2.508 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004546/0.3463, allocations: 1.54 MB / 0.546 GB, free: 1.445 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001429/0.3478, allocations: 0.5557 MB / 0.5465 GB, free: 1.082 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005539/0.3533, allocations: 3.568 MB / 0.55 GB, free: 13.84 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003228/0.3566, allocations: 2.203 MB / 0.5521 GB, free: 11.59 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001965/0.3586, allocations: 1.086 MB / 0.5532 GB, free: 10.5 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002224/0.3608, allocations: 1.538 MB / 0.5547 GB, free: 8.953 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005587/0.3614, allocations: 220 kB / 0.5549 GB, free: 8.738 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00224/0.3636, allocations: 1.092 MB / 0.556 GB, free: 7.645 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001507/0.3652, allocations: 1.399 MB / 0.5573 GB, free: 6.242 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00189/0.3671, allocations: 1.685 MB / 0.559 GB, free: 4.547 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007499/0.3746, allocations: 5.572 MB / 0.5644 GB, free: 14.95 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.468e-06/0.3746, allocations: 4 kB / 0.5644 GB, free: 14.95 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3746, allocations: 3.938 kB / 0.5644 GB, free: 14.95 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001287/0.3748, allocations: 0 / 0.5644 GB, free: 14.95 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: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.009253/0.384, allocations: 3.878 MB / 0.5682 GB, free: 10.99 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.044e-05/0.3841, allocations: 16.03 kB / 0.5682 GB, free: 10.98 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007194/0.3848, allocations: 0.5462 MB / 0.5688 GB, free: 10.42 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0944/0.4792, allocations: 6.939 MB / 0.5756 GB, free: 3.469 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005929/0.4852, allocations: 2.405 MB / 0.5779 GB, free: 1.012 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001478/0.4854, allocations: 156.5 kB / 0.5781 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005954/0.486, allocations: 235.6 kB / 0.5783 GB, free: 0.625 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01335/0.4993, allocations: 7.336 MB / 0.5854 GB, free: 8.664 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000109/0.4995, allocations: 39.64 kB / 0.5855 GB, free: 8.625 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003567/0.4999, allocations: 111.9 kB / 0.5856 GB, free: 8.516 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002993/0.5029, allocations: 1.543 MB / 0.5871 GB, free: 6.973 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01209/0.515, allocations: 6.178 MB / 0.5931 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03606/0.5511, allocations: 29.92 MB / 0.6223 GB, free: 1.941 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004643/0.5558, allocations: 2.173 MB / 0.6245 GB, free: 15.62 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001497/0.5573, allocations: 1.078 MB / 0.6255 GB, free: 14.53 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003968/0.5577, allocations: 319.6 kB / 0.6258 GB, free: 14.16 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.05e-05/0.5577, allocations: 39 kB / 0.6259 GB, free: 14.12 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 3.396e-06/0.5578, allocations: 0 / 0.6259 GB, free: 14.12 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03456/0.5923, allocations: 11.05 MB / 0.6367 GB, free: 2.949 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001428/0.5925, allocations: 196.6 kB / 0.6368 GB, free: 2.715 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005226/0.5977, allocations: 3.622 MB / 0.6404 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000175/0.5979, allocations: 41.89 kB / 0.6404 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002134/0.6001, allocations: 2.663 MB / 0.643 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000629/0.6007, allocations: 0.5583 MB / 0.6436 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001394/0.6021, allocations: 1.052 MB / 0.6446 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001286/0.6023, allocations: 301.1 kB / 0.6449 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002517/0.6048, allocations: 1.63 MB / 0.6465 GB, free: 8.797 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005217/0.61, allocations: 4.965 MB / 0.6513 GB, free: 2.145 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008973/0.619, allocations: 7.169 MB / 0.6583 GB, free: 9.32 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.586e-05/0.6191, allocations: 36 kB / 0.6584 GB, free: 9.285 MB / 0.5137 GB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01195/0.6311, allocations: 6.572 MB / 0.6648 GB, free: 2.703 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 8.997e-05/0.6312, allocations: 59.98 kB / 0.6648 GB, free: 2.645 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001287/0.6313, allocations: 116 kB / 0.6649 GB, free: 2.531 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000956/0.6323, allocations: 401.1 kB / 0.6653 GB, free: 2.137 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003801/0.6361, allocations: 1.185 MB / 0.6665 GB, free: 0.9492 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004117/0.6403, allocations: 3.326 MB / 0.6697 GB, free: 13.48 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003558/0.6438, allocations: 287.6 kB / 0.67 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006171/0.6445, allocations: 324 kB / 0.6703 GB, free: 12.89 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.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 (640): * Single equations (assignments): 636 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002693/0.6472, allocations: 1.705 MB / 0.672 GB, free: 11.17 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005532/0.6477, allocations: 313.9 kB / 0.6723 GB, free: 10.86 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003354/0.6511, allocations: 1.717 MB / 0.674 GB, free: 9.129 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.489e-05/0.6511, allocations: 12 kB / 0.674 GB, free: 9.117 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.18e-05/0.6512, allocations: 8.047 kB / 0.674 GB, free: 9.109 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/0.6512, allocations: 7.922 kB / 0.674 GB, free: 9.102 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009228/0.6604, allocations: 5.247 MB / 0.6791 GB, free: 3.766 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.719e-06/0.6604, allocations: 0 / 0.6791 GB, free: 3.766 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001006/0.6615, allocations: 191.7 kB / 0.6793 GB, free: 3.578 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007047/0.6622, allocations: 232.6 kB / 0.6795 GB, free: 3.348 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001042/0.6623, allocations: 23.98 kB / 0.6795 GB, free: 3.324 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003313/0.6656, allocations: 2.696 MB / 0.6822 GB, free: 492 kB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.261e-06/0.6656, allocations: 11.88 kB / 0.6822 GB, free: 480 kB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005802/0.6714, allocations: 3.729 MB / 0.6858 GB, free: 12.71 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008575/0.6723, allocations: 366.9 kB / 0.6862 GB, free: 12.33 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003313/0.6727, allocations: 16.06 kB / 0.6862 GB, free: 12.31 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001093/0.6738, allocations: 75.91 kB / 0.6863 GB, free: 12.24 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000199/0.674, allocations: 72.5 kB / 0.6863 GB, free: 12.17 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001019/0.6741, allocations: 35.91 kB / 0.6864 GB, free: 12.14 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00356/0.6777, allocations: 2.261 MB / 0.6886 GB, free: 9.887 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6777, allocations: 0 / 0.6886 GB, free: 9.887 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003864/0.6815, allocations: 0.7616 MB / 0.6893 GB, free: 9.125 MB / 0.545 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 (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.00615/0.6877, allocations: 4.372 MB / 0.6936 GB, free: 4.723 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00664/0.6944, allocations: 3.939 MB / 0.6974 GB, free: 0.7969 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.6944, allocations: 4 kB / 0.6974 GB, free: 0.793 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00163/0.696, allocations: 1.068 MB / 0.6985 GB, free: 15.71 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002228/0.6983, allocations: 370.3 kB / 0.6988 GB, free: 15.35 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2931/0.9914, allocations: 36.54 MB / 0.7345 GB, free: 172.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002516/0.9939, allocations: 2.642 MB / 0.7371 GB, free: 171.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003454/0.9974, allocations: 1.708 MB / 0.7388 GB, free: 171.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00161/0.999, allocations: 1.402 MB / 0.7401 GB, free: 170 MB / 0.5762 GB Notification: Performance of SimCode: time 9.11e-07/0.9991, allocations: 0 / 0.7401 GB, free: 170 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08814/1.087, allocations: 53.32 MB / 0.7922 GB, free: 121.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.52/23.61, allocations: 11.91 kB / 0.7922 GB, free: 121.4 MB / 0.5762 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches