Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque3.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.001238/0.001238, 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.001375/0.001375, allocations: 209.2 kB / 24.53 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.428/1.428, allocations: 230.5 MB / 258.2 MB, free: 8.043 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.2243/0.2243, allocations: 46.94 MB / 361.6 MB, free: 4.215 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.CutTorque3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_CutTorque3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_CutTorque3",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.002381/0.002381, allocations: 79.88 kB / 0.497 GB, free: 7.793 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2821/0.2844, allocations: 66.08 MB / 0.5615 GB, free: 4.332 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque3): time 0.01146/0.2959, allocations: 9.597 MB / 0.5709 GB, free: 10.69 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.005958/0.3018, allocations: 2.955 MB / 0.5738 GB, free: 7.723 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001045/0.3029, allocations: 55.81 kB / 0.5738 GB, free: 7.668 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003868/0.3068, allocations: 2.029 MB / 0.5758 GB, free: 5.633 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002703/0.3095, allocations: 1.137 MB / 0.5769 GB, free: 4.492 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007565/0.3102, allocations: 291.4 kB / 0.5772 GB, free: 4.207 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003361/0.3136, allocations: 2.33 MB / 0.5795 GB, free: 1.871 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002326/0.3159, allocations: 1.738 MB / 0.5812 GB, free: 88 kB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001274/0.3172, allocations: 0.8917 MB / 0.582 GB, free: 15.19 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001691/0.3189, allocations: 1.258 MB / 0.5833 GB, free: 13.93 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003327/0.3192, allocations: 196 kB / 0.5834 GB, free: 13.74 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001263/0.3205, allocations: 0.7216 MB / 0.5841 GB, free: 13.02 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001078/0.3215, allocations: 1.141 MB / 0.5853 GB, free: 11.87 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001279/0.3228, allocations: 1.301 MB / 0.5865 GB, free: 10.56 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004708/0.3275, allocations: 4.346 MB / 0.5908 GB, free: 6.199 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3275, allocations: 0 / 0.5908 GB, free: 6.199 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.3275, allocations: 4 kB / 0.5908 GB, free: 6.195 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.213e-05/0.3276, allocations: 3.938 kB / 0.5908 GB, free: 6.191 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: 975 * Number of variables: 975 Notification: Performance of Generate backend data structure: time 0.005246/0.3329, allocations: 2.855 MB / 0.5936 GB, free: 3.293 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.3329, allocations: 8.031 kB / 0.5936 GB, free: 3.285 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007121/0.3336, allocations: 483.1 kB / 0.594 GB, free: 2.805 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005045/0.3387, allocations: 1.582 MB / 0.5956 GB, free: 1.219 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003083/0.3418, allocations: 1.278 MB / 0.5968 GB, free: 15.91 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001434/0.3419, allocations: 147.8 kB / 0.597 GB, free: 15.77 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005206/0.3424, allocations: 183.9 kB / 0.5971 GB, free: 15.59 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0102/0.3526, allocations: 6.246 MB / 0.6032 GB, free: 9.062 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.727e-05/0.3527, allocations: 15.88 kB / 0.6033 GB, free: 9.047 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002406/0.3529, allocations: 83.91 kB / 0.6033 GB, free: 8.965 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002131/0.355, allocations: 1.344 MB / 0.6047 GB, free: 7.617 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01038/0.3654, allocations: 5.34 MB / 0.6099 GB, free: 2.266 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02732/0.3927, allocations: 19.99 MB / 0.6294 GB, free: 13.69 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004073/0.3968, allocations: 1.492 MB / 0.6309 GB, free: 12.18 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001/0.3978, allocations: 0.6367 MB / 0.6315 GB, free: 11.54 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006325/0.4041, allocations: 3.152 MB / 0.6346 GB, free: 8.359 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.303e-05/0.4042, allocations: 43 kB / 0.6346 GB, free: 8.309 MB / 478.1 MB Notification: Performance of pre-optimization done (n=78): time 2.936e-06/0.4042, allocations: 0 / 0.6346 GB, free: 8.309 MB / 478.1 MB Notification: Performance of matching and sorting (n=78): time 0.005565/0.4097, allocations: 1.982 MB / 0.6365 GB, free: 6.316 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.717e-05/0.4098, allocations: 71.77 kB / 0.6366 GB, free: 6.234 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002775/0.4126, allocations: 1.938 MB / 0.6385 GB, free: 4.293 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 7.054e-05/0.4126, allocations: 37.7 kB / 0.6385 GB, free: 4.25 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00145/0.4141, allocations: 1.907 MB / 0.6404 GB, free: 2.32 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003338/0.4144, allocations: 333.4 kB / 0.6407 GB, free: 1.992 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007919/0.4152, allocations: 0.6234 MB / 0.6413 GB, free: 1.359 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001956/0.4154, allocations: 353.9 kB / 0.6417 GB, free: 1.008 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001361/0.4168, allocations: 0.8842 MB / 0.6425 GB, free: 124 kB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002913/0.4197, allocations: 2.751 MB / 0.6452 GB, free: 12.44 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004716/0.4244, allocations: 3.969 MB / 0.6491 GB, free: 7.551 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.912e-05/0.4244, allocations: 20 kB / 0.6491 GB, free: 7.531 MB / 494.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.005751/0.4302, allocations: 3.531 MB / 0.6525 GB, free: 3.988 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.044e-05/0.4302, allocations: 36 kB / 0.6526 GB, free: 3.953 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.911e-05/0.4303, allocations: 64 kB / 0.6526 GB, free: 3.891 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.78e-05/0.4304, allocations: 95.88 kB / 0.6527 GB, free: 3.797 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001914/0.4323, allocations: 0.6472 MB / 0.6534 GB, free: 3.148 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001185/0.4324, allocations: 131.5 kB / 0.6535 GB, free: 3.02 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001742/0.4342, allocations: 429.3 kB / 0.6539 GB, free: 2.598 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002431/0.4344, allocations: 188 kB / 0.6541 GB, free: 2.414 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 301 * Number of states: 0 () * Number of discrete variables: 26 (cutTorque.torqueArrow.twoHeadedArrow,cutTorque.torqueArrow.headAtOrigin,worldTorque.color[3],worldTorque.color[2],worldTorque.color[1],frame_b.color_x[3],frame_b.color_x[2],frame_b.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],cutTorque.torqueColor[3],cutTorque.torqueColor[2],cutTorque.torqueColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (362): * Single equations (assignments): 357 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001927/0.4364, allocations: 1.339 MB / 0.6554 GB, free: 1.062 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002197/0.4366, allocations: 166.9 kB / 0.6555 GB, free: 0.8984 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003071/0.4369, allocations: 192.9 kB / 0.6557 GB, free: 0.707 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.501e-05/0.4369, allocations: 23.92 kB / 0.6558 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.341e-06/0.4369, allocations: 0 / 0.6558 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.154e-06/0.4369, allocations: 3.984 kB / 0.6558 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006233/0.4432, allocations: 3.997 MB / 0.6597 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.051e-05/0.4432, allocations: 8 kB / 0.6597 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000436/0.4436, allocations: 107.9 kB / 0.6598 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.104e-05/0.4436, allocations: 11.94 kB / 0.6598 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.902e-05/0.4437, allocations: 24 kB / 0.6598 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.33e-05/0.4437, allocations: 15.92 kB / 0.6598 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/0.4437, allocations: 8 kB / 0.6598 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001585/0.4453, allocations: 1.27 MB / 0.6611 GB, free: 11 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003286/0.4456, allocations: 174.6 kB / 0.6612 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001658/0.4458, allocations: 23.98 kB / 0.6613 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004689/0.4462, allocations: 27.94 kB / 0.6613 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.4463, allocations: 59.8 kB / 0.6613 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.04e-05/0.4464, allocations: 39.92 kB / 0.6614 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.00188/0.4483, allocations: 1.267 MB / 0.6626 GB, free: 9.418 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4483, allocations: 4 kB / 0.6626 GB, free: 9.414 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002483/0.4508, allocations: 0.6891 MB / 0.6633 GB, free: 8.723 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 54 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002197/0.453, allocations: 1.865 MB / 0.6651 GB, free: 6.742 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.003247/0.4562, allocations: 1.968 MB / 0.667 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.4562, allocations: 0 / 0.667 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006193/0.4568, allocations: 437.5 kB / 0.6675 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001346/0.4582, allocations: 235.7 kB / 0.6677 GB, free: 4.137 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02989/0.4881, allocations: 20.94 MB / 0.6881 GB, free: 12.65 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002526/0.4906, allocations: 2.279 MB / 0.6904 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002166/0.4928, allocations: 0.952 MB / 0.6913 GB, free: 9.383 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001431/0.4942, allocations: 1.046 MB / 0.6923 GB, free: 8.336 MB / 0.5294 GB Notification: Performance of SimCode: time 1.092e-06/0.4942, allocations: 4 kB / 0.6923 GB, free: 8.332 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07002/0.5642, allocations: 35.17 MB / 0.7267 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.84/12.41, allocations: 3.266 kB / 0.7267 GB, free: 5.273 MB / 0.5606 GB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque3_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_CutTorque3_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_CutTorque3.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.319093319121748] Failed to read output from testmodel.py, exit status != 0: ['time', 'cutTorque.torque[3]', 'cutTorque.torque[2]', 'cutTorque.torque[1]'] 12.499104410875589 12.733907521 12.402950468 Calling exit ...