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.001318/0.001318, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.001425/0.001425, allocations: 205.5 kB / 24.51 MB, free: 3.945 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.49/1.49, allocations: 230.5 MB / 258.2 MB, free: 7.824 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.2272/0.2272, allocations: 46.95 MB / 361.6 MB, free: 3.957 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.002282/0.002282, allocations: 79.88 kB / 0.4969 GB, free: 7.602 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.283/0.2852, allocations: 66.09 MB / 0.5614 GB, free: 4.09 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01027/0.2955, allocations: 7.962 MB / 0.5692 GB, free: 12.09 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.006583/0.3021, allocations: 3.382 MB / 0.5725 GB, free: 8.699 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007995/0.3029, allocations: 59.69 kB / 0.5726 GB, free: 8.641 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003695/0.3066, allocations: 1.861 MB / 0.5744 GB, free: 6.773 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003607/0.3102, allocations: 1.631 MB / 0.576 GB, free: 5.137 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001211/0.3114, allocations: 0.5692 MB / 0.5765 GB, free: 4.566 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00469/0.3161, allocations: 3.657 MB / 0.5801 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002369/0.3185, allocations: 1.998 MB / 0.5821 GB, free: 14.84 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00159/0.3201, allocations: 1.187 MB / 0.5832 GB, free: 13.65 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002409/0.3225, allocations: 1.772 MB / 0.585 GB, free: 11.88 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004754/0.3229, allocations: 244 kB / 0.5852 GB, free: 11.64 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001857/0.3248, allocations: 1.03 MB / 0.5862 GB, free: 10.61 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001563/0.3264, allocations: 1.554 MB / 0.5877 GB, free: 9.047 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001553/0.3279, allocations: 1.316 MB / 0.589 GB, free: 7.723 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006671/0.3346, allocations: 5.899 MB / 0.5948 GB, free: 1.801 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3346, allocations: 0 / 0.5948 GB, free: 1.801 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3346, allocations: 8 kB / 0.5948 GB, free: 1.793 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.931e-05/0.3347, allocations: 0 / 0.5948 GB, free: 1.793 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.008738/0.3434, allocations: 3.975 MB / 0.5986 GB, free: 13.76 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.3435, allocations: 8.031 kB / 0.5986 GB, free: 13.75 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.649e-05/0.3436, allocations: 80.78 kB / 0.5987 GB, free: 13.67 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007847/0.3444, allocations: 0.5792 MB / 0.5993 GB, free: 13.08 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08135/0.4257, allocations: 6.966 MB / 0.6061 GB, free: 6.102 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005909/0.4316, allocations: 2.407 MB / 0.6084 GB, free: 3.656 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001689/0.4318, allocations: 188.5 kB / 0.6086 GB, free: 3.469 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006193/0.4324, allocations: 231.8 kB / 0.6088 GB, free: 3.242 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01258/0.445, allocations: 7.774 MB / 0.6164 GB, free: 10.8 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.815e-05/0.4451, allocations: 39.64 kB / 0.6165 GB, free: 10.77 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003292/0.4454, allocations: 115.9 kB / 0.6166 GB, free: 10.65 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002722/0.4481, allocations: 1.59 MB / 0.6181 GB, free: 9.059 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01193/0.4601, allocations: 6.457 MB / 0.6244 GB, free: 2.59 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03654/0.4966, allocations: 30.16 MB / 0.6539 GB, free: 3.449 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004678/0.5013, allocations: 1.888 MB / 0.6557 GB, free: 1.527 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001409/0.5027, allocations: 0.9833 MB / 0.6567 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002523/0.5029, allocations: 91.94 kB / 0.6568 GB, free: 452 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.183e-05/0.503, allocations: 42.56 kB / 0.6568 GB, free: 400 kB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 4.138e-06/0.503, allocations: 0 / 0.6568 GB, free: 400 kB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02198/0.525, allocations: 8.431 MB / 0.6651 GB, free: 7.902 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001583/0.5251, allocations: 192.4 kB / 0.6652 GB, free: 7.668 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005711/0.5308, allocations: 3.769 MB / 0.6689 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001898/0.531, allocations: 41.7 kB / 0.669 GB, free: 3.859 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002368/0.5334, allocations: 2.834 MB / 0.6717 GB, free: 0.9961 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005764/0.534, allocations: 0.5041 MB / 0.6722 GB, free: 500 kB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001512/0.5355, allocations: 1.099 MB / 0.6733 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001457/0.5356, allocations: 301.1 kB / 0.6736 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002586/0.5382, allocations: 1.584 MB / 0.6751 GB, free: 13.49 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006078/0.5443, allocations: 5.195 MB / 0.6802 GB, free: 6.48 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00939/0.5537, allocations: 7.323 MB / 0.6874 GB, free: 13.38 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000112/0.5538, allocations: 43.88 kB / 0.6874 GB, free: 13.34 MB / 0.5294 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.01197/0.5658, allocations: 6.635 MB / 0.6939 GB, free: 6.695 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.728e-05/0.5659, allocations: 60 kB / 0.6939 GB, free: 6.637 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001577/0.566, allocations: 124 kB / 0.6941 GB, free: 6.516 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009632/0.567, allocations: 405.3 kB / 0.6944 GB, free: 6.117 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003665/0.5706, allocations: 1.224 MB / 0.6956 GB, free: 4.891 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004236/0.5749, allocations: 3.209 MB / 0.6988 GB, free: 1.566 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00343/0.5783, allocations: 291.5 kB / 0.6991 GB, free: 1.285 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000555/0.5789, allocations: 340 kB / 0.6994 GB, free: 0.9531 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.002792/0.5816, allocations: 1.779 MB / 0.7011 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005721/0.5822, allocations: 325.8 kB / 0.7014 GB, free: 14.84 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002891/0.5851, allocations: 1.461 MB / 0.7029 GB, free: 13.36 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.95e-05/0.5851, allocations: 12 kB / 0.7029 GB, free: 13.35 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.218e-06/0.5852, allocations: 7.938 kB / 0.7029 GB, free: 13.34 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.306e-05/0.5852, allocations: 7.984 kB / 0.7029 GB, free: 13.33 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008659/0.5938, allocations: 4.586 MB / 0.7074 GB, free: 8.691 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.023e-05/0.5938, allocations: 4 kB / 0.7074 GB, free: 8.688 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008133/0.5946, allocations: 159.7 kB / 0.7075 GB, free: 8.531 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006928/0.5953, allocations: 228.6 kB / 0.7077 GB, free: 8.305 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.637e-05/0.5954, allocations: 19.98 kB / 0.7078 GB, free: 8.285 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003415/0.5988, allocations: 2.588 MB / 0.7103 GB, free: 5.582 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.5988, allocations: 4.031 kB / 0.7103 GB, free: 5.578 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004917/0.6038, allocations: 3.29 MB / 0.7135 GB, free: 2.262 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006292/0.6044, allocations: 297.7 kB / 0.7138 GB, free: 1.969 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003303/0.6047, allocations: 16 kB / 0.7138 GB, free: 1.953 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009785/0.6057, allocations: 51.94 kB / 0.7138 GB, free: 1.902 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001734/0.6059, allocations: 72.44 kB / 0.7139 GB, free: 1.832 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.732e-05/0.606, allocations: 35.98 kB / 0.7139 GB, free: 1.797 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003635/0.6096, allocations: 2.343 MB / 0.7162 GB, free: 15.47 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.6096, allocations: 0 / 0.7162 GB, free: 15.47 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003775/0.6134, allocations: 0.7694 MB / 0.717 GB, free: 14.7 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.005363/0.6187, allocations: 3.907 MB / 0.7208 GB, free: 10.76 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006072/0.6248, allocations: 3.683 MB / 0.7244 GB, free: 7.094 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.6248, allocations: 0 / 0.7244 GB, free: 7.094 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001492/0.6263, allocations: 0.8958 MB / 0.7253 GB, free: 6.188 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00193/0.6282, allocations: 382.7 kB / 0.7256 GB, free: 5.812 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2717/0.9, allocations: 37.25 MB / 0.762 GB, free: 130.1 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001943/0.9019, allocations: 2.171 MB / 0.7641 GB, free: 127.9 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003093/0.905, allocations: 1.697 MB / 0.7658 GB, free: 126.3 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00144/0.9065, allocations: 1.46 MB / 0.7672 GB, free: 124.8 MB / 0.5606 GB Notification: Performance of SimCode: time 1.092e-06/0.9065, allocations: 0 / 0.7672 GB, free: 124.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08184/0.9883, allocations: 56.38 MB / 0.8223 GB, free: 69.13 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.19/27.18, allocations: 8.062 kB / 0.8223 GB, free: 69.12 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: 31.016355440951884]