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.001434/0.001434, allocations: 114 kB / 20.43 MB, free: 1.457 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.001634/0.001634, allocations: 212.6 kB / 23.74 MB, free: 4.672 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.497/1.497, allocations: 230.5 MB / 257.4 MB, free: 7.984 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.2585/0.2585, allocations: 46.92 MB / 360.8 MB, free: 4.16 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="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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002632/0.002632, allocations: 75.88 kB / 0.4962 GB, free: 7.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3315/0.3341, allocations: 66.08 MB / 0.5607 GB, free: 4.277 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01274/0.3468, allocations: 9.11 MB / 0.5696 GB, free: 11.12 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00811/0.3549, allocations: 3.617 MB / 0.5732 GB, free: 7.496 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001381/0.3563, allocations: 59.75 kB / 0.5732 GB, free: 7.438 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004512/0.3608, allocations: 1.939 MB / 0.5751 GB, free: 5.492 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004469/0.3653, allocations: 1.619 MB / 0.5767 GB, free: 3.867 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001614/0.3669, allocations: 0.5731 MB / 0.5773 GB, free: 3.293 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005879/0.3728, allocations: 3.661 MB / 0.5808 GB, free: 15.62 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003202/0.376, allocations: 2.006 MB / 0.5828 GB, free: 13.56 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002238/0.3782, allocations: 1.176 MB / 0.5839 GB, free: 12.38 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00301/0.3812, allocations: 1.779 MB / 0.5857 GB, free: 10.59 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007444/0.382, allocations: 240 kB / 0.5859 GB, free: 10.36 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002473/0.3845, allocations: 1.147 MB / 0.587 GB, free: 9.211 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002036/0.3865, allocations: 1.554 MB / 0.5885 GB, free: 7.652 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002912/0.3894, allocations: 1.786 MB / 0.5903 GB, free: 5.855 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008468/0.3979, allocations: 5.875 MB / 0.596 GB, free: 15.96 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.3979, allocations: 0 / 0.596 GB, free: 15.96 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3979, allocations: 0 / 0.596 GB, free: 15.96 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002289/0.3981, allocations: 0 / 0.596 GB, free: 15.96 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.01251/0.4106, allocations: 3.986 MB / 0.5999 GB, free: 11.91 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.934e-05/0.4107, allocations: 12.03 kB / 0.5999 GB, free: 11.9 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001754/0.4124, allocations: 0.5753 MB / 0.6005 GB, free: 11.32 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08816/0.5006, allocations: 6.974 MB / 0.6073 GB, free: 4.332 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006689/0.5073, allocations: 2.388 MB / 0.6096 GB, free: 1.906 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002012/0.5075, allocations: 176.8 kB / 0.6098 GB, free: 1.73 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009732/0.5085, allocations: 247.8 kB / 0.61 GB, free: 1.488 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01452/0.523, allocations: 7.716 MB / 0.6176 GB, free: 9.117 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001367/0.5231, allocations: 43.7 kB / 0.6176 GB, free: 9.074 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005768/0.5237, allocations: 119.9 kB / 0.6177 GB, free: 8.957 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003085/0.5268, allocations: 1.586 MB / 0.6193 GB, free: 7.367 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01387/0.5406, allocations: 6.468 MB / 0.6256 GB, free: 0.8867 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04342/0.5841, allocations: 31.25 MB / 0.6561 GB, free: 0.6562 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004975/0.589, allocations: 1.891 MB / 0.658 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001644/0.5907, allocations: 0.9755 MB / 0.6589 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000304/0.591, allocations: 91.84 kB / 0.659 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.935e-05/0.591, allocations: 50.48 kB / 0.659 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=104): time 4.138e-06/0.591, allocations: 0 / 0.659 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of matching and sorting (n=118): time 0.02394/0.615, allocations: 8.391 MB / 0.6672 GB, free: 5.148 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001457/0.6151, allocations: 188.4 kB / 0.6674 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006745/0.6219, allocations: 3.773 MB / 0.6711 GB, free: 1.156 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001954/0.6221, allocations: 37.7 kB / 0.6711 GB, free: 1.113 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002616/0.6247, allocations: 2.826 MB / 0.6739 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.00068/0.6254, allocations: 0.5081 MB / 0.6744 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002065/0.6274, allocations: 1.095 MB / 0.6755 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.6276, allocations: 309.1 kB / 0.6758 GB, free: 12.33 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00285/0.6304, allocations: 1.584 MB / 0.6773 GB, free: 10.74 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006395/0.6368, allocations: 5.144 MB / 0.6823 GB, free: 3.793 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01006/0.6469, allocations: 7.317 MB / 0.6895 GB, free: 10.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001181/0.647, allocations: 36 kB / 0.6895 GB, free: 10.66 MB / 0.5294 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.01352/0.6605, allocations: 6.636 MB / 0.696 GB, free: 4.023 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001317/0.6606, allocations: 60 kB / 0.696 GB, free: 3.965 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002056/0.6608, allocations: 128 kB / 0.6962 GB, free: 3.84 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001109/0.6619, allocations: 409.3 kB / 0.6966 GB, free: 3.438 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004055/0.666, allocations: 1.216 MB / 0.6977 GB, free: 2.219 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00458/0.6706, allocations: 3.241 MB / 0.7009 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003838/0.6744, allocations: 287.6 kB / 0.7012 GB, free: 14.58 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008126/0.6752, allocations: 340 kB / 0.7015 GB, free: 14.25 MB / 0.545 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.003731/0.679, allocations: 1.788 MB / 0.7033 GB, free: 12.45 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007695/0.6797, allocations: 317.8 kB / 0.7036 GB, free: 12.14 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003446/0.6832, allocations: 1.461 MB / 0.705 GB, free: 10.66 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.42e-05/0.6832, allocations: 16 kB / 0.705 GB, free: 10.65 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.753e-05/0.6832, allocations: 7.938 kB / 0.705 GB, free: 10.64 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.821e-05/0.6832, allocations: 7.969 kB / 0.705 GB, free: 10.63 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01203/0.6953, allocations: 4.812 MB / 0.7097 GB, free: 5.758 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.634e-05/0.6953, allocations: 3.984 kB / 0.7097 GB, free: 5.754 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008942/0.6962, allocations: 159.7 kB / 0.7099 GB, free: 5.598 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007638/0.6969, allocations: 224.7 kB / 0.7101 GB, free: 5.375 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001211/0.6971, allocations: 16 kB / 0.7101 GB, free: 5.359 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003553/0.7006, allocations: 2.592 MB / 0.7126 GB, free: 2.652 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.7006, allocations: 4.062 kB / 0.7126 GB, free: 2.648 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005392/0.706, allocations: 3.302 MB / 0.7159 GB, free: 15.32 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008803/0.7069, allocations: 301.7 kB / 0.7162 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005052/0.7074, allocations: 16 kB / 0.7162 GB, free: 15 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001155/0.7086, allocations: 51.94 kB / 0.7162 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002092/0.7088, allocations: 72.22 kB / 0.7163 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.415e-05/0.7089, allocations: 31.94 kB / 0.7163 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004559/0.7134, allocations: 2.343 MB / 0.7186 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.1e-07/0.7134, allocations: 4 kB / 0.7186 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004253/0.7177, allocations: 0.7694 MB / 0.7194 GB, free: 11.75 MB / 0.5606 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.005891/0.7236, allocations: 3.902 MB / 0.7232 GB, free: 7.816 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006853/0.7304, allocations: 3.677 MB / 0.7268 GB, free: 4.152 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.93e-06/0.7304, allocations: 0 / 0.7268 GB, free: 4.152 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001703/0.7321, allocations: 0.8903 MB / 0.7276 GB, free: 3.254 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0025/0.7346, allocations: 379.4 kB / 0.728 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3036/1.038, allocations: 37.27 MB / 0.7644 GB, free: 128.1 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003708/1.042, allocations: 2.713 MB / 0.767 GB, free: 125.3 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003217/1.045, allocations: 1.705 MB / 0.7687 GB, free: 123.6 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001897/1.047, allocations: 1.452 MB / 0.7701 GB, free: 122.2 MB / 0.5606 GB Notification: Performance of SimCode: time 1.543e-06/1.047, allocations: 0 / 0.7701 GB, free: 122.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1028/1.15, allocations: 58.86 MB / 0.8276 GB, free: 63.66 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.03/27.18, allocations: 7.984 kB / 0.8276 GB, free: 63.66 MB / 0.5606 GB " [Timeout remaining time 633] (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: 30.733888540882617]