Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.001603/0.001603, allocations: 109 kB / 21.23 MB, free: 0.6719 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.001788/0.001788, allocations: 209.9 kB / 24.54 MB, free: 4.035 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.484/1.484, allocations: 230.5 MB / 258.2 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2383/0.2383, allocations: 46.93 MB / 361.6 MB, free: 4.281 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002379/0.002379, allocations: 79.86 kB / 0.497 GB, free: 7.785 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3685/0.3709, allocations: 66.09 MB / 0.5615 GB, free: 4.309 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01183/0.3827, allocations: 9.114 MB / 0.5704 GB, free: 11.15 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008204/0.391, allocations: 3.613 MB / 0.5739 GB, free: 7.527 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001639/0.3926, allocations: 59.75 kB / 0.574 GB, free: 7.469 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004028/0.3966, allocations: 1.943 MB / 0.5759 GB, free: 5.52 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004618/0.4012, allocations: 1.611 MB / 0.5775 GB, free: 3.902 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001709/0.4029, allocations: 0.5809 MB / 0.578 GB, free: 3.32 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006183/0.4091, allocations: 3.661 MB / 0.5816 GB, free: 15.65 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003319/0.4124, allocations: 1.998 MB / 0.5836 GB, free: 13.59 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002271/0.4147, allocations: 1.184 MB / 0.5847 GB, free: 12.41 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003013/0.4177, allocations: 1.768 MB / 0.5864 GB, free: 10.63 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007854/0.4185, allocations: 240 kB / 0.5867 GB, free: 10.4 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002607/0.4211, allocations: 1.162 MB / 0.5878 GB, free: 9.234 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002455/0.4236, allocations: 1.55 MB / 0.5893 GB, free: 7.68 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003122/0.4267, allocations: 1.786 MB / 0.5911 GB, free: 5.883 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009352/0.4361, allocations: 5.872 MB / 0.5968 GB, free: 15.98 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.4361, allocations: 0 / 0.5968 GB, free: 15.98 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.4361, allocations: 3.938 kB / 0.5968 GB, free: 15.98 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002231/0.4363, allocations: 3.938 kB / 0.5968 GB, free: 15.98 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.01246/0.4487, allocations: 3.982 MB / 0.6007 GB, free: 11.94 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.275e-05/0.4488, allocations: 12.03 kB / 0.6007 GB, free: 11.93 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001599/0.4504, allocations: 0.5753 MB / 0.6013 GB, free: 11.34 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07665/0.5271, allocations: 6.966 MB / 0.6081 GB, free: 4.367 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006252/0.5333, allocations: 2.392 MB / 0.6104 GB, free: 1.938 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001903/0.5335, allocations: 176.8 kB / 0.6106 GB, free: 1.762 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008962/0.5344, allocations: 243.8 kB / 0.6108 GB, free: 1.523 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01484/0.5492, allocations: 7.72 MB / 0.6183 GB, free: 9.148 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001446/0.5494, allocations: 47.64 kB / 0.6184 GB, free: 9.102 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005803/0.55, allocations: 123.9 kB / 0.6185 GB, free: 8.98 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003062/0.553, allocations: 1.578 MB / 0.6201 GB, free: 7.398 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01377/0.5668, allocations: 6.46 MB / 0.6264 GB, free: 0.9258 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04377/0.6106, allocations: 31.25 MB / 0.6569 GB, free: 0.6914 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00504/0.6156, allocations: 1.889 MB / 0.6587 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00162/0.6172, allocations: 0.9893 MB / 0.6597 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000315/0.6175, allocations: 87.92 kB / 0.6598 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.101e-05/0.6176, allocations: 42.56 kB / 0.6598 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=104): time 3.617e-06/0.6176, allocations: 0 / 0.6598 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of matching and sorting (n=118): time 0.02402/0.6416, allocations: 8.393 MB / 0.668 GB, free: 5.18 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001448/0.6418, allocations: 192.4 kB / 0.6682 GB, free: 4.949 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006721/0.6485, allocations: 3.769 MB / 0.6719 GB, free: 1.188 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002717/0.6487, allocations: 41.89 kB / 0.6719 GB, free: 1.141 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002859/0.6516, allocations: 2.826 MB / 0.6747 GB, free: 14.28 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008088/0.6524, allocations: 0.508 MB / 0.6752 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001855/0.6543, allocations: 1.103 MB / 0.6762 GB, free: 12.66 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001506/0.6544, allocations: 301.1 kB / 0.6765 GB, free: 12.36 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002886/0.6573, allocations: 1.591 MB / 0.6781 GB, free: 10.76 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006658/0.664, allocations: 5.137 MB / 0.6831 GB, free: 3.82 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01019/0.6742, allocations: 7.321 MB / 0.6903 GB, free: 10.72 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000162/0.6743, allocations: 36 kB / 0.6903 GB, free: 10.69 MB / 0.5294 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.01522/0.6895, allocations: 6.637 MB / 0.6968 GB, free: 4.047 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001185/0.6897, allocations: 60 kB / 0.6968 GB, free: 3.988 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001924/0.6899, allocations: 132.1 kB / 0.697 GB, free: 3.859 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001119/0.691, allocations: 396.6 kB / 0.6973 GB, free: 3.469 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004163/0.6951, allocations: 1.228 MB / 0.6985 GB, free: 2.238 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004539/0.6997, allocations: 3.229 MB / 0.7017 GB, free: 14.89 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004076/0.7038, allocations: 283.6 kB / 0.702 GB, free: 14.62 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008466/0.7046, allocations: 348 kB / 0.7023 GB, free: 14.28 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.003463/0.7081, allocations: 1.775 MB / 0.704 GB, free: 12.49 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007179/0.7088, allocations: 325.8 kB / 0.7043 GB, free: 12.17 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003082/0.7119, allocations: 1.461 MB / 0.7058 GB, free: 10.7 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.253e-05/0.7119, allocations: 12 kB / 0.7058 GB, free: 10.68 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.191e-05/0.7119, allocations: 7.938 kB / 0.7058 GB, free: 10.68 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.653e-05/0.7119, allocations: 3.984 kB / 0.7058 GB, free: 10.67 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01035/0.7223, allocations: 4.812 MB / 0.7105 GB, free: 5.797 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.558e-05/0.7223, allocations: 0 / 0.7105 GB, free: 5.797 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008609/0.7231, allocations: 167.7 kB / 0.7106 GB, free: 5.633 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007151/0.7239, allocations: 216.6 kB / 0.7108 GB, free: 5.418 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001083/0.724, allocations: 20 kB / 0.7109 GB, free: 5.398 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003516/0.7275, allocations: 2.608 MB / 0.7134 GB, free: 2.676 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.608e-06/0.7275, allocations: 3.938 kB / 0.7134 GB, free: 2.672 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0055/0.733, allocations: 3.291 MB / 0.7166 GB, free: 15.35 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001015/0.734, allocations: 297.7 kB / 0.7169 GB, free: 15.06 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005487/0.7346, allocations: 16 kB / 0.7169 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001192/0.7357, allocations: 51.94 kB / 0.717 GB, free: 14.99 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002282/0.736, allocations: 72.31 kB / 0.717 GB, free: 14.92 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.326e-05/0.7361, allocations: 39.89 kB / 0.7171 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004572/0.7406, allocations: 2.343 MB / 0.7194 GB, free: 12.56 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.91e-07/0.7406, allocations: 0 / 0.7194 GB, free: 12.56 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004779/0.7454, allocations: 0.7694 MB / 0.7201 GB, free: 11.79 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.00611/0.7515, allocations: 3.908 MB / 0.7239 GB, free: 7.844 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007414/0.7589, allocations: 3.673 MB / 0.7275 GB, free: 4.188 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.436e-06/0.759, allocations: 192 / 0.7275 GB, free: 4.188 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001776/0.7607, allocations: 0.8953 MB / 0.7284 GB, free: 3.281 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002693/0.7634, allocations: 382.3 kB / 0.7288 GB, free: 2.906 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3412/1.105, allocations: 37.26 MB / 0.7652 GB, free: 128.2 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002696/1.107, allocations: 2.718 MB / 0.7678 GB, free: 125.4 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003545/1.111, allocations: 1.703 MB / 0.7695 GB, free: 123.7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0022/1.113, allocations: 1.452 MB / 0.7709 GB, free: 122.3 MB / 0.5606 GB Notification: Performance of SimCode: time 1.954e-06/1.113, allocations: 4 kB / 0.7709 GB, free: 122.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09961/1.213, allocations: 58.8 MB / 0.8283 GB, free: 63.82 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.96/24.18, allocations: 11.53 kB / 0.8283 GB, free: 63.81 MB / 0.5606 GB " [Timeout remaining time 636] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --stepSize=9.996e-05 --timeout=50 --tolerance=1e-10 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 27.16430848604068] Failed to read output from testmodel.py, exit status != 0: ['time', 'distance1.distance', 'distance2.distance'] 24.29986166395247 24.309686735 23.871041982 Calling exit ...