Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001192/0.001191, allocations: 110.3 kB / 16.41 MB, free: 6.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001338/0.001339, allocations: 185.5 kB / 17.34 MB, free: 5.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.344/1.344, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2271/0.2271, allocations: 43.53 MB / 314.1 MB, free: 464 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 69.47 kB / 441.3 MB, free: 6.172 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09446/0.09598, allocations: 57.78 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01066/0.1067, allocations: 10.02 MB / 0.4972 GB, free: 2.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007345/0.1141, allocations: 3.7 MB / 0.5008 GB, free: 14.54 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001365/0.1155, allocations: 59.81 kB / 0.5008 GB, free: 14.48 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003887/0.1194, allocations: 1.943 MB / 0.5027 GB, free: 12.53 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004342/0.1238, allocations: 1.751 MB / 0.5044 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001418/0.1252, allocations: 0.5653 MB / 0.505 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005474/0.1307, allocations: 3.739 MB / 0.5087 GB, free: 6.457 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004439/0.1352, allocations: 2.558 MB / 0.5111 GB, free: 3.844 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002797/0.1381, allocations: 1.281 MB / 0.5124 GB, free: 2.559 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002895/0.141, allocations: 1.822 MB / 0.5142 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00096/0.142, allocations: 276 kB / 0.5144 GB, free: 472 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002597/0.1446, allocations: 1.155 MB / 0.5156 GB, free: 15.3 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00206/0.1467, allocations: 1.691 MB / 0.5172 GB, free: 13.61 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002941/0.1496, allocations: 2.012 MB / 0.5192 GB, free: 11.59 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008371/0.158, allocations: 6.571 MB / 0.5256 GB, free: 4.992 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.1581, allocations: 0 / 0.5256 GB, free: 4.992 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1581, allocations: 0 / 0.5256 GB, free: 4.992 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001897/0.1583, allocations: 0 / 0.5256 GB, free: 4.992 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.01115/0.1694, allocations: 4.343 MB / 0.5298 GB, free: 0.582 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.1695, allocations: 15.89 kB / 0.5299 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.1877/0.3572, allocations: 0.6419 MB / 0.5305 GB, free: 37.69 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08024/0.4375, allocations: 7.034 MB / 0.5374 GB, free: 37.48 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005988/0.4435, allocations: 2.847 MB / 0.5401 GB, free: 36.84 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001597/0.4437, allocations: 195.8 kB / 0.5403 GB, free: 36.84 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008662/0.4446, allocations: 260.5 kB / 0.5406 GB, free: 36.83 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01245/0.457, allocations: 8.694 MB / 0.5491 GB, free: 32.8 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001119/0.4572, allocations: 39.2 kB / 0.5491 GB, free: 32.78 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003716/0.4575, allocations: 126.8 kB / 0.5492 GB, free: 32.73 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002713/0.4603, allocations: 1.838 MB / 0.551 GB, free: 32.01 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01056/0.4708, allocations: 7.34 MB / 0.5582 GB, free: 27.39 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02945/0.5003, allocations: 33.83 MB / 0.5912 GB, free: 8.676 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00473/0.5051, allocations: 2.522 MB / 0.5937 GB, free: 6 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001401/0.5065, allocations: 1.122 MB / 0.5948 GB, free: 4.867 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000343/0.5069, allocations: 335.8 kB / 0.5951 GB, free: 4.484 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.606e-05/0.5069, allocations: 43.45 kB / 0.5951 GB, free: 4.434 MB / 430.1 MB Notification: Performance of pre-optimization done (n=119): time 4.819e-06/0.5069, allocations: 4 kB / 0.5951 GB, free: 4.43 MB / 430.1 MB Notification: Performance of matching and sorting (n=133): time 0.02306/0.53, allocations: 8.944 MB / 0.6039 GB, free: 11.39 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001536/0.5302, allocations: 200.5 kB / 0.6041 GB, free: 11.15 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00643/0.5366, allocations: 3.974 MB / 0.608 GB, free: 7.195 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001824/0.5368, allocations: 49.7 kB / 0.608 GB, free: 7.141 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002049/0.5389, allocations: 2.972 MB / 0.6109 GB, free: 4.129 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006149/0.5395, allocations: 0.5365 MB / 0.6114 GB, free: 3.586 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001948/0.5415, allocations: 1.17 MB / 0.6126 GB, free: 2.402 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.408e-05/0.5416, allocations: 301.1 kB / 0.6129 GB, free: 2.105 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002642/0.5442, allocations: 1.694 MB / 0.6145 GB, free: 416 kB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004942/0.5492, allocations: 5.525 MB / 0.6199 GB, free: 8.953 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008011/0.5572, allocations: 7.848 MB / 0.6276 GB, free: 15.2 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001061/0.5574, allocations: 40 kB / 0.6276 GB, free: 15.16 MB / 478.1 MB Notification: Performance of matching and sorting (n=751) (initialization): time 0.01227/0.5696, allocations: 7.088 MB / 0.6345 GB, free: 8.062 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001698/0.5698, allocations: 67.94 kB / 0.6346 GB, free: 7.996 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002079/0.5701, allocations: 136 kB / 0.6347 GB, free: 7.863 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001044/0.5711, allocations: 416.6 kB / 0.6351 GB, free: 7.453 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004064/0.5752, allocations: 1.326 MB / 0.6364 GB, free: 6.125 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004167/0.5794, allocations: 3.354 MB / 0.6397 GB, free: 2.629 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003994/0.5834, allocations: 303.6 kB / 0.64 GB, free: 2.332 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008515/0.5843, allocations: 375.8 kB / 0.6403 GB, free: 1.969 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,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 (716): * Single equations (assignments): 712 * 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.003391/0.5877, allocations: 1.939 MB / 0.6422 GB, free: 16 kB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007427/0.5884, allocations: 335.8 kB / 0.6426 GB, free: 15.68 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003425/0.5919, allocations: 1.706 MB / 0.6442 GB, free: 13.95 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.638e-05/0.5919, allocations: 12 kB / 0.6442 GB, free: 13.94 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/0.5919, allocations: 4 kB / 0.6442 GB, free: 13.94 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.726e-05/0.592, allocations: 11.97 kB / 0.6442 GB, free: 13.93 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009939/0.6019, allocations: 5.425 MB / 0.6495 GB, free: 8.418 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.094e-05/0.6019, allocations: 3.984 kB / 0.6495 GB, free: 8.414 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008848/0.6028, allocations: 179.8 kB / 0.6497 GB, free: 8.238 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006518/0.6035, allocations: 232.7 kB / 0.6499 GB, free: 8.008 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.456e-05/0.6036, allocations: 20 kB / 0.65 GB, free: 7.988 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002876/0.6065, allocations: 2.699 MB / 0.6526 GB, free: 5.148 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.6065, allocations: 0 / 0.6526 GB, free: 5.148 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004859/0.6114, allocations: 3.559 MB / 0.6561 GB, free: 1.555 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00113/0.6125, allocations: 0.5278 MB / 0.6566 GB, free: 1.004 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005195/0.613, allocations: 20 kB / 0.6566 GB, free: 0.9844 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001194/0.6142, allocations: 59.92 kB / 0.6567 GB, free: 0.9258 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001601/0.6144, allocations: 76.47 kB / 0.6567 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.736e-05/0.6145, allocations: 39.94 kB / 0.6568 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003714/0.6182, allocations: 2.481 MB / 0.6592 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6182, allocations: 0 / 0.6592 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004033/0.6223, allocations: 0.8541 MB / 0.66 GB, free: 13.5 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (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.005169/0.6275, allocations: 4.162 MB / 0.6641 GB, free: 9.293 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.006186/0.6337, allocations: 4.115 MB / 0.6681 GB, free: 5.191 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.311e-06/0.6337, allocations: 3.938 kB / 0.6681 GB, free: 5.188 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001393/0.6351, allocations: 1.013 MB / 0.6691 GB, free: 4.164 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002319/0.6374, allocations: 410.5 kB / 0.6695 GB, free: 3.777 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05713/0.6946, allocations: 40.15 MB / 0.7087 GB, free: 5.773 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004016/0.6986, allocations: 2.952 MB / 0.7116 GB, free: 2.793 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004228/0.7029, allocations: 1.814 MB / 0.7134 GB, free: 0.9688 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002417/0.7053, allocations: 1.655 MB / 0.715 GB, free: 15.31 MB / 0.5606 GB Notification: Performance of SimCode: time 7.42e-07/0.7053, allocations: 0 / 0.715 GB, free: 15.31 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.321/1.026, allocations: 58.66 MB / 0.7723 GB, free: 189.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.4/19.43, allocations: 2.75 kB / 0.7723 GB, free: 189.7 MB / 0.5762 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-10 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches