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.001702/0.001702, 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.002008/0.002008, 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.491/1.491, allocations: 227.4 MB / 246.8 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.2349/0.2349, allocations: 46.12 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.00334/0.00334, allocations: 76.5 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1553/0.1587, allocations: 62.45 MB / 480.2 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.01905/0.1778, allocations: 15.51 MB / 495.7 MB, free: 5.547 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01219/0.19, allocations: 4.933 MB / 0.4889 GB, free: 0.5977 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003012/0.1931, allocations: 103.8 kB / 0.489 GB, free: 0.4961 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01102/0.2042, allocations: 4.992 MB / 0.4939 GB, free: 11.49 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008908/0.2131, allocations: 2.47 MB / 0.4963 GB, free: 9.008 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003603/0.2168, allocations: 1.072 MB / 0.4973 GB, free: 7.934 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01341/0.2302, allocations: 6.851 MB / 0.504 GB, free: 1.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.282/0.5123, allocations: 5.753 MB / 0.5097 GB, free: 13.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005375/0.5177, allocations: 2.379 MB / 0.512 GB, free: 12.95 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006733/0.5245, allocations: 3.206 MB / 0.5151 GB, free: 12.6 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002794/0.5273, allocations: 0.4994 MB / 0.5156 GB, free: 12.6 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004885/0.5322, allocations: 1.389 MB / 0.517 GB, free: 12.6 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005435/0.5377, allocations: 2.967 MB / 0.5199 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007707/0.5454, allocations: 3.403 MB / 0.5232 GB, free: 10.92 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01388/0.5593, allocations: 10.16 MB / 0.5331 GB, free: 6.598 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.5594, allocations: 4 kB / 0.5331 GB, free: 6.594 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.5594, allocations: 0 / 0.5331 GB, free: 6.594 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003918/0.5598, allocations: 0 / 0.5331 GB, free: 6.594 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.01934/0.5791, allocations: 7.58 MB / 0.5405 GB, free: 1.578 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.5792, allocations: 9.125 kB / 0.5405 GB, free: 1.578 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002504/0.5817, allocations: 1.024 MB / 0.5415 GB, free: 0.918 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.039/0.6207, allocations: 6.192 MB / 0.5476 GB, free: 13.28 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01277/0.6335, allocations: 4.58 MB / 0.552 GB, free: 8.875 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003464/0.6339, allocations: 355.1 kB / 0.5524 GB, free: 8.574 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001787/0.6357, allocations: 488.7 kB / 0.5528 GB, free: 8.145 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02744/0.6632, allocations: 14.12 MB / 0.5666 GB, free: 9.273 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001933/0.6634, allocations: 59.66 kB / 0.5667 GB, free: 9.242 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000707/0.6641, allocations: 230.8 kB / 0.5669 GB, free: 9.066 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005048/0.6692, allocations: 2.707 MB / 0.5695 GB, free: 6.398 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02643/0.6956, allocations: 11.78 MB / 0.5811 GB, free: 10.86 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07873/0.7744, allocations: 57.05 MB / 0.6368 GB, free: 1.074 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01607/0.7905, allocations: 6.158 MB / 0.6428 GB, free: 10.77 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005147/0.7957, allocations: 3.59 MB / 0.6463 GB, free: 7.168 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01516/0.8109, allocations: 8.298 MB / 0.6544 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.007e-05/0.811, allocations: 63.31 kB / 0.6545 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=236): time 4.859e-06/0.811, allocations: 0 / 0.6545 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of matching and sorting (n=278): time 0.08437/0.8954, allocations: 28.77 MB / 0.6825 GB, free: 1.754 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001706/0.8956, allocations: 238 kB / 0.6828 GB, free: 1.473 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01413/0.9097, allocations: 6.701 MB / 0.6893 GB, free: 10.77 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008254/0.9106, allocations: 72.59 kB / 0.6894 GB, free: 10.7 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.005304/0.9159, allocations: 4.462 MB / 0.6937 GB, free: 6.242 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002063/0.918, allocations: 1.063 MB / 0.6948 GB, free: 5.188 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005144/0.9232, allocations: 1.72 MB / 0.6965 GB, free: 3.453 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001658/0.9233, allocations: 305.1 kB / 0.6968 GB, free: 3.152 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006903/0.9302, allocations: 3.355 MB / 0.7 GB, free: 15.79 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01242/0.9427, allocations: 8.401 MB / 0.7082 GB, free: 4.973 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3052/1.248, allocations: 12.74 MB / 0.7207 GB, free: 159 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001762/1.248, allocations: 50.72 kB / 0.7207 GB, free: 159 MB / 0.545 GB Notification: Performance of matching and sorting (n=1102) (initialization): time 0.02723/1.275, allocations: 13.02 MB / 0.7334 GB, free: 158.6 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001252/1.276, allocations: 81.83 kB / 0.7335 GB, free: 158.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003247/1.276, allocations: 180.5 kB / 0.7337 GB, free: 158.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005239/1.281, allocations: 1.79 MB / 0.7354 GB, free: 158.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007656/1.289, allocations: 1.948 MB / 0.7373 GB, free: 158.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01455/1.303, allocations: 12.86 MB / 0.7499 GB, free: 151.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007248/1.311, allocations: 489.7 kB / 0.7504 GB, free: 151.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0015/1.312, allocations: 0.5136 MB / 0.7509 GB, free: 151.1 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.005427/1.318, allocations: 2.987 MB / 0.7538 GB, free: 149.8 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001147/1.319, allocations: 0.5591 MB / 0.7543 GB, free: 149.8 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009924/1.329, allocations: 6.339 MB / 0.7605 GB, free: 146.8 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.416e-05/1.329, allocations: 28 kB / 0.7605 GB, free: 146.8 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.28e-05/1.329, allocations: 13.67 kB / 0.7606 GB, free: 146.8 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.049e-05/1.329, allocations: 15.95 kB / 0.7606 GB, free: 146.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02326/1.352, allocations: 14.18 MB / 0.7744 GB, free: 134.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.722e-05/1.352, allocations: 4 kB / 0.7744 GB, free: 134.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003026/1.355, allocations: 455.8 kB / 0.7749 GB, free: 134.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005585/1.361, allocations: 1.539 MB / 0.7764 GB, free: 132.7 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008639/1.362, allocations: 48 kB / 0.7764 GB, free: 132.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01648/1.378, allocations: 12.08 MB / 0.7882 GB, free: 120.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/1.378, allocations: 4 kB / 0.7882 GB, free: 120.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01304/1.392, allocations: 10.3 MB / 0.7983 GB, free: 110.1 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001567/1.393, allocations: 0.6329 MB / 0.7989 GB, free: 109.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009351/1.394, allocations: 48 kB / 0.7989 GB, free: 109.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002423/1.397, allocations: 186.8 kB / 0.7991 GB, free: 109.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004978/1.397, allocations: 173.6 kB / 0.7993 GB, free: 109 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001786/1.397, allocations: 79.92 kB / 0.7994 GB, free: 108.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006255/1.403, allocations: 4.306 MB / 0.8036 GB, free: 104.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.41e-07/1.403, allocations: 0 / 0.8036 GB, free: 104.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00809/1.412, allocations: 1.51 MB / 0.805 GB, free: 103.1 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.01421/1.426, allocations: 10.98 MB / 0.8158 GB, free: 92 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01372/1.44, allocations: 9.841 MB / 0.8254 GB, free: 82.19 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-05/1.44, allocations: 4.312 kB / 0.8254 GB, free: 82.19 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004955/1.445, allocations: 3.239 MB / 0.8285 GB, free: 78.93 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005033/1.45, allocations: 0.7532 MB / 0.8293 GB, free: 78.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1347/1.584, allocations: 94.03 MB / 0.9211 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2457/1.83, allocations: 4.527 MB / 0.9255 GB, free: 214.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.009815/1.84, allocations: 2.773 MB / 0.9282 GB, free: 214 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005914/1.846, allocations: 2.934 MB / 0.9311 GB, free: 214 MB / 0.5762 GB Notification: Performance of SimCode: time 1.633e-06/1.846, allocations: 0 / 0.9311 GB, free: 214 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1894/2.035, allocations: 122.2 MB / 1.05 GB, free: 115.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.27/15.3, allocations: 6.719 kB / 1.05 GB, free: 115.5 MB / 0.5762 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Torque_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_Torque.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1)