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.001359/0.001359, allocations: 121.3 kB / 18.5 MB, free: 4.578 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.001734/0.001734, allocations: 210.5 kB / 21.46 MB, free: 1.625 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.475/1.475, allocations: 230.2 MB / 254.5 MB, free: 15.26 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.2337/0.2337, allocations: 46.89 MB / 357.4 MB, free: 10.49 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.002323/0.002323, allocations: 79.88 kB / 0.4912 GB, free: 8.371 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1337, allocations: 66 MB / 0.5557 GB, free: 6.246 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01143/0.1451, allocations: 9.085 MB / 0.5646 GB, free: 13.11 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.008143/0.1533, allocations: 3.594 MB / 0.5681 GB, free: 9.504 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001649/0.1549, allocations: 47.88 kB / 0.5681 GB, free: 9.457 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004141/0.1591, allocations: 1.935 MB / 0.57 GB, free: 7.516 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004385/0.1634, allocations: 1.61 MB / 0.5716 GB, free: 5.902 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001475/0.1649, allocations: 0.5731 MB / 0.5721 GB, free: 5.328 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005735/0.1706, allocations: 3.656 MB / 0.5757 GB, free: 1.664 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003147/0.1738, allocations: 2.077 MB / 0.5777 GB, free: 15.53 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002104/0.1759, allocations: 1.172 MB / 0.5789 GB, free: 14.36 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002857/0.1788, allocations: 1.772 MB / 0.5806 GB, free: 12.58 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006335/0.1794, allocations: 240 kB / 0.5808 GB, free: 12.34 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002344/0.1817, allocations: 1.151 MB / 0.582 GB, free: 11.19 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001886/0.1836, allocations: 1.55 MB / 0.5835 GB, free: 9.637 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002585/0.1862, allocations: 1.79 MB / 0.5852 GB, free: 7.836 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008399/0.1946, allocations: 5.871 MB / 0.591 GB, free: 1.941 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.1946, allocations: 0 / 0.591 GB, free: 1.941 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1946, allocations: 0 / 0.591 GB, free: 1.941 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001765/0.1948, allocations: 0 / 0.591 GB, free: 1.941 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.2899/0.4847, allocations: 4.06 MB / 0.5949 GB, free: 26.62 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.4847, allocations: 9.312 kB / 0.5949 GB, free: 26.62 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001203/0.486, allocations: 0.5762 MB / 0.5955 GB, free: 26.55 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08192/0.5679, allocations: 6.963 MB / 0.6023 GB, free: 26.26 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007795/0.5757, allocations: 2.472 MB / 0.6047 GB, free: 25.92 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000215/0.5759, allocations: 176.9 kB / 0.6049 GB, free: 25.91 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009422/0.5768, allocations: 233.3 kB / 0.6051 GB, free: 25.91 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0142/0.591, allocations: 7.731 MB / 0.6126 GB, free: 22.8 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001405/0.5912, allocations: 36.42 kB / 0.6127 GB, free: 22.8 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005007/0.5917, allocations: 115.6 kB / 0.6128 GB, free: 22.75 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002459/0.5941, allocations: 1.592 MB / 0.6143 GB, free: 22.34 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0106/0.6047, allocations: 6.454 MB / 0.6207 GB, free: 19.36 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03308/0.6378, allocations: 31.37 MB / 0.6513 GB, free: 3.461 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004853/0.6427, allocations: 2.333 MB / 0.6536 GB, free: 0.9844 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001486/0.6441, allocations: 0.9872 MB / 0.6545 GB, free: 15.98 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004136/0.6446, allocations: 322.8 kB / 0.6548 GB, free: 15.62 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.551e-05/0.6446, allocations: 46.5 kB / 0.6549 GB, free: 15.56 MB / 478.1 MB Notification: Performance of pre-optimization done (n=104): time 4.619e-06/0.6446, allocations: 0 / 0.6549 GB, free: 15.56 MB / 478.1 MB Notification: Performance of matching and sorting (n=118): time 0.02219/0.6668, allocations: 8.541 MB / 0.6632 GB, free: 6.988 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001322/0.6669, allocations: 192.5 kB / 0.6634 GB, free: 6.754 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005824/0.6728, allocations: 3.767 MB / 0.6671 GB, free: 2.996 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002232/0.673, allocations: 41.7 kB / 0.6671 GB, free: 2.949 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002404/0.6754, allocations: 2.829 MB / 0.6699 GB, free: 140 kB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006827/0.6761, allocations: 0.5139 MB / 0.6704 GB, free: 15.63 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001625/0.6777, allocations: 1.095 MB / 0.6715 GB, free: 14.53 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.6778, allocations: 305.1 kB / 0.6717 GB, free: 14.23 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002621/0.6804, allocations: 1.58 MB / 0.6733 GB, free: 12.64 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005992/0.6864, allocations: 5.148 MB / 0.6783 GB, free: 5.703 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009287/0.6957, allocations: 7.32 MB / 0.6855 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.227e-05/0.6958, allocations: 37.31 kB / 0.6855 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.01199/0.7078, allocations: 6.641 MB / 0.692 GB, free: 5.953 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.131e-05/0.7079, allocations: 60 kB / 0.692 GB, free: 5.895 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001474/0.7081, allocations: 128 kB / 0.6922 GB, free: 5.77 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000976/0.709, allocations: 406 kB / 0.6926 GB, free: 5.371 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003716/0.7127, allocations: 1.22 MB / 0.6937 GB, free: 4.148 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004242/0.717, allocations: 3.346 MB / 0.697 GB, free: 0.6719 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003561/0.7205, allocations: 279.6 kB / 0.6973 GB, free: 408 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006151/0.7212, allocations: 344 kB / 0.6976 GB, free: 64 kB / 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.00288/0.724, allocations: 1.775 MB / 0.6993 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006193/0.7247, allocations: 325.8 kB / 0.6996 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002746/0.7274, allocations: 1.462 MB / 0.7011 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.385e-05/0.7274, allocations: 16 kB / 0.7011 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.966e-06/0.7274, allocations: 0.625 kB / 0.7011 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.516e-05/0.7275, allocations: 11.92 kB / 0.7011 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009673/0.7371, allocations: 4.829 MB / 0.7058 GB, free: 7.582 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.054e-05/0.7371, allocations: 4 kB / 0.7058 GB, free: 7.578 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000832/0.738, allocations: 163.8 kB / 0.706 GB, free: 7.418 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006714/0.7387, allocations: 224.9 kB / 0.7062 GB, free: 7.195 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.928e-05/0.7387, allocations: 23.94 kB / 0.7062 GB, free: 7.172 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003347/0.7421, allocations: 2.704 MB / 0.7089 GB, free: 4.328 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.7421, allocations: 0 / 0.7089 GB, free: 4.328 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005145/0.7472, allocations: 3.298 MB / 0.7121 GB, free: 1.012 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009643/0.7482, allocations: 378.8 kB / 0.7124 GB, free: 0.6211 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004296/0.7486, allocations: 20 kB / 0.7125 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001016/0.7496, allocations: 47.94 kB / 0.7125 GB, free: 0.5547 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002051/0.7499, allocations: 72.42 kB / 0.7126 GB, free: 496 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.098e-05/0.7499, allocations: 35.98 kB / 0.7126 GB, free: 460 kB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003899/0.7538, allocations: 2.343 MB / 0.7149 GB, free: 14.12 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9e-08/0.7538, allocations: 0 / 0.7149 GB, free: 14.12 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004126/0.758, allocations: 0.7689 MB / 0.7156 GB, free: 13.36 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.005556/0.7635, allocations: 3.917 MB / 0.7195 GB, free: 9.406 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006544/0.7701, allocations: 3.675 MB / 0.7231 GB, free: 5.75 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.652e-06/0.7701, allocations: 1.25 kB / 0.7231 GB, free: 5.75 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001564/0.7716, allocations: 0.8957 MB / 0.7239 GB, free: 4.84 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002752/0.7744, allocations: 383.9 kB / 0.7243 GB, free: 4.469 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06191/0.8363, allocations: 37.2 MB / 0.7606 GB, free: 9.922 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003443/0.8397, allocations: 2.72 MB / 0.7633 GB, free: 7.172 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004038/0.8438, allocations: 1.699 MB / 0.7649 GB, free: 5.469 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002279/0.8461, allocations: 1.456 MB / 0.7664 GB, free: 4.012 MB / 0.5762 GB Notification: Performance of SimCode: time 1.633e-06/0.8461, allocations: 0 / 0.7664 GB, free: 4.012 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1162/0.9623, allocations: 54.51 MB / 0.8196 GB, free: 13.79 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.47/25.44, allocations: 6.672 kB / 0.8196 GB, free: 13.79 MB / 0.6387 GB " [Timeout remaining time 634] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 29.061296179890633]