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.001688/0.001688, allocations: 118.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.002018/0.002018, allocations: 197.2 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.491/1.491, allocations: 227.4 MB / 247 MB, free: 10.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.232/0.232, allocations: 46.12 MB / 344.4 MB, free: 11.4 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002295/0.002295, allocations: 80.09 kB / 480.9 MB, free: 4.465 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.3189, allocations: 62.44 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01178/0.3308, allocations: 9.053 MB / 0.5395 GB, free: 6.258 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008327/0.3391, allocations: 3.564 MB / 0.5429 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0017/0.3409, allocations: 52.66 kB / 0.543 GB, free: 3.484 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004182/0.3451, allocations: 1.91 MB / 0.5449 GB, free: 2.199 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004507/0.3497, allocations: 1.574 MB / 0.5464 GB, free: 1.109 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001611/0.3513, allocations: 0.5657 MB / 0.5469 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005879/0.3572, allocations: 3.654 MB / 0.5505 GB, free: 13.27 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003413/0.3607, allocations: 2.43 MB / 0.5529 GB, free: 10.78 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001994/0.3627, allocations: 1.152 MB / 0.554 GB, free: 9.625 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002374/0.3651, allocations: 1.643 MB / 0.5556 GB, free: 7.977 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000615/0.3657, allocations: 240 kB / 0.5558 GB, free: 7.742 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002201/0.3679, allocations: 1.116 MB / 0.5569 GB, free: 6.625 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001557/0.3695, allocations: 1.504 MB / 0.5584 GB, free: 5.117 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00219/0.3717, allocations: 1.779 MB / 0.5601 GB, free: 3.328 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007241/0.379, allocations: 5.875 MB / 0.5659 GB, free: 13.43 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.379, allocations: 0 / 0.5659 GB, free: 13.43 MB / 430.1 MB Notification: Performance of FrontEnd: time 5.29e-06/0.379, allocations: 0 / 0.5659 GB, free: 13.43 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001312/0.3792, allocations: 3.938 kB / 0.5659 GB, free: 13.43 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.01003/0.3892, allocations: 4.058 MB / 0.5698 GB, free: 9.293 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.3893, allocations: 8.031 kB / 0.5698 GB, free: 9.285 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001091/0.3903, allocations: 0.5753 MB / 0.5704 GB, free: 8.699 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09388/0.4842, allocations: 6.966 MB / 0.5772 GB, free: 1.723 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00568/0.4899, allocations: 2.468 MB / 0.5796 GB, free: 15.2 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001614/0.4901, allocations: 176.8 kB / 0.5798 GB, free: 15.02 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000702/0.4909, allocations: 239.8 kB / 0.58 GB, free: 14.79 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01303/0.5039, allocations: 7.728 MB / 0.5876 GB, free: 6.414 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001084/0.504, allocations: 39.64 kB / 0.5876 GB, free: 6.375 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004428/0.5045, allocations: 111.9 kB / 0.5877 GB, free: 6.266 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002844/0.5073, allocations: 1.594 MB / 0.5893 GB, free: 4.672 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01253/0.5199, allocations: 6.457 MB / 0.5956 GB, free: 14.2 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03943/0.5594, allocations: 31.36 MB / 0.6262 GB, free: 13.87 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00532/0.5647, allocations: 2.412 MB / 0.6285 GB, free: 11.31 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001735/0.5665, allocations: 1.073 MB / 0.6296 GB, free: 10.23 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004336/0.567, allocations: 323.2 kB / 0.6299 GB, free: 9.859 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.889e-05/0.5671, allocations: 46.61 kB / 0.6299 GB, free: 9.805 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 3.857e-06/0.5671, allocations: 0 / 0.6299 GB, free: 9.805 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02336/0.5904, allocations: 8.546 MB / 0.6383 GB, free: 1.168 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001385/0.5906, allocations: 192.5 kB / 0.6385 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006697/0.5973, allocations: 3.77 MB / 0.6422 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002623/0.5976, allocations: 41.7 kB / 0.6422 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002618/0.6003, allocations: 2.834 MB / 0.645 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.00072/0.601, allocations: 0.508 MB / 0.6455 GB, free: 9.75 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001896/0.6029, allocations: 1.092 MB / 0.6465 GB, free: 8.648 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000126/0.6031, allocations: 305.1 kB / 0.6468 GB, free: 8.348 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002625/0.6057, allocations: 1.58 MB / 0.6484 GB, free: 6.762 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005783/0.6115, allocations: 5.145 MB / 0.6534 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009487/0.621, allocations: 7.315 MB / 0.6605 GB, free: 6.73 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001133/0.6212, allocations: 36 kB / 0.6606 GB, free: 6.695 MB / 0.5137 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.01346/0.6347, allocations: 6.656 MB / 0.6671 GB, free: 28 kB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001172/0.6348, allocations: 63.02 kB / 0.6671 GB, free: 15.96 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001513/0.635, allocations: 125.2 kB / 0.6672 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001023/0.636, allocations: 412.6 kB / 0.6676 GB, free: 15.44 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003834/0.6399, allocations: 1.216 MB / 0.6688 GB, free: 14.22 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004212/0.6441, allocations: 3.343 MB / 0.6721 GB, free: 10.74 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003734/0.6479, allocations: 287.6 kB / 0.6724 GB, free: 10.46 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008949/0.6488, allocations: 336 kB / 0.6727 GB, free: 10.13 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.003356/0.6522, allocations: 1.787 MB / 0.6744 GB, free: 8.332 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006784/0.6529, allocations: 321.8 kB / 0.6747 GB, free: 8.016 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00303/0.6559, allocations: 1.47 MB / 0.6762 GB, free: 6.539 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.359e-05/0.656, allocations: 15.98 kB / 0.6762 GB, free: 6.523 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.148e-05/0.656, allocations: 7.938 kB / 0.6762 GB, free: 6.516 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.416e-05/0.656, allocations: 3.984 kB / 0.6762 GB, free: 6.512 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01033/0.6663, allocations: 4.83 MB / 0.6809 GB, free: 1.609 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.669e-05/0.6664, allocations: 4 kB / 0.6809 GB, free: 1.605 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008507/0.6672, allocations: 159.8 kB / 0.6811 GB, free: 1.449 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007214/0.668, allocations: 224.6 kB / 0.6813 GB, free: 1.227 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001359/0.6681, allocations: 19.98 kB / 0.6813 GB, free: 1.207 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00344/0.6716, allocations: 2.704 MB / 0.6839 GB, free: 14.36 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.6716, allocations: 7.969 kB / 0.684 GB, free: 14.35 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005369/0.677, allocations: 3.302 MB / 0.6872 GB, free: 11.03 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009817/0.678, allocations: 374.8 kB / 0.6875 GB, free: 10.64 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005036/0.6785, allocations: 16 kB / 0.6876 GB, free: 10.62 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001133/0.6797, allocations: 51.94 kB / 0.6876 GB, free: 10.57 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002165/0.6799, allocations: 68.34 kB / 0.6877 GB, free: 10.51 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.764e-05/0.68, allocations: 28 kB / 0.6877 GB, free: 10.48 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00428/0.6843, allocations: 2.35 MB / 0.69 GB, free: 8.145 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.01e-07/0.6843, allocations: 0 / 0.69 GB, free: 8.145 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004509/0.6889, allocations: 0.7656 MB / 0.6907 GB, free: 7.379 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.005949/0.6948, allocations: 3.916 MB / 0.6946 GB, free: 3.422 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006868/0.7017, allocations: 3.81 MB / 0.6983 GB, free: 15.63 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.817e-06/0.7018, allocations: 4 kB / 0.6983 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001658/0.7035, allocations: 0.9541 MB / 0.6992 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002649/0.7061, allocations: 384.2 kB / 0.6996 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2863/0.9925, allocations: 37.2 MB / 0.7359 GB, free: 170.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003218/0.9958, allocations: 2.718 MB / 0.7386 GB, free: 169.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003554/0.9993, allocations: 1.703 MB / 0.7402 GB, free: 169.6 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001872/1.001, allocations: 1.455 MB / 0.7417 GB, free: 168.4 MB / 0.5762 GB Notification: Performance of SimCode: time 8.11e-07/1.001, allocations: 0 / 0.7417 GB, free: 168.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08782/1.089, allocations: 54.12 MB / 0.7945 GB, free: 118.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.03/24.12, allocations: 7.312 kB / 0.7945 GB, free: 118.7 MB / 0.5762 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