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.001615/0.001615, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.001809/0.001809, allocations: 211 kB / 24.53 MB, free: 4.07 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.485/1.485, allocations: 230.5 MB / 258.2 MB, free: 8.008 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.2327/0.2327, allocations: 46.93 MB / 361.6 MB, free: 4.168 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.002366/0.002366, allocations: 80.2 kB / 0.497 GB, free: 7.766 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3006/0.303, allocations: 66.09 MB / 0.5615 GB, free: 4.453 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01116/0.3141, allocations: 9.114 MB / 0.5704 GB, free: 11.3 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.006938/0.3211, allocations: 3.613 MB / 0.5739 GB, free: 7.672 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001095/0.3221, allocations: 55.75 kB / 0.574 GB, free: 7.617 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003805/0.326, allocations: 1.939 MB / 0.5759 GB, free: 5.672 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004009/0.33, allocations: 1.623 MB / 0.5775 GB, free: 4.043 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001338/0.3313, allocations: 0.577 MB / 0.578 GB, free: 3.465 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005785/0.3371, allocations: 3.658 MB / 0.5816 GB, free: 15.8 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003008/0.3401, allocations: 1.994 MB / 0.5835 GB, free: 13.75 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002488/0.3426, allocations: 1.191 MB / 0.5847 GB, free: 12.55 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002964/0.3455, allocations: 1.772 MB / 0.5864 GB, free: 10.77 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006884/0.3462, allocations: 240 kB / 0.5867 GB, free: 10.54 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002325/0.3486, allocations: 1.155 MB / 0.5878 GB, free: 9.383 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001883/0.3504, allocations: 1.554 MB / 0.5893 GB, free: 7.824 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002418/0.3529, allocations: 1.782 MB / 0.5911 GB, free: 6.031 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007575/0.3604, allocations: 5.875 MB / 0.5968 GB, free: 136 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.3604, allocations: 0 / 0.5968 GB, free: 136 kB / 430.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.3604, allocations: 0 / 0.5968 GB, free: 136 kB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001569/0.3606, allocations: 0 / 0.5968 GB, free: 136 kB / 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.01005/0.3707, allocations: 3.994 MB / 0.6007 GB, free: 12.08 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.3707, allocations: 12.03 kB / 0.6007 GB, free: 12.07 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001044/0.3708, allocations: 76.78 kB / 0.6008 GB, free: 11.99 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00104/0.3718, allocations: 0.5753 MB / 0.6013 GB, free: 11.4 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09106/0.4629, allocations: 6.962 MB / 0.6081 GB, free: 4.43 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005725/0.4686, allocations: 2.396 MB / 0.6105 GB, free: 1.996 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001482/0.4688, allocations: 176.6 kB / 0.6106 GB, free: 1.82 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000591/0.4694, allocations: 235.8 kB / 0.6109 GB, free: 1.59 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01259/0.4819, allocations: 7.728 MB / 0.6184 GB, free: 9.207 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001178/0.4821, allocations: 43.64 kB / 0.6185 GB, free: 9.164 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003964/0.4825, allocations: 119.9 kB / 0.6186 GB, free: 9.047 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00281/0.4853, allocations: 1.589 MB / 0.6201 GB, free: 7.457 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01197/0.4972, allocations: 6.453 MB / 0.6264 GB, free: 0.9922 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03752/0.5348, allocations: 31.26 MB / 0.6569 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004807/0.5396, allocations: 1.89 MB / 0.6588 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001599/0.5412, allocations: 0.9755 MB / 0.6597 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003261/0.5415, allocations: 91.78 kB / 0.6598 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.603e-05/0.5416, allocations: 42.56 kB / 0.6599 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=104): time 6.923e-06/0.5416, allocations: 4 kB / 0.6599 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of matching and sorting (n=118): time 0.02297/0.5645, allocations: 8.399 MB / 0.6681 GB, free: 5.242 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001421/0.5647, allocations: 192.4 kB / 0.6683 GB, free: 5.012 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00564/0.5703, allocations: 3.769 MB / 0.6719 GB, free: 1.25 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002217/0.5705, allocations: 45.7 kB / 0.672 GB, free: 1.199 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00244/0.573, allocations: 2.822 MB / 0.6747 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.000647/0.5736, allocations: 0.5081 MB / 0.6752 GB, free: 13.83 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00159/0.5752, allocations: 1.095 MB / 0.6763 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001329/0.5753, allocations: 301.1 kB / 0.6766 GB, free: 12.43 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002629/0.578, allocations: 1.584 MB / 0.6781 GB, free: 10.84 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005893/0.5839, allocations: 5.152 MB / 0.6832 GB, free: 3.883 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00981/0.5937, allocations: 7.323 MB / 0.6903 GB, free: 10.79 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001056/0.5938, allocations: 36 kB / 0.6904 GB, free: 10.75 MB / 0.5294 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.0132/0.607, allocations: 6.641 MB / 0.6968 GB, free: 4.105 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001103/0.6071, allocations: 60 kB / 0.6969 GB, free: 4.047 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001872/0.6073, allocations: 124 kB / 0.697 GB, free: 3.926 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001055/0.6083, allocations: 400.6 kB / 0.6974 GB, free: 3.531 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00393/0.6123, allocations: 1.228 MB / 0.6986 GB, free: 2.301 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004413/0.6167, allocations: 3.233 MB / 0.7018 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00422/0.6209, allocations: 287.7 kB / 0.702 GB, free: 14.67 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001025/0.6219, allocations: 347.9 kB / 0.7024 GB, free: 14.33 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.003773/0.6257, allocations: 1.779 MB / 0.7041 GB, free: 12.54 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006942/0.6264, allocations: 321.8 kB / 0.7044 GB, free: 12.22 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003087/0.6295, allocations: 1.457 MB / 0.7058 GB, free: 10.75 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.314e-05/0.6295, allocations: 23.88 kB / 0.7059 GB, free: 10.73 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.249e-05/0.6295, allocations: 4 kB / 0.7059 GB, free: 10.73 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.537e-05/0.6296, allocations: 3.984 kB / 0.7059 GB, free: 10.72 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01124/0.6408, allocations: 4.808 MB / 0.7106 GB, free: 5.852 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-05/0.6408, allocations: 4 kB / 0.7106 GB, free: 5.848 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008695/0.6417, allocations: 159.8 kB / 0.7107 GB, free: 5.691 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007615/0.6424, allocations: 220.7 kB / 0.7109 GB, free: 5.473 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001416/0.6426, allocations: 19.98 kB / 0.7109 GB, free: 5.453 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00356/0.6461, allocations: 2.604 MB / 0.7135 GB, free: 2.734 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/0.6461, allocations: 3.938 kB / 0.7135 GB, free: 2.73 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00552/0.6517, allocations: 3.294 MB / 0.7167 GB, free: 15.41 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001026/0.6527, allocations: 297.7 kB / 0.717 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005136/0.6532, allocations: 19.98 kB / 0.717 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001217/0.6544, allocations: 52 kB / 0.7171 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002512/0.6547, allocations: 68.27 kB / 0.7171 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.881e-05/0.6548, allocations: 31.98 kB / 0.7172 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004483/0.6593, allocations: 2.343 MB / 0.7194 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.2e-07/0.6593, allocations: 4 kB / 0.7194 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004643/0.6639, allocations: 0.7655 MB / 0.7202 GB, free: 11.85 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.006051/0.6699, allocations: 3.908 MB / 0.724 GB, free: 7.906 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007261/0.6772, allocations: 3.669 MB / 0.7276 GB, free: 4.25 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/0.6772, allocations: 8.062 kB / 0.7276 GB, free: 4.242 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001628/0.6788, allocations: 0.8913 MB / 0.7285 GB, free: 3.34 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002518/0.6814, allocations: 384.6 kB / 0.7288 GB, free: 2.969 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2742/0.9556, allocations: 37.26 MB / 0.7652 GB, free: 128.3 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00226/0.9578, allocations: 2.719 MB / 0.7679 GB, free: 125.6 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00299/0.9608, allocations: 1.702 MB / 0.7695 GB, free: 123.9 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001557/0.9624, allocations: 1.456 MB / 0.771 GB, free: 122.5 MB / 0.5606 GB Notification: Performance of SimCode: time 1.462e-06/0.9624, allocations: 0 / 0.771 GB, free: 122.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08645/1.049, allocations: 58.89 MB / 0.8285 GB, free: 63.92 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.45/25.5, allocations: 8.5 kB / 0.8285 GB, free: 63.92 MB / 0.5606 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/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: 29.387041720037814]