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.00166/0.00166, allocations: 122.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001359/0.001359, allocations: 202 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2101/0.2101, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001528, allocations: 71.89 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2847/0.2863, allocations: 62.44 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01057/0.2969, allocations: 8.929 MB / 0.5392 GB, free: 6.438 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007157/0.3041, allocations: 3.541 MB / 0.5427 GB, free: 3.691 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001464/0.3056, allocations: 48.34 kB / 0.5427 GB, free: 3.684 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00351/0.3091, allocations: 1.664 MB / 0.5444 GB, free: 2.559 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004069/0.3132, allocations: 1.539 MB / 0.5459 GB, free: 1.496 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001543/0.3148, allocations: 0.557 MB / 0.5464 GB, free: 1.133 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004948/0.3198, allocations: 3.566 MB / 0.5499 GB, free: 13.92 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002885/0.3227, allocations: 2.204 MB / 0.552 GB, free: 11.66 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001848/0.3245, allocations: 1.09 MB / 0.5531 GB, free: 10.57 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002187/0.3267, allocations: 1.538 MB / 0.5546 GB, free: 9.023 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007229/0.3275, allocations: 220 kB / 0.5548 GB, free: 8.809 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002383/0.3299, allocations: 1.1 MB / 0.5559 GB, free: 7.707 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001603/0.3315, allocations: 1.41 MB / 0.5573 GB, free: 6.293 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00239/0.3339, allocations: 1.681 MB / 0.5589 GB, free: 4.602 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006285/0.3402, allocations: 5.54 MB / 0.5643 GB, free: 15.04 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.3402, allocations: 4 kB / 0.5643 GB, free: 15.04 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.3402, allocations: 0 / 0.5643 GB, free: 15.04 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001413/0.3404, allocations: 3.938 kB / 0.5643 GB, free: 15.04 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.00948/0.3499, allocations: 3.786 MB / 0.568 GB, free: 11.18 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/0.3499, allocations: 16.02 kB / 0.568 GB, free: 11.16 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001093/0.351, allocations: 0.55 MB / 0.5686 GB, free: 10.6 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09505/0.4461, allocations: 6.925 MB / 0.5753 GB, free: 3.664 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006337/0.4525, allocations: 2.381 MB / 0.5777 GB, free: 1.23 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000143/0.4527, allocations: 164.5 kB / 0.5778 GB, free: 1.066 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007481/0.4534, allocations: 227.7 kB / 0.578 GB, free: 0.8438 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01118/0.4646, allocations: 7.336 MB / 0.5852 GB, free: 8.883 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001045/0.4647, allocations: 43.58 kB / 0.5852 GB, free: 8.84 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004086/0.4652, allocations: 111.9 kB / 0.5853 GB, free: 8.73 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002517/0.4677, allocations: 1.539 MB / 0.5868 GB, free: 7.191 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01077/0.4785, allocations: 6.182 MB / 0.5929 GB, free: 0.9961 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03489/0.5134, allocations: 29.87 MB / 0.6221 GB, free: 2.195 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004625/0.5181, allocations: 2.169 MB / 0.6242 GB, free: 15.88 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001432/0.5195, allocations: 1.069 MB / 0.6252 GB, free: 14.8 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004093/0.52, allocations: 315.7 kB / 0.6255 GB, free: 14.44 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.771e-05/0.52, allocations: 50.94 kB / 0.6256 GB, free: 14.38 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 3.717e-06/0.52, allocations: 0 / 0.6256 GB, free: 14.38 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03357/0.5536, allocations: 10.87 MB / 0.6362 GB, free: 3.375 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/0.5537, allocations: 200.5 kB / 0.6364 GB, free: 3.137 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005207/0.559, allocations: 3.617 MB / 0.6399 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001494/0.5591, allocations: 41.7 kB / 0.6399 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001853/0.561, allocations: 2.558 MB / 0.6424 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005557/0.5616, allocations: 0.5248 MB / 0.643 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001431/0.563, allocations: 1.047 MB / 0.644 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001057/0.5631, allocations: 301.1 kB / 0.6443 GB, free: 10.99 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002414/0.5655, allocations: 1.63 MB / 0.6459 GB, free: 9.352 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004537/0.5701, allocations: 4.965 MB / 0.6507 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007731/0.5778, allocations: 7.174 MB / 0.6577 GB, free: 9.867 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.939e-05/0.5779, allocations: 36 kB / 0.6577 GB, free: 9.832 MB / 0.5137 GB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01115/0.5891, allocations: 6.565 MB / 0.6642 GB, free: 3.262 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.896e-05/0.5892, allocations: 56 kB / 0.6642 GB, free: 3.207 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00016/0.5894, allocations: 120.2 kB / 0.6643 GB, free: 3.09 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001002/0.5904, allocations: 400.5 kB / 0.6647 GB, free: 2.695 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003553/0.594, allocations: 1.185 MB / 0.6659 GB, free: 1.508 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003814/0.5978, allocations: 3.31 MB / 0.6691 GB, free: 14.05 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003326/0.6012, allocations: 287.5 kB / 0.6694 GB, free: 13.77 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005784/0.6017, allocations: 324 kB / 0.6697 GB, free: 13.46 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.002585/0.6043, allocations: 1.701 MB / 0.6713 GB, free: 11.75 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005675/0.6049, allocations: 296.1 kB / 0.6716 GB, free: 11.45 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003182/0.6081, allocations: 1.725 MB / 0.6733 GB, free: 9.715 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.596e-05/0.6082, allocations: 12 kB / 0.6733 GB, free: 9.703 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/0.6082, allocations: 7.938 kB / 0.6733 GB, free: 9.695 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/0.6082, allocations: 4.094 kB / 0.6733 GB, free: 9.691 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01037/0.6186, allocations: 5.25 MB / 0.6785 GB, free: 4.352 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.334e-05/0.6186, allocations: 4 kB / 0.6785 GB, free: 4.348 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009976/0.6196, allocations: 195.7 kB / 0.6786 GB, free: 4.156 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006944/0.6203, allocations: 232.9 kB / 0.6789 GB, free: 3.926 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001012/0.6204, allocations: 24 kB / 0.6789 GB, free: 3.902 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002979/0.6234, allocations: 2.683 MB / 0.6815 GB, free: 1.07 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.815e-06/0.6234, allocations: 8 kB / 0.6815 GB, free: 1.062 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005177/0.6286, allocations: 3.723 MB / 0.6852 GB, free: 13.31 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007762/0.6294, allocations: 353.1 kB / 0.6855 GB, free: 12.95 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004445/0.6299, allocations: 20 kB / 0.6855 GB, free: 12.93 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001219/0.6311, allocations: 63.91 kB / 0.6856 GB, free: 12.86 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001711/0.6313, allocations: 72.5 kB / 0.6856 GB, free: 12.79 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.1e-05/0.6314, allocations: 36.06 kB / 0.6857 GB, free: 12.76 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003598/0.635, allocations: 2.265 MB / 0.6879 GB, free: 10.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.81e-07/0.635, allocations: 0 / 0.6879 GB, free: 10.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003507/0.6385, allocations: 0.7539 MB / 0.6886 GB, free: 9.75 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.00549/0.644, allocations: 4.357 MB / 0.6929 GB, free: 5.352 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00579/0.6498, allocations: 3.932 MB / 0.6967 GB, free: 1.43 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.6499, allocations: 0 / 0.6967 GB, free: 1.43 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001419/0.6513, allocations: 1.064 MB / 0.6978 GB, free: 360 kB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002034/0.6533, allocations: 372.5 kB / 0.6981 GB, free: 15.98 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2509/0.9043, allocations: 36.41 MB / 0.7337 GB, free: 173.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002614/0.9069, allocations: 2.639 MB / 0.7362 GB, free: 172 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003285/0.9102, allocations: 1.706 MB / 0.7379 GB, free: 172 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001342/0.9116, allocations: 1.399 MB / 0.7393 GB, free: 170.8 MB / 0.5762 GB Notification: Performance of SimCode: time 7.92e-07/0.9116, allocations: 2.406 kB / 0.7393 GB, free: 170.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07421/0.9858, allocations: 54.12 MB / 0.7921 GB, free: 121.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.35/23.34, allocations: 3.984 kB / 0.7921 GB, free: 121.6 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