Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameTorques.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.Forces.FrameTorques,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_FrameTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_FrameTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001294/0.001294, 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.001353/0.001354, 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.489/1.489, allocations: 227.4 MB / 246.8 MB, free: 10.57 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.2421/0.2421, allocations: 46.12 MB / 344.2 MB, free: 11.57 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.002289/0.002289, allocations: 89.59 kB / 417.8 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1422, allocations: 62.46 MB / 480.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameTorques): time 0.01514/0.1574, allocations: 12.66 MB / 492.9 MB, free: 8.418 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01005/0.1675, allocations: 4.499 MB / 497.4 MB, free: 3.906 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002668/0.1702, allocations: 83.75 kB / 497.5 MB, free: 3.824 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007353/0.1776, allocations: 3.707 MB / 0.4894 GB, free: 108 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006058/0.1837, allocations: 2.187 MB / 0.4916 GB, free: 13.91 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002286/0.186, allocations: 0.9865 MB / 0.4925 GB, free: 12.92 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008803/0.1948, allocations: 6.058 MB / 0.4984 GB, free: 6.852 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005548/0.2004, allocations: 4.557 MB / 0.5029 GB, free: 2.227 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003141/0.2036, allocations: 1.947 MB / 0.5048 GB, free: 280 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2569/0.4605, allocations: 2.608 MB / 0.5073 GB, free: 17.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001882/0.4625, allocations: 411.9 kB / 0.5077 GB, free: 17.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004595/0.4671, allocations: 1.434 MB / 0.5091 GB, free: 17.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003866/0.471, allocations: 2.427 MB / 0.5115 GB, free: 17.38 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004619/0.4756, allocations: 2.771 MB / 0.5142 GB, free: 16.41 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01351/0.4891, allocations: 8.493 MB / 0.5225 GB, free: 14.97 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.716e-06/0.4892, allocations: 5.156 kB / 0.5225 GB, free: 14.96 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.4892, allocations: 0 / 0.5225 GB, free: 14.96 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003602/0.4896, allocations: 0 / 0.5225 GB, free: 14.96 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: 1729 * Number of variables: 1729 Notification: Performance of Generate backend data structure: time 0.02065/0.5102, allocations: 6.202 MB / 0.5286 GB, free: 11.7 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.313e-05/0.5103, allocations: 13.12 kB / 0.5286 GB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002333/0.5126, allocations: 0.8203 MB / 0.5294 GB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03843/0.5511, allocations: 6.027 MB / 0.5353 GB, free: 8.219 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01161/0.5627, allocations: 4.064 MB / 0.5392 GB, free: 5.941 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002881/0.563, allocations: 280 kB / 0.5395 GB, free: 5.852 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002088/0.5651, allocations: 373.8 kB / 0.5398 GB, free: 5.758 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02808/0.5932, allocations: 11.48 MB / 0.5511 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003823/0.5937, allocations: 69.02 kB / 0.5511 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002177/0.5959, allocations: 173.8 kB / 0.5513 GB, free: 11.76 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004526/0.6004, allocations: 2.15 MB / 0.5534 GB, free: 9.645 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02393/0.6244, allocations: 9.373 MB / 0.5625 GB, free: 500 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0754/0.6998, allocations: 45.46 MB / 0.6069 GB, free: 2.379 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01134/0.7112, allocations: 3.791 MB / 0.6106 GB, free: 14.45 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003261/0.7145, allocations: 2.011 MB / 0.6126 GB, free: 12.43 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01225/0.7268, allocations: 5.637 MB / 0.6181 GB, free: 6.734 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.031e-05/0.7269, allocations: 59.06 kB / 0.6182 GB, free: 6.668 MB / 462.1 MB Notification: Performance of pre-optimization done (n=150): time 5.49e-06/0.7269, allocations: 0 / 0.6182 GB, free: 6.668 MB / 462.1 MB Notification: Performance of matching and sorting (n=162): time 0.0507/0.7776, allocations: 15.57 MB / 0.6334 GB, free: 6.922 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001879/0.7778, allocations: 233.3 kB / 0.6336 GB, free: 6.648 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01308/0.7909, allocations: 5.627 MB / 0.6391 GB, free: 1.043 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005032/0.7915, allocations: 45.7 kB / 0.6391 GB, free: 0.9922 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004258/0.7958, allocations: 3.759 MB / 0.6428 GB, free: 13.23 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0014/0.7972, allocations: 0.6541 MB / 0.6434 GB, free: 12.59 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005055/0.8023, allocations: 1.344 MB / 0.6448 GB, free: 11.23 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.8024, allocations: 301.1 kB / 0.645 GB, free: 10.94 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005209/0.8077, allocations: 2.078 MB / 0.6471 GB, free: 8.855 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0095/0.8172, allocations: 6.316 MB / 0.6532 GB, free: 0.4961 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01302/0.8302, allocations: 9.123 MB / 0.6621 GB, free: 5.871 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001606/0.8304, allocations: 44 kB / 0.6622 GB, free: 5.828 MB / 0.4981 GB Notification: Performance of matching and sorting (n=860) (initialization): time 0.01895/0.8494, allocations: 8.607 MB / 0.6706 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001801/0.8496, allocations: 68 kB / 0.6707 GB, free: 13.22 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002302/0.8499, allocations: 155.9 kB / 0.6708 GB, free: 13.07 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002035/0.8519, allocations: 0.7237 MB / 0.6715 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005315/0.8572, allocations: 1.497 MB / 0.673 GB, free: 10.84 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009635/0.8669, allocations: 6.972 MB / 0.6798 GB, free: 3.594 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005903/0.8728, allocations: 339.5 kB / 0.6801 GB, free: 3.262 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001467/0.8743, allocations: 415 kB / 0.6805 GB, free: 2.859 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 686 * Number of states: 0 () * Number of discrete variables: 49 (frameTorque2.arrow.twoHeadedArrow,frameTorque2.arrow.headAtOrigin,frameTorque1.arrow.twoHeadedArrow,frameTorque1.arrow.headAtOrigin,Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.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 (798): * Single equations (assignments): 791 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,14,100.0%), (1,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006643/0.881, allocations: 2.453 MB / 0.6829 GB, free: 404 kB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0013/0.8823, allocations: 466 kB / 0.6833 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006063/0.8884, allocations: 2.655 MB / 0.6859 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.775e-05/0.8884, allocations: 16 kB / 0.686 GB, free: 13.24 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.511e-05/0.8885, allocations: 12.66 kB / 0.686 GB, free: 13.23 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.046e-05/0.8885, allocations: 7.969 kB / 0.686 GB, free: 13.22 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02206/0.9106, allocations: 7.489 MB / 0.6933 GB, free: 5.676 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-05/0.9106, allocations: 0 / 0.6933 GB, free: 5.676 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001402/0.912, allocations: 255.9 kB / 0.6935 GB, free: 5.426 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001634/0.9137, allocations: 0.4972 MB / 0.694 GB, free: 4.922 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002346/0.914, allocations: 28 kB / 0.694 GB, free: 4.895 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008127/0.9221, allocations: 6.302 MB / 0.7002 GB, free: 14.32 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.9221, allocations: 4 kB / 0.7002 GB, free: 14.32 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008736/0.9309, allocations: 4.94 MB / 0.705 GB, free: 9.32 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001935/0.9329, allocations: 0.5107 MB / 0.7055 GB, free: 8.785 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00139/0.9343, allocations: 39.92 kB / 0.7056 GB, free: 8.746 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002366/0.9367, allocations: 71.92 kB / 0.7056 GB, free: 8.676 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003543/0.937, allocations: 95.78 kB / 0.7057 GB, free: 8.586 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001538/0.9372, allocations: 51.98 kB / 0.7058 GB, free: 8.535 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.008927/0.9461, allocations: 3.606 MB / 0.7093 GB, free: 4.953 MB / 0.545 GB Notification: Performance of sort global known variables: time 7.31e-07/0.9462, allocations: 0 / 0.7093 GB, free: 4.953 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008338/0.9545, allocations: 1.09 MB / 0.7104 GB, free: 3.863 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 4 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w) * 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 (120): * Single equations (assignments): 115 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,11,100.0%), (1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.3174/1.272, allocations: 5.585 MB / 0.7158 GB, free: 190.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01737/1.289, allocations: 5.537 MB / 0.7212 GB, free: 189.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.112e-05/1.289, allocations: 0 / 0.7212 GB, free: 189.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004532/1.294, allocations: 1.496 MB / 0.7227 GB, free: 189.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01055/1.305, allocations: 0.6309 MB / 0.7233 GB, free: 189 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1211/1.426, allocations: 65.46 MB / 0.7872 GB, free: 130.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00748/1.433, allocations: 3.769 MB / 0.7909 GB, free: 127.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00595/1.439, allocations: 2.113 MB / 0.793 GB, free: 125.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004225/1.444, allocations: 2.307 MB / 0.7952 GB, free: 123.3 MB / 0.545 GB Notification: Performance of SimCode: time 8.62e-07/1.444, allocations: 0 / 0.7952 GB, free: 123.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1456/1.589, allocations: 88.74 MB / 0.8819 GB, free: 34.86 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.43/14.02, allocations: 8.047 kB / 0.8819 GB, free: 34.86 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameTorques.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameTorques.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameTorques_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_FrameTorques_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_FrameTorques.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameTorques.pipe 2>&1)