Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.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.Distance2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001146/0.001146, allocations: 106.9 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001228/0.001228, allocations: 205.8 kB / 18.27 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246.4 MB, free: 10.85 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2255/0.2255, allocations: 46.1 MB / 343.8 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00258/0.002581, allocations: 70.3 kB / 417.1 MB, free: 20.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1418/0.1444, allocations: 62.44 MB / 479.6 MB, free: 5.539 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.03615/0.1806, allocations: 33.33 MB / 0.5009 GB, free: 4.07 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2794/0.46, allocations: 7.459 MB / 0.5082 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00782/0.4679, allocations: 138.7 kB / 0.5083 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005078/0.473, allocations: 1.835 MB / 0.5101 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004985/0.478, allocations: 1.471 MB / 0.5115 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001495/0.4795, allocations: 0.5322 MB / 0.5121 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006161/0.4857, allocations: 3.874 MB / 0.5158 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003748/0.4895, allocations: 2.567 MB / 0.5184 GB, free: 9.742 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002222/0.4917, allocations: 1.173 MB / 0.5195 GB, free: 9.469 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002459/0.4942, allocations: 1.839 MB / 0.5213 GB, free: 8.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005281/0.4947, allocations: 244 kB / 0.5215 GB, free: 8.977 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002208/0.497, allocations: 1.126 MB / 0.5226 GB, free: 8.816 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001602/0.4986, allocations: 1.535 MB / 0.5241 GB, free: 8.293 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00167/0.5002, allocations: 1.806 MB / 0.5259 GB, free: 7.043 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005581/0.5058, allocations: 5.7 MB / 0.5315 GB, free: 3.441 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.806e-06/0.5059, allocations: 2.531 kB / 0.5315 GB, free: 3.441 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.5059, allocations: 0 / 0.5315 GB, free: 3.441 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001805/0.5061, allocations: 0 / 0.5315 GB, free: 3.441 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: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.01016/0.5162, allocations: 3.958 MB / 0.5353 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.733e-05/0.5163, allocations: 8.688 kB / 0.5353 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009017/0.5172, allocations: 0.5764 MB / 0.5359 GB, free: 368 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08262/0.5998, allocations: 6.951 MB / 0.5427 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006714/0.6066, allocations: 2.424 MB / 0.5451 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000199/0.6068, allocations: 177.5 kB / 0.5452 GB, free: 9.676 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001146/0.608, allocations: 235.6 kB / 0.5454 GB, free: 9.477 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01419/0.6222, allocations: 7.725 MB / 0.553 GB, free: 1.203 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001317/0.6224, allocations: 39.69 kB / 0.553 GB, free: 1.164 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006089/0.623, allocations: 119.9 kB / 0.5531 GB, free: 1.078 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002705/0.6257, allocations: 1.588 MB / 0.5547 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0122/0.6379, allocations: 6.453 MB / 0.561 GB, free: 9.031 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03959/0.6776, allocations: 31.44 MB / 0.5917 GB, free: 8.781 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004781/0.6824, allocations: 2.409 MB / 0.594 GB, free: 6.227 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001419/0.6838, allocations: 1.069 MB / 0.5951 GB, free: 5.145 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003517/0.6842, allocations: 335.4 kB / 0.5954 GB, free: 4.766 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.325e-05/0.6842, allocations: 42.5 kB / 0.5955 GB, free: 4.715 MB / 446.1 MB Notification: Performance of pre-optimization done (n=104): time 3.657e-06/0.6843, allocations: 0 / 0.5955 GB, free: 4.715 MB / 446.1 MB Notification: Performance of matching and sorting (n=118): time 0.02299/0.7073, allocations: 8.362 MB / 0.6036 GB, free: 12.25 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.982e-05/0.7074, allocations: 188.5 kB / 0.6038 GB, free: 12.02 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006843/0.7142, allocations: 3.757 MB / 0.6075 GB, free: 8.27 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001903/0.7144, allocations: 41.7 kB / 0.6075 GB, free: 8.223 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002213/0.7167, allocations: 2.72 MB / 0.6102 GB, free: 5.504 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006348/0.7173, allocations: 492.1 kB / 0.6106 GB, free: 5.027 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001744/0.7191, allocations: 1.093 MB / 0.6117 GB, free: 3.926 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.581e-05/0.7192, allocations: 301.1 kB / 0.612 GB, free: 3.629 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002339/0.7215, allocations: 1.584 MB / 0.6135 GB, free: 2.039 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004778/0.7263, allocations: 5.141 MB / 0.6186 GB, free: 11.1 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008578/0.7349, allocations: 7.326 MB / 0.6257 GB, free: 2.004 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001139/0.7351, allocations: 40 kB / 0.6257 GB, free: 1.965 MB / 478.1 MB Notification: Performance of matching and sorting (n=698) (initialization): time 0.01516/0.7502, allocations: 6.619 MB / 0.6322 GB, free: 11.33 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001491/0.7504, allocations: 63.19 kB / 0.6323 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002317/0.7507, allocations: 132 kB / 0.6324 GB, free: 11.14 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001024/0.7517, allocations: 396.6 kB / 0.6328 GB, free: 10.75 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003938/0.7557, allocations: 1.232 MB / 0.634 GB, free: 9.52 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003996/0.7597, allocations: 3.331 MB / 0.6372 GB, free: 6.051 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004609/0.7643, allocations: 291.4 kB / 0.6375 GB, free: 5.766 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001367/0.7657, allocations: 340 kB / 0.6378 GB, free: 5.434 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 577 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.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 (663): * Single equations (assignments): 659 * 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.004309/0.7701, allocations: 1.783 MB / 0.6396 GB, free: 3.641 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009055/0.771, allocations: 308 kB / 0.6399 GB, free: 3.336 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00319/0.7742, allocations: 1.466 MB / 0.6413 GB, free: 1.859 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.973e-05/0.7742, allocations: 20 kB / 0.6413 GB, free: 1.84 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-05/0.7743, allocations: 0 / 0.6413 GB, free: 1.84 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.645e-05/0.7743, allocations: 11.92 kB / 0.6413 GB, free: 1.828 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01126/0.7855, allocations: 4.857 MB / 0.6461 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.374e-05/0.7856, allocations: 4.375 kB / 0.6461 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008114/0.7864, allocations: 159.8 kB / 0.6462 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006999/0.7871, allocations: 224.6 kB / 0.6464 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001176/0.7873, allocations: 23.94 kB / 0.6465 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003112/0.7904, allocations: 2.698 MB / 0.6491 GB, free: 9.68 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.7904, allocations: 3.938 kB / 0.6491 GB, free: 9.676 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004812/0.7952, allocations: 3.276 MB / 0.6523 GB, free: 6.371 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001005/0.7963, allocations: 357 kB / 0.6526 GB, free: 6 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006871/0.797, allocations: 16 kB / 0.6527 GB, free: 5.984 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001369/0.7983, allocations: 54.2 kB / 0.6527 GB, free: 5.934 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000205/0.7986, allocations: 68.34 kB / 0.6528 GB, free: 5.867 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.924e-05/0.7987, allocations: 36.06 kB / 0.6528 GB, free: 5.832 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004572/0.8032, allocations: 2.343 MB / 0.6551 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.8e-07/0.8033, allocations: 0 / 0.6551 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004821/0.8081, allocations: 0.7659 MB / 0.6558 GB, free: 2.738 MB / 0.4981 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 (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.005513/0.8136, allocations: 3.912 MB / 0.6597 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007123/0.8208, allocations: 4.099 MB / 0.6637 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.536e-06/0.8208, allocations: 4 kB / 0.6637 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001517/0.8223, allocations: 0.9515 MB / 0.6646 GB, free: 9.738 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003004/0.8253, allocations: 378 kB / 0.665 GB, free: 9.371 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07101/0.8964, allocations: 42.87 MB / 0.7068 GB, free: 7.562 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003865/0.9003, allocations: 2.72 MB / 0.7095 GB, free: 4.816 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004341/0.9046, allocations: 1.695 MB / 0.7111 GB, free: 3.117 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002493/0.9072, allocations: 1.46 MB / 0.7126 GB, free: 1.656 MB / 0.5606 GB Notification: Performance of SimCode: time 9.61e-07/0.9072, allocations: 0 / 0.7126 GB, free: 1.656 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.315/1.222, allocations: 57.6 MB / 0.7688 GB, free: 181 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001438/1.222, allocations: 209.3 kB / 0.769 GB, free: 180.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.585/4.807, allocations: 7.938 kB / 0.769 GB, free: 180.7 MB / 0.5606 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-10 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches