Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) 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.CutTorque,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0018/0.0018, allocations: 118.8 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002251/0.002251, allocations: 202 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.442/1.442, allocations: 227.4 MB / 247 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2205/0.2205, allocations: 46.12 MB / 344.4 MB, free: 11.45 MB / 286.1 MB 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.002319/0.002319, allocations: 79.88 kB / 480.9 MB, free: 4.504 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3116/0.314, allocations: 62.45 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque): time 0.01725/0.3313, allocations: 14.99 MB / 0.5452 GB, free: 1.586 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01138/0.3427, allocations: 5.047 MB / 0.5502 GB, free: 13.61 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003008/0.3457, allocations: 119.7 kB / 0.5503 GB, free: 13.5 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01114/0.3569, allocations: 5.966 MB / 0.5561 GB, free: 7.512 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007668/0.3647, allocations: 2.743 MB / 0.5588 GB, free: 4.758 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003868/0.3686, allocations: 1.571 MB / 0.5603 GB, free: 3.184 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01176/0.3803, allocations: 7.781 MB / 0.5679 GB, free: 11.39 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01019/0.3906, allocations: 7.387 MB / 0.5751 GB, free: 3.902 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005244/0.3959, allocations: 2.968 MB / 0.578 GB, free: 0.9258 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006089/0.402, allocations: 3.774 MB / 0.5817 GB, free: 13.14 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0021/0.4041, allocations: 0.5703 MB / 0.5823 GB, free: 12.57 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004115/0.4083, allocations: 1.397 MB / 0.5836 GB, free: 11.17 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00486/0.4132, allocations: 3.452 MB / 0.587 GB, free: 7.711 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006966/0.4202, allocations: 3.845 MB / 0.5908 GB, free: 3.844 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01653/0.4367, allocations: 11.67 MB / 0.6022 GB, free: 8.121 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.4368, allocations: 3.938 kB / 0.6022 GB, free: 8.117 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4368, allocations: 4 kB / 0.6022 GB, free: 8.113 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004052/0.4372, allocations: 0 / 0.6022 GB, free: 8.113 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2471 * Number of variables: 2471 Notification: Performance of Generate backend data structure: time 0.02044/0.4577, allocations: 8.724 MB / 0.6107 GB, free: 15.29 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.4577, allocations: 8.031 kB / 0.6107 GB, free: 15.29 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00313/0.4609, allocations: 1.177 MB / 0.6119 GB, free: 14.1 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01099/0.4719, allocations: 2.558 MB / 0.6144 GB, free: 11.53 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0109/0.4828, allocations: 5.428 MB / 0.6197 GB, free: 6.027 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004022/0.4833, allocations: 434.6 kB / 0.6201 GB, free: 5.602 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001565/0.4848, allocations: 0.531 MB / 0.6206 GB, free: 5.07 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03268/0.5175, allocations: 16.68 MB / 0.6369 GB, free: 3.27 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002325/0.5178, allocations: 71.41 kB / 0.6369 GB, free: 3.199 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001258/0.5191, allocations: 271.7 kB / 0.6372 GB, free: 2.934 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004767/0.5239, allocations: 2.927 MB / 0.6401 GB, free: 4 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02889/0.5528, allocations: 12.79 MB / 0.6526 GB, free: 3.195 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08961/0.6424, allocations: 64.08 MB / 0.7151 GB, free: 1.344 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4945/1.137, allocations: 5.373 MB / 0.7204 GB, free: 160 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00324/1.14, allocations: 2.124 MB / 0.7225 GB, free: 159.3 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01583/1.156, allocations: 9.938 MB / 0.7322 GB, free: 154.4 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.934e-05/1.156, allocations: 58.17 kB / 0.7322 GB, free: 154.3 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=182): time 5.279e-06/1.156, allocations: 0 / 0.7322 GB, free: 154.3 MB / 0.5607 GB Notification: Performance of matching and sorting (n=206): time 0.03423/1.19, allocations: 14.37 MB / 0.7463 GB, free: 148.5 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.136e-05/1.191, allocations: 152.1 kB / 0.7464 GB, free: 148.3 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00854/1.199, allocations: 6.334 MB / 0.7526 GB, free: 142.7 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0002997/1.199, allocations: 57.3 kB / 0.7526 GB, free: 142.7 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.002709/1.202, allocations: 5.278 MB / 0.7578 GB, free: 137.9 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007374/1.203, allocations: 0.859 MB / 0.7586 GB, free: 137 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002139/1.205, allocations: 1.667 MB / 0.7603 GB, free: 135.3 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 4.481e-05/1.205, allocations: 301.1 kB / 0.7605 GB, free: 135 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003168/1.208, allocations: 2.296 MB / 0.7628 GB, free: 132.7 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005449/1.214, allocations: 7.641 MB / 0.7703 GB, free: 122.5 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008683/1.222, allocations: 10.81 MB / 0.7808 GB, free: 109.1 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001414/1.223, allocations: 52 kB / 0.7809 GB, free: 109 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1091) (initialization): time 0.01618/1.239, allocations: 9.592 MB / 0.7902 GB, free: 99.43 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001294/1.239, allocations: 88 kB / 0.7903 GB, free: 99.34 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001941/1.239, allocations: 188 kB / 0.7905 GB, free: 99.16 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001784/1.239, allocations: 251.9 kB / 0.7907 GB, free: 98.91 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005454/1.245, allocations: 1.908 MB / 0.7926 GB, free: 97 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002335/1.245, allocations: 370.5 kB / 0.7929 GB, free: 96.64 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005673/1.251, allocations: 403.6 kB / 0.7933 GB, free: 96.24 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001089/1.252, allocations: 0.5191 MB / 0.7938 GB, free: 95.73 MB / 0.5607 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 867 * Number of states: 0 () * Number of discrete variables: 68 (cutTorque2b.torqueArrow.twoHeadedArrow,cutTorque2b.torqueArrow.headAtOrigin,cutTorque1b.torqueArrow.twoHeadedArrow,cutTorque1b.torqueArrow.headAtOrigin,cutTorque2a.torqueArrow.twoHeadedArrow,cutTorque2a.torqueArrow.headAtOrigin,cutTorque1a.torqueArrow.twoHeadedArrow,cutTorque1a.torqueArrow.headAtOrigin,rotate2b.color[3],rotate2b.color[2],rotate2b.color[1],body2b.sphereColor[3],body2b.sphereColor[2],body2b.sphereColor[1],translate2b.color[3],translate2b.color[2],translate2b.color[1],cutTorque2b.torqueColor[3],cutTorque2b.torqueColor[2],cutTorque2b.torqueColor[1],rotate1b.color[3],rotate1b.color[2],rotate1b.color[1],body1b.sphereColor[3],body1b.sphereColor[2],body1b.sphereColor[1],translate1b.color[3],translate1b.color[2],translate1b.color[1],cutTorque1b.torqueColor[3],cutTorque1b.torqueColor[2],cutTorque1b.torqueColor[1],rotate2a.color[3],rotate2a.color[2],rotate2a.color[1],rotate1a.color[3],rotate1a.color[2],rotate1a.color[1],body2a.sphereColor[3],body2a.sphereColor[2],body2a.sphereColor[1],translate2a.color[3],translate2a.color[2],translate2a.color[1],cutTorque2a.torqueColor[3],cutTorque2a.torqueColor[2],cutTorque2a.torqueColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutTorque1a.torqueColor[3],cutTorque1a.torqueColor[2],cutTorque1a.torqueColor[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 (1027): * Single equations (assignments): 1016 * Array equations: 11 * 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.005103/1.257, allocations: 3.281 MB / 0.797 GB, free: 92.43 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000965/1.258, allocations: 0.5665 MB / 0.7976 GB, free: 91.86 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001405/1.259, allocations: 0.6282 MB / 0.7982 GB, free: 91.23 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.616e-05/1.26, allocations: 27.44 kB / 0.7982 GB, free: 91.2 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.315e-05/1.26, allocations: 4 kB / 0.7982 GB, free: 91.2 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.674e-05/1.26, allocations: 7.969 kB / 0.7982 GB, free: 91.19 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02028/1.28, allocations: 15 MB / 0.8129 GB, free: 75.52 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.756e-05/1.28, allocations: 48 kB / 0.8129 GB, free: 75.47 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001282/1.281, allocations: 443.2 kB / 0.8134 GB, free: 75.04 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.324e-05/1.281, allocations: 63.98 kB / 0.8134 GB, free: 74.98 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001912/1.282, allocations: 96 kB / 0.8135 GB, free: 74.88 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.242e-05/1.282, allocations: 95.53 kB / 0.8136 GB, free: 74.79 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.653e-05/1.282, allocations: 71.69 kB / 0.8137 GB, free: 74.72 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003933/1.286, allocations: 4.336 MB / 0.8179 GB, free: 69.68 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001386/1.287, allocations: 0.6572 MB / 0.8185 GB, free: 69 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001164/1.288, allocations: 112 kB / 0.8187 GB, free: 68.89 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002681/1.291, allocations: 107.9 kB / 0.8188 GB, free: 68.78 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004348/1.291, allocations: 306.5 kB / 0.8191 GB, free: 68.48 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001736/1.292, allocations: 132 kB / 0.8192 GB, free: 68.35 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.006148/1.298, allocations: 3.948 MB / 0.823 GB, free: 64.41 MB / 0.5607 GB Notification: Performance of sort global known variables: time 1.463e-06/1.298, allocations: 0 / 0.823 GB, free: 64.41 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.007348/1.305, allocations: 1.311 MB / 0.8243 GB, free: 63.11 MB / 0.5607 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 211 * 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 (238): * Single equations (assignments): 235 * 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.005648/1.311, allocations: 5.069 MB / 0.8293 GB, free: 57.34 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.007711/1.319, allocations: 5.427 MB / 0.8346 GB, free: 51.96 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 3.868e-05/1.319, allocations: 8 kB / 0.8346 GB, free: 51.95 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.001477/1.32, allocations: 1.198 MB / 0.8357 GB, free: 50.76 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005725/1.326, allocations: 0.8775 MB / 0.8366 GB, free: 49.89 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09292/1.419, allocations: 65.78 MB / 0.9008 GB, free: 6.785 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01032/1.429, allocations: 5.072 MB / 0.9058 GB, free: 1.672 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.007253/1.436, allocations: 2.542 MB / 0.9083 GB, free: 15.12 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005927/1.442, allocations: 3.291 MB / 0.9115 GB, free: 11.83 MB / 0.6075 GB Notification: Performance of SimCode: time 1.312e-06/1.442, allocations: 0 / 0.9115 GB, free: 11.83 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3967/1.839, allocations: 92.98 MB / 1.002 GB, free: 190.1 MB / 0.6388 GB Notification: Performance of buildModelFMU: Generate platform static: time 39.15/40.99, allocations: 6.906 kB / 1.002 GB, free: 190.1 MB / 0.6388 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_CutTorque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_CutTorque.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque.pipe 2>&1)