Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Torque.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.Torque,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001807/0.001807, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002216/0.002216, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.524/1.524, allocations: 227.4 MB / 246.8 MB, free: 10.51 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.2326/0.2326, allocations: 46.11 MB / 344.2 MB, free: 11.55 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.003721/0.003721, allocations: 86.39 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1616/0.1653, allocations: 62.44 MB / 480.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.01901/0.1844, allocations: 15.51 MB / 495.7 MB, free: 5.551 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01257/0.197, allocations: 4.929 MB / 0.4889 GB, free: 0.6055 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003649/0.2007, allocations: 99.75 kB / 0.489 GB, free: 0.5078 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01049/0.2113, allocations: 5.004 MB / 0.4939 GB, free: 11.49 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00883/0.2201, allocations: 2.462 MB / 0.4963 GB, free: 9.016 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003568/0.2237, allocations: 1.072 MB / 0.4973 GB, free: 7.941 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01181/0.2356, allocations: 6.847 MB / 0.504 GB, free: 1.078 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2694/0.505, allocations: 5.752 MB / 0.5097 GB, free: 13.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006074/0.5111, allocations: 2.378 MB / 0.512 GB, free: 12.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006803/0.518, allocations: 3.204 MB / 0.5151 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002759/0.5208, allocations: 0.4995 MB / 0.5156 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006526/0.5273, allocations: 1.393 MB / 0.517 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007455/0.5348, allocations: 2.972 MB / 0.5199 GB, free: 12.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008355/0.5432, allocations: 3.401 MB / 0.5232 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0136/0.5568, allocations: 10.16 MB / 0.5331 GB, free: 6.594 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.5569, allocations: 3.984 kB / 0.5331 GB, free: 6.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.5569, allocations: 0 / 0.5331 GB, free: 6.59 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004239/0.5573, allocations: 0 / 0.5331 GB, free: 6.59 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: 2161 * Number of variables: 2161 Notification: Performance of Generate backend data structure: time 0.02153/0.5788, allocations: 7.577 MB / 0.5405 GB, free: 1.578 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.442e-05/0.5789, allocations: 9.719 kB / 0.5405 GB, free: 1.578 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003995/0.5829, allocations: 1.023 MB / 0.5415 GB, free: 0.918 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04117/0.6241, allocations: 6.193 MB / 0.5476 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01202/0.6362, allocations: 4.583 MB / 0.552 GB, free: 8.891 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004723/0.6367, allocations: 363.5 kB / 0.5524 GB, free: 8.582 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002323/0.6391, allocations: 480.8 kB / 0.5528 GB, free: 8.16 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02991/0.669, allocations: 14.12 MB / 0.5666 GB, free: 9.285 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002156/0.6693, allocations: 64.41 kB / 0.5667 GB, free: 9.25 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009102/0.6702, allocations: 230 kB / 0.5669 GB, free: 9.074 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005258/0.6754, allocations: 2.705 MB / 0.5695 GB, free: 6.41 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02514/0.7006, allocations: 11.78 MB / 0.5811 GB, free: 10.87 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08481/0.7854, allocations: 57.06 MB / 0.6368 GB, free: 1.082 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01645/0.8019, allocations: 6.165 MB / 0.6428 GB, free: 10.78 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005471/0.8075, allocations: 3.584 MB / 0.6463 GB, free: 7.18 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01768/0.8252, allocations: 8.3 MB / 0.6544 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.326e-05/0.8253, allocations: 63.22 kB / 0.6545 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=236): time 5.3e-06/0.8253, allocations: 0 / 0.6545 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of matching and sorting (n=278): time 0.08764/0.913, allocations: 28.77 MB / 0.6826 GB, free: 1.758 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000192/0.9132, allocations: 231.6 kB / 0.6828 GB, free: 1.48 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01306/0.9263, allocations: 6.701 MB / 0.6893 GB, free: 10.78 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0009271/0.9273, allocations: 67.73 kB / 0.6894 GB, free: 10.71 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.005078/0.9323, allocations: 4.457 MB / 0.6937 GB, free: 6.258 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001895/0.9343, allocations: 1.067 MB / 0.6948 GB, free: 5.199 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003066/0.9373, allocations: 1.72 MB / 0.6965 GB, free: 3.469 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001344/0.9375, allocations: 309.1 kB / 0.6967 GB, free: 3.164 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005782/0.9433, allocations: 3.356 MB / 0.7 GB, free: 15.8 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01179/0.9551, allocations: 8.403 MB / 0.7082 GB, free: 4.98 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2663/1.221, allocations: 12.74 MB / 0.7207 GB, free: 176 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001395/1.222, allocations: 50.88 kB / 0.7207 GB, free: 176 MB / 0.545 GB Notification: Performance of matching and sorting (n=1102) (initialization): time 0.0267/1.248, allocations: 13.03 MB / 0.7334 GB, free: 172 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001363/1.248, allocations: 81.83 kB / 0.7335 GB, free: 172 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002521/1.249, allocations: 178.8 kB / 0.7337 GB, free: 172 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004642/1.253, allocations: 1.787 MB / 0.7354 GB, free: 171.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006469/1.26, allocations: 1.944 MB / 0.7373 GB, free: 171.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01383/1.274, allocations: 12.87 MB / 0.7499 GB, free: 164.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00777/1.282, allocations: 492.6 kB / 0.7504 GB, free: 164.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00187/1.283, allocations: 0.5113 MB / 0.7509 GB, free: 164.5 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 808 * Number of states: 0 () * Number of discrete variables: 67 (torque2.torqueArrow.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque1.torqueArrow.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.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 (1020): * Single equations (assignments): 1013 * 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 {(2,23,100.0%), (2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007262/1.291, allocations: 2.989 MB / 0.7538 GB, free: 163.2 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001381/1.292, allocations: 0.5607 MB / 0.7543 GB, free: 163.2 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009982/1.302, allocations: 6.331 MB / 0.7605 GB, free: 160.2 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.119e-05/1.302, allocations: 32 kB / 0.7606 GB, free: 160.2 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.211e-05/1.302, allocations: 12.88 kB / 0.7606 GB, free: 160.1 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-05/1.302, allocations: 11.06 kB / 0.7606 GB, free: 160.1 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02227/1.325, allocations: 14.17 MB / 0.7744 GB, free: 148.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.281e-05/1.325, allocations: 4 kB / 0.7744 GB, free: 148.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00217/1.327, allocations: 455.3 kB / 0.7749 GB, free: 148 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003553/1.33, allocations: 1.536 MB / 0.7764 GB, free: 146.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000506/1.331, allocations: 57.8 kB / 0.7764 GB, free: 146.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01496/1.346, allocations: 12.07 MB / 0.7882 GB, free: 134.1 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.107e-06/1.346, allocations: 11.92 kB / 0.7882 GB, free: 134.1 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01412/1.36, allocations: 10.31 MB / 0.7983 GB, free: 123.8 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00178/1.362, allocations: 0.6225 MB / 0.7989 GB, free: 123.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001057/1.363, allocations: 53.88 kB / 0.7989 GB, free: 123.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002342/1.365, allocations: 175.8 kB / 0.7991 GB, free: 122.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004708/1.366, allocations: 173.6 kB / 0.7993 GB, free: 122.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001819/1.366, allocations: 75.94 kB / 0.7993 GB, free: 122.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005369/1.371, allocations: 4.302 MB / 0.8035 GB, free: 118.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.41e-07/1.371, allocations: 0 / 0.8035 GB, free: 118.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007159/1.378, allocations: 1.516 MB / 0.805 GB, free: 116.9 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.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 (220): * Single equations (assignments): 215 * 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 {(4,18,75.0%), (4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01268/1.391, allocations: 10.99 MB / 0.8158 GB, free: 105.7 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01334/1.405, allocations: 9.846 MB / 0.8254 GB, free: 95.91 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.788e-05/1.405, allocations: 0 / 0.8254 GB, free: 95.91 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004461/1.409, allocations: 3.237 MB / 0.8285 GB, free: 92.65 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004307/1.413, allocations: 0.7555 MB / 0.8293 GB, free: 91.91 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1231/1.537, allocations: 94.03 MB / 0.9211 GB, free: 1.316 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2327/1.769, allocations: 4.533 MB / 0.9255 GB, free: 199.4 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.007883/1.777, allocations: 2.774 MB / 0.9282 GB, free: 199.3 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004457/1.782, allocations: 2.934 MB / 0.9311 GB, free: 199.3 MB / 0.5606 GB Notification: Performance of SimCode: time 1.172e-06/1.782, allocations: 0 / 0.9311 GB, free: 199.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1786/1.96, allocations: 122.2 MB / 1.05 GB, free: 98.96 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.24/15.2, allocations: 2.5 kB / 1.05 GB, free: 98.96 MB / 0.5606 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Torque.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Torque_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_Torque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_Torque.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1)