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.001363/0.001363, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001512/0.001512, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 227.4 MB / 246.8 MB, free: 10.61 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.2301/0.2301, allocations: 46.11 MB / 344.2 MB, free: 11.6 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.002374/0.002374, allocations: 78.16 kB / 417.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1427/0.1451, allocations: 62.45 MB / 480.2 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque): time 0.01953/0.1647, allocations: 14.99 MB / 495.2 MB, free: 6.102 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01281/0.1775, allocations: 5.046 MB / 0.4885 GB, free: 1.039 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002932/0.1805, allocations: 115.7 kB / 0.4886 GB, free: 0.9258 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01229/0.1929, allocations: 5.978 MB / 0.4945 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007382/0.2003, allocations: 2.739 MB / 0.4971 GB, free: 8.18 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004043/0.2043, allocations: 1.575 MB / 0.4987 GB, free: 6.602 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2211/0.4254, allocations: 7.768 MB / 0.5063 GB, free: 13.12 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009905/0.4354, allocations: 7.396 MB / 0.5135 GB, free: 12.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006275/0.4417, allocations: 2.969 MB / 0.5164 GB, free: 11.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006745/0.4485, allocations: 3.778 MB / 0.5201 GB, free: 11.56 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002588/0.4511, allocations: 0.5699 MB / 0.5206 GB, free: 11.56 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004779/0.4559, allocations: 1.389 MB / 0.522 GB, free: 11.56 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005657/0.4616, allocations: 3.456 MB / 0.5254 GB, free: 11 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009967/0.4716, allocations: 3.854 MB / 0.5291 GB, free: 8.32 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01587/0.4875, allocations: 11.26 MB / 0.5401 GB, free: 2.562 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.4876, allocations: 0 / 0.5401 GB, free: 2.562 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.4876, allocations: 2.531 kB / 0.5401 GB, free: 2.562 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006073/0.4882, allocations: 0 / 0.5401 GB, free: 2.562 MB / 382.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.02298/0.5112, allocations: 8.501 MB / 0.5484 GB, free: 12.58 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.138e-05/0.5113, allocations: 12.03 kB / 0.5484 GB, free: 12.57 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004045/0.5153, allocations: 1.167 MB / 0.5496 GB, free: 11.45 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01211/0.5275, allocations: 2.516 MB / 0.552 GB, free: 8.918 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01524/0.5427, allocations: 5.298 MB / 0.5572 GB, free: 3.855 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006236/0.5434, allocations: 425.7 kB / 0.5576 GB, free: 3.492 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00286/0.5463, allocations: 0.5446 MB / 0.5582 GB, free: 3.004 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03747/0.5838, allocations: 16.67 MB / 0.5744 GB, free: 1.52 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003134/0.5842, allocations: 79.48 kB / 0.5745 GB, free: 1.473 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001864/0.586, allocations: 258.9 kB / 0.5748 GB, free: 1.273 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004833/0.5909, allocations: 2.925 MB / 0.5776 GB, free: 14.39 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0292/0.6201, allocations: 12.78 MB / 0.5901 GB, free: 1.895 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09308/0.7132, allocations: 64.29 MB / 0.6529 GB, free: 0.707 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01689/0.7302, allocations: 5.377 MB / 0.6581 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003811/0.734, allocations: 2.118 MB / 0.6602 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02118/0.7552, allocations: 9.918 MB / 0.6699 GB, free: 14.74 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.897e-05/0.7553, allocations: 58.78 kB / 0.6699 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=182): time 5.34e-06/0.7554, allocations: 0 / 0.6699 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of matching and sorting (n=206): time 0.04374/0.7991, allocations: 13.97 MB / 0.6836 GB, free: 0.7305 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001224/0.7993, allocations: 153.8 kB / 0.6837 GB, free: 0.5469 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01449/0.8138, allocations: 6.314 MB / 0.6899 GB, free: 10.23 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003692/0.8142, allocations: 57.7 kB / 0.69 GB, free: 10.17 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004965/0.8191, allocations: 5.085 MB / 0.6949 GB, free: 5.09 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001153/0.8203, allocations: 0.8131 MB / 0.6957 GB, free: 4.281 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003388/0.8237, allocations: 1.659 MB / 0.6973 GB, free: 2.613 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001414/0.8239, allocations: 305.1 kB / 0.6976 GB, free: 2.312 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00428/0.8282, allocations: 2.292 MB / 0.6999 GB, free: 12 kB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01002/0.8382, allocations: 7.636 MB / 0.7073 GB, free: 5.793 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2452/1.083, allocations: 10.81 MB / 0.7179 GB, free: 174.5 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002432/1.084, allocations: 59 kB / 0.7179 GB, free: 174.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=1091) (initialization): time 0.0224/1.106, allocations: 9.555 MB / 0.7273 GB, free: 171.8 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005711/1.107, allocations: 92.42 kB / 0.7274 GB, free: 171.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006099/1.107, allocations: 189.4 kB / 0.7275 GB, free: 171.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000783/1.108, allocations: 250.3 kB / 0.7278 GB, free: 171.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01029/1.119, allocations: 1.905 MB / 0.7296 GB, free: 171.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004486/1.119, allocations: 374.8 kB / 0.73 GB, free: 171.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006137/1.125, allocations: 410.4 kB / 0.7304 GB, free: 171.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001651/1.127, allocations: 0.5094 MB / 0.7309 GB, free: 171.3 MB / 0.545 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.008746/1.136, allocations: 3.285 MB / 0.7341 GB, free: 169.9 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001144/1.137, allocations: 0.5312 MB / 0.7346 GB, free: 169.9 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001511/1.138, allocations: 0.6294 MB / 0.7352 GB, free: 169.6 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.115e-05/1.138, allocations: 23.05 kB / 0.7352 GB, free: 169.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.906e-05/1.138, allocations: 3 kB / 0.7352 GB, free: 169.6 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.969e-05/1.138, allocations: 8.859 kB / 0.7353 GB, free: 169.6 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01928/1.158, allocations: 15 MB / 0.7499 GB, free: 163.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.602e-05/1.158, allocations: 47.5 kB / 0.7499 GB, free: 163.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001201/1.159, allocations: 442.4 kB / 0.7504 GB, free: 163.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.386e-05/1.159, allocations: 68.97 kB / 0.7504 GB, free: 163.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001293/1.159, allocations: 102.2 kB / 0.7505 GB, free: 163.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.245e-05/1.159, allocations: 89.81 kB / 0.7506 GB, free: 163.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.157e-05/1.159, allocations: 74.97 kB / 0.7507 GB, free: 163.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003747/1.163, allocations: 4.298 MB / 0.7549 GB, free: 160.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001172/1.164, allocations: 0.6297 MB / 0.7555 GB, free: 159.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005606/1.165, allocations: 111.7 kB / 0.7556 GB, free: 159.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001801/1.167, allocations: 112.3 kB / 0.7557 GB, free: 159.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002686/1.167, allocations: 311.8 kB / 0.756 GB, free: 159.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001414/1.167, allocations: 129 kB / 0.7561 GB, free: 159.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006071/1.173, allocations: 3.951 MB / 0.76 GB, free: 158.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.51e-07/1.173, allocations: 4 kB / 0.76 GB, free: 158.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007478/1.181, allocations: 1.306 MB / 0.7613 GB, free: 157.1 MB / 0.545 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.003929/1.185, allocations: 5.031 MB / 0.7662 GB, free: 151.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00752/1.192, allocations: 5.492 MB / 0.7715 GB, free: 146.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.182e-05/1.192, allocations: 11.78 kB / 0.7716 GB, free: 146.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001417/1.194, allocations: 1.2 MB / 0.7727 GB, free: 145.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005712/1.199, allocations: 0.8861 MB / 0.7736 GB, free: 145 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08147/1.281, allocations: 78.89 MB / 0.8506 GB, free: 54.63 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006331/1.287, allocations: 5.07 MB / 0.8556 GB, free: 49.54 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006355/1.294, allocations: 2.542 MB / 0.8581 GB, free: 46.99 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004372/1.298, allocations: 3.292 MB / 0.8613 GB, free: 43.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.513e-06/1.298, allocations: 0 / 0.8613 GB, free: 43.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3688/1.667, allocations: 98.17 MB / 0.9571 GB, free: 180.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/12.75, allocations: 1.438 kB / 0.9572 GB, free: 180.1 MB / 0.5606 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)