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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001819/0.001819, allocations: 120.1 kB / 18.49 MB, free: 4.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002185/0.002185, allocations: 214.2 kB / 21.45 MB, free: 1.637 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.462/1.462, allocations: 230.4 MB / 254.7 MB, free: 15.04 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2251/0.2251, allocations: 46.92 MB / 357.7 MB, free: 10.19 MB / 286.1 MB " [Timeout remaining time 180] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002524/0.002524, allocations: 75.88 kB / 0.4916 GB, free: 7.742 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.1255, allocations: 66.05 MB / 0.5561 GB, free: 5.559 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01233/0.1378, allocations: 9.088 MB / 0.565 GB, free: 12.42 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.008034/0.1458, allocations: 3.594 MB / 0.5685 GB, free: 8.812 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001447/0.1473, allocations: 55.75 kB / 0.5686 GB, free: 8.758 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004424/0.1517, allocations: 1.931 MB / 0.5705 GB, free: 6.82 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004619/0.1563, allocations: 1.612 MB / 0.572 GB, free: 5.203 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001794/0.1581, allocations: 0.5614 MB / 0.5726 GB, free: 4.641 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00611/0.1642, allocations: 3.673 MB / 0.5762 GB, free: 0.9609 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003544/0.1678, allocations: 2.07 MB / 0.5782 GB, free: 14.84 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002585/0.1703, allocations: 1.195 MB / 0.5794 GB, free: 13.64 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003168/0.1735, allocations: 1.764 MB / 0.5811 GB, free: 11.87 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009634/0.1745, allocations: 240 kB / 0.5813 GB, free: 11.63 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002798/0.1773, allocations: 1.155 MB / 0.5824 GB, free: 10.48 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002282/0.1796, allocations: 1.55 MB / 0.584 GB, free: 8.922 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003233/0.1828, allocations: 1.778 MB / 0.5857 GB, free: 7.133 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008706/0.1915, allocations: 5.879 MB / 0.5914 GB, free: 1.23 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.1915, allocations: 3.938 kB / 0.5914 GB, free: 1.227 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1915, allocations: 0 / 0.5914 GB, free: 1.227 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000192/0.1917, allocations: 0 / 0.5914 GB, free: 1.227 MB / 446.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.2253/0.417, allocations: 4.053 MB / 0.5954 GB, free: 32.88 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.417, allocations: 10.31 kB / 0.5954 GB, free: 32.88 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001573/0.4172, allocations: 86.62 kB / 0.5955 GB, free: 32.87 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001308/0.4185, allocations: 0.5724 MB / 0.5961 GB, free: 32.8 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1181/0.5366, allocations: 6.963 MB / 0.6029 GB, free: 32.5 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006033/0.5426, allocations: 2.467 MB / 0.6053 GB, free: 31.68 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001549/0.5428, allocations: 188.5 kB / 0.6054 GB, free: 31.61 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000825/0.5436, allocations: 227.1 kB / 0.6057 GB, free: 31.57 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01258/0.5562, allocations: 7.728 MB / 0.6132 GB, free: 27.05 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000129/0.5563, allocations: 39.56 kB / 0.6132 GB, free: 27.03 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005282/0.5568, allocations: 115.8 kB / 0.6134 GB, free: 26.97 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002518/0.5594, allocations: 1.583 MB / 0.6149 GB, free: 26.35 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01084/0.5702, allocations: 6.462 MB / 0.6212 GB, free: 21.96 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03229/0.6025, allocations: 31.35 MB / 0.6518 GB, free: 5.695 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005246/0.6077, allocations: 2.347 MB / 0.6541 GB, free: 3.203 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001552/0.6093, allocations: 0.9799 MB / 0.6551 GB, free: 2.211 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003998/0.6097, allocations: 323.1 kB / 0.6554 GB, free: 1.84 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.023e-05/0.6097, allocations: 58 kB / 0.6554 GB, free: 1.777 MB / 462.1 MB Notification: Performance of pre-optimization done (n=104): time 3.858e-06/0.6097, allocations: 0 / 0.6554 GB, free: 1.777 MB / 462.1 MB Notification: Performance of matching and sorting (n=118): time 0.02425/0.634, allocations: 8.542 MB / 0.6638 GB, free: 9.148 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001311/0.6341, allocations: 192.5 kB / 0.664 GB, free: 8.918 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006176/0.6403, allocations: 3.773 MB / 0.6677 GB, free: 5.152 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002169/0.6405, allocations: 41.7 kB / 0.6677 GB, free: 5.105 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002575/0.6431, allocations: 2.826 MB / 0.6705 GB, free: 2.25 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00075/0.6438, allocations: 0.5081 MB / 0.671 GB, free: 1.738 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001837/0.6457, allocations: 1.088 MB / 0.672 GB, free: 0.6406 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.6458, allocations: 305.1 kB / 0.6723 GB, free: 348 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002771/0.6486, allocations: 1.58 MB / 0.6738 GB, free: 14.75 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006257/0.6549, allocations: 5.148 MB / 0.6789 GB, free: 7.797 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009568/0.6644, allocations: 7.32 MB / 0.686 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-05/0.6645, allocations: 36 kB / 0.6861 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.01381/0.6783, allocations: 6.653 MB / 0.6926 GB, free: 7.996 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001132/0.6784, allocations: 65.7 kB / 0.6926 GB, free: 7.934 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001977/0.6786, allocations: 128 kB / 0.6927 GB, free: 7.809 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001109/0.6798, allocations: 400.9 kB / 0.6931 GB, free: 7.414 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004036/0.6838, allocations: 1.221 MB / 0.6943 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004416/0.6882, allocations: 3.334 MB / 0.6976 GB, free: 2.727 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003713/0.6919, allocations: 287.6 kB / 0.6978 GB, free: 2.445 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000767/0.6927, allocations: 344 kB / 0.6982 GB, free: 2.109 MB / 0.4981 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.003326/0.696, allocations: 1.776 MB / 0.6999 GB, free: 328 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007745/0.6968, allocations: 329.8 kB / 0.7002 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003244/0.7, allocations: 1.458 MB / 0.7016 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.745e-05/0.7001, allocations: 16 kB / 0.7017 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.169e-05/0.7001, allocations: 9.688 kB / 0.7017 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.391e-05/0.7001, allocations: 3.984 kB / 0.7017 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01031/0.7104, allocations: 4.843 MB / 0.7064 GB, free: 9.59 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-05/0.7104, allocations: 0 / 0.7064 GB, free: 9.59 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008445/0.7113, allocations: 155.8 kB / 0.7066 GB, free: 9.438 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007473/0.712, allocations: 228.7 kB / 0.7068 GB, free: 9.211 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.089e-05/0.7121, allocations: 16 kB / 0.7068 GB, free: 9.195 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003464/0.7156, allocations: 2.704 MB / 0.7094 GB, free: 6.352 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.7156, allocations: 0 / 0.7094 GB, free: 6.352 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005206/0.7208, allocations: 3.294 MB / 0.7126 GB, free: 3.035 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008123/0.7216, allocations: 375.1 kB / 0.713 GB, free: 2.648 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000333/0.7219, allocations: 28.05 kB / 0.713 GB, free: 2.621 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001024/0.7229, allocations: 47.94 kB / 0.7131 GB, free: 2.574 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000201/0.7231, allocations: 64.42 kB / 0.7131 GB, free: 2.512 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.254e-05/0.7232, allocations: 35.92 kB / 0.7132 GB, free: 2.477 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00368/0.7269, allocations: 2.343 MB / 0.7155 GB, free: 152 kB / 0.5137 GB Notification: Performance of sort global known variables: time 9e-08/0.7269, allocations: 0 / 0.7155 GB, free: 152 kB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003901/0.7308, allocations: 0.7695 MB / 0.7162 GB, free: 15.38 MB / 0.5294 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.005546/0.7364, allocations: 3.919 MB / 0.72 GB, free: 11.43 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006365/0.7427, allocations: 3.68 MB / 0.7236 GB, free: 7.758 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.7427, allocations: 0 / 0.7236 GB, free: 7.758 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001575/0.7443, allocations: 0.8879 MB / 0.7245 GB, free: 6.855 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002397/0.7467, allocations: 378.8 kB / 0.7249 GB, free: 6.488 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06246/0.8092, allocations: 37.21 MB / 0.7612 GB, free: 11.91 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004353/0.8135, allocations: 2.716 MB / 0.7638 GB, free: 9.164 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004427/0.8179, allocations: 1.707 MB / 0.7655 GB, free: 7.453 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00282/0.8208, allocations: 1.452 MB / 0.7669 GB, free: 6 MB / 0.5762 GB Notification: Performance of SimCode: time 1.282e-06/0.8208, allocations: 0 / 0.7669 GB, free: 6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.106/0.9268, allocations: 54.56 MB / 0.8202 GB, free: 15.69 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.45/24.37, allocations: 8.062 kB / 0.8202 GB, free: 15.68 MB / 0.6387 GB " [Timeout remaining time 635] (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 --stepSize=9.996e-05 --timeout=50 --tolerance=1e-10 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 28.28484842699254]