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.001513/0.001513, allocations: 105.4 kB / 17.32 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00199/0.00199, allocations: 209.8 kB / 18.26 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 227.4 MB / 246.4 MB, free: 9.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2199/0.2199, allocations: 46.11 MB / 343.8 MB, free: 11.56 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 76.84 kB / 417.2 MB, free: 19.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.131, allocations: 62.44 MB / 479.6 MB, free: 5.527 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.0307/0.1617, allocations: 29.73 MB / 0.4974 GB, free: 7.676 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01657/0.1783, allocations: 6.905 MB / 0.5041 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006442/0.1848, allocations: 123.7 kB / 0.5042 GB, free: 0.625 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2462/0.431, allocations: 1.583 MB / 0.5058 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004248/0.4353, allocations: 1.441 MB / 0.5072 GB, free: 10.58 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00147/0.4368, allocations: 0.5264 MB / 0.5077 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006683/0.4435, allocations: 3.777 MB / 0.5114 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003903/0.4475, allocations: 2.314 MB / 0.5137 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002661/0.4502, allocations: 1.105 MB / 0.5147 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003228/0.4534, allocations: 1.727 MB / 0.5164 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007173/0.4541, allocations: 223 kB / 0.5166 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002674/0.4568, allocations: 1.112 MB / 0.5177 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001766/0.4586, allocations: 1.428 MB / 0.5191 GB, free: 9.965 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001996/0.4606, allocations: 1.706 MB / 0.5208 GB, free: 9.359 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006355/0.467, allocations: 5.407 MB / 0.5261 GB, free: 6.961 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.467, allocations: 0 / 0.5261 GB, free: 6.961 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.467, allocations: 0 / 0.5261 GB, free: 6.961 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001445/0.4672, allocations: 1.5 kB / 0.5261 GB, free: 6.961 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: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.01115/0.4783, allocations: 3.787 MB / 0.5298 GB, free: 4.367 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.675e-05/0.4784, allocations: 9.625 kB / 0.5298 GB, free: 4.367 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001249/0.4797, allocations: 0.5442 MB / 0.5303 GB, free: 4.012 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08087/0.5606, allocations: 6.923 MB / 0.5371 GB, free: 1.305 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005712/0.5663, allocations: 2.366 MB / 0.5394 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001532/0.5665, allocations: 164.4 kB / 0.5395 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009803/0.5675, allocations: 213.3 kB / 0.5397 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01418/0.5817, allocations: 7.347 MB / 0.5469 GB, free: 7.402 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000132/0.5818, allocations: 37.16 kB / 0.5469 GB, free: 7.383 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006138/0.5825, allocations: 108.4 kB / 0.547 GB, free: 7.305 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002723/0.5852, allocations: 1.538 MB / 0.5486 GB, free: 5.797 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01296/0.5982, allocations: 6.181 MB / 0.5546 GB, free: 15.76 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04627/0.6445, allocations: 29.98 MB / 0.5839 GB, free: 1.223 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005264/0.6498, allocations: 2.166 MB / 0.586 GB, free: 14.92 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001534/0.6514, allocations: 1.081 MB / 0.587 GB, free: 13.83 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004254/0.6518, allocations: 320.1 kB / 0.5873 GB, free: 13.46 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.463e-05/0.6519, allocations: 53.86 kB / 0.5874 GB, free: 13.41 MB / 446.1 MB Notification: Performance of pre-optimization done (n=108): time 4.488e-06/0.6519, allocations: 0 / 0.5874 GB, free: 13.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=132): time 0.03729/0.6892, allocations: 10.87 MB / 0.598 GB, free: 2.461 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001424/0.6894, allocations: 192.6 kB / 0.5982 GB, free: 2.23 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007754/0.6972, allocations: 3.62 MB / 0.6017 GB, free: 14.61 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002941/0.6975, allocations: 45.7 kB / 0.6018 GB, free: 14.56 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002308/0.6998, allocations: 2.56 MB / 0.6043 GB, free: 12 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007674/0.7006, allocations: 0.5292 MB / 0.6048 GB, free: 11.48 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002169/0.7028, allocations: 1.039 MB / 0.6058 GB, free: 10.43 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.7029, allocations: 301.1 kB / 0.6061 GB, free: 10.13 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00275/0.7057, allocations: 1.63 MB / 0.6077 GB, free: 8.492 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004953/0.7106, allocations: 4.971 MB / 0.6125 GB, free: 1.895 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008535/0.7192, allocations: 7.172 MB / 0.6195 GB, free: 9.379 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000149/0.7194, allocations: 36 kB / 0.6196 GB, free: 9.344 MB / 478.1 MB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01461/0.734, allocations: 6.571 MB / 0.626 GB, free: 2.77 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001688/0.7342, allocations: 56 kB / 0.626 GB, free: 2.715 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001957/0.7344, allocations: 116 kB / 0.6262 GB, free: 2.602 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001146/0.7356, allocations: 401.1 kB / 0.6265 GB, free: 2.207 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004209/0.7398, allocations: 1.181 MB / 0.6277 GB, free: 1.023 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004211/0.744, allocations: 3.324 MB / 0.6309 GB, free: 13.56 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004574/0.7486, allocations: 283.5 kB / 0.6312 GB, free: 13.29 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001082/0.7497, allocations: 327.2 kB / 0.6315 GB, free: 12.97 MB / 494.1 MB 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.004279/0.754, allocations: 1.697 MB / 0.6332 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000914/0.755, allocations: 300.1 kB / 0.6335 GB, free: 10.96 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003769/0.7587, allocations: 1.721 MB / 0.6351 GB, free: 9.227 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.991e-05/0.7588, allocations: 19.98 kB / 0.6352 GB, free: 9.207 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-05/0.7588, allocations: 0 / 0.6352 GB, free: 9.207 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.949e-05/0.7588, allocations: 11.92 kB / 0.6352 GB, free: 9.195 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01253/0.7714, allocations: 5.302 MB / 0.6404 GB, free: 3.832 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.766e-05/0.7714, allocations: 3.938 kB / 0.6404 GB, free: 3.828 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001035/0.7725, allocations: 187.8 kB / 0.6405 GB, free: 3.645 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007594/0.7733, allocations: 232.6 kB / 0.6408 GB, free: 3.414 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001582/0.7734, allocations: 27.98 kB / 0.6408 GB, free: 3.387 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003285/0.7767, allocations: 2.694 MB / 0.6434 GB, free: 0.5508 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.7768, allocations: 4 kB / 0.6434 GB, free: 0.5469 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005688/0.7824, allocations: 3.712 MB / 0.647 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001181/0.7837, allocations: 353.1 kB / 0.6474 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008333/0.7845, allocations: 24 kB / 0.6474 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001728/0.7863, allocations: 63.91 kB / 0.6475 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002269/0.7865, allocations: 68.5 kB / 0.6475 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001156/0.7866, allocations: 39.91 kB / 0.6476 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005067/0.7917, allocations: 2.269 MB / 0.6498 GB, free: 9.996 MB / 0.4981 GB Notification: Performance of sort global known variables: time 7.51e-07/0.7917, allocations: 0 / 0.6498 GB, free: 9.996 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005653/0.7974, allocations: 0.7539 MB / 0.6505 GB, free: 9.242 MB / 0.4981 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.006651/0.8041, allocations: 4.339 MB / 0.6548 GB, free: 4.867 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007746/0.8118, allocations: 4.295 MB / 0.659 GB, free: 0.5781 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.155e-06/0.8119, allocations: 0 / 0.659 GB, free: 0.5781 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001665/0.8135, allocations: 1.061 MB / 0.66 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003383/0.8169, allocations: 366.9 kB / 0.6603 GB, free: 15.15 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07803/0.895, allocations: 41.96 MB / 0.7013 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004399/0.8994, allocations: 2.631 MB / 0.7039 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004799/0.9043, allocations: 1.683 MB / 0.7055 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002476/0.9068, allocations: 1.409 MB / 0.7069 GB, free: 8.898 MB / 0.5606 GB Notification: Performance of SimCode: time 1.433e-06/0.9068, allocations: 0 / 0.7069 GB, free: 8.898 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2988/1.206, allocations: 57.1 MB / 0.7627 GB, free: 188 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001871/1.206, allocations: 216.8 kB / 0.7629 GB, free: 187.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.441/4.647, allocations: 0 / 0.7629 GB, free: 187.8 MB / 0.5606 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