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.001605/0.001605, allocations: 117.7 kB / 17.78 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.002059/0.00206, allocations: 204.6 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2207/0.2207, allocations: 46.1 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002681/0.002681, allocations: 79.86 kB / 480.8 MB, free: 4.535 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.3093, allocations: 62.43 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01167/0.321, allocations: 9.044 MB / 0.5393 GB, free: 6.309 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007951/0.329, allocations: 3.567 MB / 0.5428 GB, free: 3.543 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001653/0.3307, allocations: 48.72 kB / 0.5429 GB, free: 3.535 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004071/0.3348, allocations: 1.909 MB / 0.5447 GB, free: 2.25 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004277/0.3391, allocations: 1.574 MB / 0.5463 GB, free: 1.16 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001473/0.3406, allocations: 0.5673 MB / 0.5468 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005321/0.346, allocations: 3.651 MB / 0.5504 GB, free: 13.34 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003292/0.3493, allocations: 2.436 MB / 0.5528 GB, free: 10.85 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002077/0.3514, allocations: 1.156 MB / 0.5539 GB, free: 9.691 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00255/0.354, allocations: 1.639 MB / 0.5555 GB, free: 8.047 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000759/0.3547, allocations: 240 kB / 0.5557 GB, free: 7.812 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002493/0.3572, allocations: 1.116 MB / 0.5568 GB, free: 6.695 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001919/0.3592, allocations: 1.512 MB / 0.5583 GB, free: 5.18 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002705/0.3619, allocations: 1.775 MB / 0.56 GB, free: 3.395 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007619/0.3696, allocations: 5.855 MB / 0.5657 GB, free: 13.52 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.754e-06/0.3696, allocations: 0 / 0.5657 GB, free: 13.52 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.228e-06/0.3696, allocations: 4 kB / 0.5658 GB, free: 13.52 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000215/0.3699, allocations: 0 / 0.5658 GB, free: 13.52 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: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.0121/0.382, allocations: 3.966 MB / 0.5696 GB, free: 9.48 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.382, allocations: 8.031 kB / 0.5696 GB, free: 9.473 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001722/0.3838, allocations: 0.5753 MB / 0.5702 GB, free: 8.887 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0794/0.4632, allocations: 6.944 MB / 0.577 GB, free: 1.93 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005485/0.4687, allocations: 2.451 MB / 0.5794 GB, free: 15.43 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001568/0.4689, allocations: 180.8 kB / 0.5795 GB, free: 15.25 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008105/0.4697, allocations: 235.7 kB / 0.5798 GB, free: 15.02 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01216/0.4819, allocations: 7.728 MB / 0.5873 GB, free: 6.637 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001226/0.4821, allocations: 39.59 kB / 0.5874 GB, free: 6.598 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006043/0.4827, allocations: 115.9 kB / 0.5875 GB, free: 6.484 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002683/0.4854, allocations: 1.586 MB / 0.589 GB, free: 4.898 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01182/0.4972, allocations: 6.468 MB / 0.5953 GB, free: 14.41 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03883/0.5361, allocations: 31.3 MB / 0.6259 GB, free: 14.14 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005087/0.5412, allocations: 2.415 MB / 0.6282 GB, free: 11.58 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001546/0.5428, allocations: 1.064 MB / 0.6293 GB, free: 10.5 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004162/0.5433, allocations: 327.2 kB / 0.6296 GB, free: 10.13 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.247e-05/0.5433, allocations: 42.56 kB / 0.6296 GB, free: 10.08 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 4.168e-06/0.5433, allocations: 0 / 0.6296 GB, free: 10.08 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02395/0.5673, allocations: 8.368 MB / 0.6378 GB, free: 1.602 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001189/0.5674, allocations: 192.5 kB / 0.638 GB, free: 1.367 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006499/0.574, allocations: 3.761 MB / 0.6417 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000218/0.5742, allocations: 41.7 kB / 0.6417 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002267/0.5765, allocations: 2.716 MB / 0.6444 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000633/0.5772, allocations: 494 kB / 0.6448 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002096/0.5793, allocations: 1.091 MB / 0.6459 GB, free: 9.219 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001001/0.5794, allocations: 309.1 kB / 0.6462 GB, free: 8.914 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00263/0.582, allocations: 1.58 MB / 0.6477 GB, free: 7.328 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005264/0.5873, allocations: 5.145 MB / 0.6528 GB, free: 392 kB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008108/0.5955, allocations: 7.319 MB / 0.6599 GB, free: 7.293 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001006/0.5956, allocations: 36 kB / 0.6599 GB, free: 7.258 MB / 0.5138 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.0119/0.6075, allocations: 6.623 MB / 0.6664 GB, free: 0.6211 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.000149/0.6077, allocations: 62.5 kB / 0.6665 GB, free: 0.5625 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002115/0.6079, allocations: 128.8 kB / 0.6666 GB, free: 448 kB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001076/0.609, allocations: 400.6 kB / 0.667 GB, free: 44 kB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003795/0.6128, allocations: 1.228 MB / 0.6682 GB, free: 14.81 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003969/0.6168, allocations: 3.333 MB / 0.6714 GB, free: 11.34 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003637/0.6205, allocations: 287.5 kB / 0.6717 GB, free: 11.06 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007064/0.6212, allocations: 340 kB / 0.672 GB, free: 10.73 MB / 0.5294 GB 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.003153/0.6244, allocations: 1.787 MB / 0.6738 GB, free: 8.926 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000708/0.6251, allocations: 304 kB / 0.6741 GB, free: 8.625 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003061/0.6282, allocations: 1.474 MB / 0.6755 GB, free: 7.145 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.389e-05/0.6282, allocations: 16 kB / 0.6755 GB, free: 7.129 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.818e-06/0.6283, allocations: 3.938 kB / 0.6755 GB, free: 7.125 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.421e-05/0.6283, allocations: 7.984 kB / 0.6755 GB, free: 7.117 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009627/0.6379, allocations: 4.83 MB / 0.6802 GB, free: 2.215 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.394e-05/0.638, allocations: 0 / 0.6802 GB, free: 2.215 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008518/0.6388, allocations: 159.8 kB / 0.6804 GB, free: 2.059 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007238/0.6396, allocations: 224.6 kB / 0.6806 GB, free: 1.836 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000143/0.6397, allocations: 23.98 kB / 0.6806 GB, free: 1.812 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00313/0.6429, allocations: 2.7 MB / 0.6833 GB, free: 14.97 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.6429, allocations: 0 / 0.6833 GB, free: 14.97 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005064/0.648, allocations: 3.281 MB / 0.6865 GB, free: 11.66 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008316/0.6488, allocations: 357 kB / 0.6868 GB, free: 11.29 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005785/0.6494, allocations: 20 kB / 0.6868 GB, free: 11.27 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001205/0.6507, allocations: 47.94 kB / 0.6869 GB, free: 11.23 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002271/0.6509, allocations: 72.3 kB / 0.6869 GB, free: 11.16 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.981e-05/0.651, allocations: 32 kB / 0.687 GB, free: 11.12 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004032/0.6551, allocations: 2.346 MB / 0.6893 GB, free: 8.793 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.7e-07/0.6551, allocations: 0 / 0.6893 GB, free: 8.793 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004429/0.6595, allocations: 0.7695 MB / 0.69 GB, free: 8.023 MB / 0.545 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.005624/0.6652, allocations: 3.89 MB / 0.6938 GB, free: 4.09 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0065/0.6717, allocations: 3.828 MB / 0.6976 GB, free: 288 kB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.6717, allocations: 0 / 0.6976 GB, free: 288 kB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001607/0.6734, allocations: 0.9509 MB / 0.6985 GB, free: 15.32 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002814/0.6762, allocations: 368.2 kB / 0.6988 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2786/0.9549, allocations: 37.07 MB / 0.735 GB, free: 171.1 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003366/0.9583, allocations: 2.712 MB / 0.7377 GB, free: 169.9 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.003515/0.9618, allocations: 1.71 MB / 0.7394 GB, free: 169.9 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001858/0.9637, allocations: 1.453 MB / 0.7408 GB, free: 168.7 MB / 0.5763 GB Notification: Performance of SimCode: time 7.71e-07/0.9637, allocations: 2.906 kB / 0.7408 GB, free: 168.7 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08312/1.047, allocations: 54.9 MB / 0.7944 GB, free: 118.3 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.19/24.24, allocations: 3.938 kB / 0.7944 GB, free: 118.3 MB / 0.5763 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