Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.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.Joints.CheckConstaintTorqueUniversalJoint,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001866/0.001866, allocations: 103.8 kB / 17.63 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002284/0.002284, allocations: 210.4 kB / 18.58 MB, free: 4.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 227.4 MB / 246.8 MB, free: 10.59 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.2732/0.2732, 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.002248/0.002249, allocations: 80.58 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1173, allocations: 62.45 MB / 480.2 MB, free: 5.141 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.01173/0.1291, allocations: 9.455 MB / 489.7 MB, free: 11.64 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007782/0.1369, allocations: 3.804 MB / 493.5 MB, free: 7.824 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001283/0.1383, allocations: 51.88 kB / 493.5 MB, free: 7.773 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004385/0.1427, allocations: 2.293 MB / 495.8 MB, free: 5.473 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004194/0.1469, allocations: 1.603 MB / 497.4 MB, free: 3.863 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001649/0.1486, allocations: 0.6901 MB / 498.1 MB, free: 3.172 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006107/0.1547, allocations: 3.795 MB / 0.4901 GB, free: 15.37 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003897/0.1587, allocations: 2.895 MB / 0.493 GB, free: 12.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002381/0.1611, allocations: 1.289 MB / 0.4942 GB, free: 11.13 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002319/0.1634, allocations: 1.717 MB / 0.4959 GB, free: 9.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005521/0.164, allocations: 280 kB / 0.4962 GB, free: 9.137 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001978/0.166, allocations: 1.151 MB / 0.4973 GB, free: 7.984 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001499/0.1675, allocations: 1.586 MB / 0.4988 GB, free: 6.395 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001983/0.1695, allocations: 1.884 MB / 0.5007 GB, free: 4.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2063/0.3757, allocations: 6.076 MB / 0.5066 GB, free: 21.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.807e-06/0.3758, allocations: 0 / 0.5066 GB, free: 21.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3758, allocations: 0 / 0.5066 GB, free: 21.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002115/0.376, allocations: 0 / 0.5066 GB, free: 21.09 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: 1276 * Number of variables: 1276 Notification: Performance of Generate backend data structure: time 0.01401/0.39, allocations: 4.239 MB / 0.5108 GB, free: 19.51 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.43e-05/0.3901, allocations: 8.719 kB / 0.5108 GB, free: 19.51 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002231/0.3924, allocations: 0.6129 MB / 0.5114 GB, free: 19.44 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02331/0.4157, allocations: 3.749 MB / 0.515 GB, free: 19.17 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00825/0.424, allocations: 2.48 MB / 0.5174 GB, free: 18.63 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002228/0.4242, allocations: 195.4 kB / 0.5176 GB, free: 18.62 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001392/0.4256, allocations: 258.1 kB / 0.5179 GB, free: 18.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01645/0.4421, allocations: 8.524 MB / 0.5262 GB, free: 15.1 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001202/0.4423, allocations: 45.33 kB / 0.5262 GB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004365/0.4427, allocations: 124.8 kB / 0.5264 GB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002764/0.4455, allocations: 1.737 MB / 0.5281 GB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0126/0.4581, allocations: 7.433 MB / 0.5353 GB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04579/0.5039, allocations: 34.01 MB / 0.5685 GB, free: 9.988 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007478/0.5114, allocations: 3.021 MB / 0.5715 GB, free: 6.828 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002627/0.5141, allocations: 1.85 MB / 0.5733 GB, free: 4.973 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004497/0.5146, allocations: 335.8 kB / 0.5736 GB, free: 4.598 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.09e-05/0.5146, allocations: 49.19 kB / 0.5737 GB, free: 4.543 MB / 414.1 MB Notification: Performance of pre-optimization done (n=135): time 4.318e-06/0.5147, allocations: 4 kB / 0.5737 GB, free: 4.539 MB / 414.1 MB Notification: Performance of matching and sorting (n=156): time 0.03986/0.5545, allocations: 14.36 MB / 0.5877 GB, free: 6.078 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000137/0.5547, allocations: 170.9 kB / 0.5878 GB, free: 5.879 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006126/0.5608, allocations: 3.527 MB / 0.5913 GB, free: 2.352 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004729/0.5614, allocations: 53.61 kB / 0.5913 GB, free: 2.297 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002551/0.5639, allocations: 2.658 MB / 0.5939 GB, free: 15.64 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001141/0.5651, allocations: 0.6025 MB / 0.5945 GB, free: 15.05 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001667/0.5667, allocations: 1.064 MB / 0.5956 GB, free: 13.98 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.5669, allocations: 309.1 kB / 0.5959 GB, free: 13.67 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00311/0.57, allocations: 2.013 MB / 0.5978 GB, free: 11.65 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006966/0.577, allocations: 5.22 MB / 0.6029 GB, free: 4.871 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01124/0.5883, allocations: 7.846 MB / 0.6106 GB, free: 11.91 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001092/0.5885, allocations: 32 kB / 0.6106 GB, free: 11.88 MB / 462.1 MB Notification: Performance of matching and sorting (n=678) (initialization): time 0.01561/0.6041, allocations: 7.789 MB / 0.6182 GB, free: 4.273 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001135/0.6042, allocations: 61.97 kB / 0.6183 GB, free: 4.215 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001661/0.6044, allocations: 112 kB / 0.6184 GB, free: 4.105 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002555/0.607, allocations: 0.9651 MB / 0.6193 GB, free: 3.137 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004133/0.6111, allocations: 1.181 MB / 0.6205 GB, free: 1.953 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01042/0.6215, allocations: 6.926 MB / 0.6272 GB, free: 10.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004193/0.6258, allocations: 302 kB / 0.6275 GB, free: 10.61 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001086/0.6269, allocations: 320 kB / 0.6278 GB, free: 10.29 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 516 * Number of states: 0 () * Number of discrete variables: 26 (torque.arrow.twoHeadedArrow,torque.arrow.headAtOrigin,universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],torque.color[3],torque.color[2],torque.color[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[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 (630): * Single equations (assignments): 626 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004916/0.6318, allocations: 1.848 MB / 0.6296 GB, free: 8.43 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00106/0.6329, allocations: 304 kB / 0.6299 GB, free: 8.129 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006489/0.6394, allocations: 3.198 MB / 0.6331 GB, free: 4.914 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.295e-05/0.6395, allocations: 19.98 kB / 0.6331 GB, free: 4.895 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.518e-05/0.6395, allocations: 4 kB / 0.6331 GB, free: 4.891 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.863e-05/0.6395, allocations: 11.97 kB / 0.6331 GB, free: 4.879 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01661/0.6562, allocations: 7.928 MB / 0.6408 GB, free: 12.93 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-05/0.6562, allocations: 3.375 kB / 0.6408 GB, free: 12.93 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001272/0.6575, allocations: 227.7 kB / 0.6411 GB, free: 12.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0023/0.6598, allocations: 0.8124 MB / 0.6418 GB, free: 11.89 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002174/0.6601, allocations: 26.58 kB / 0.6419 GB, free: 11.86 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009147/0.6692, allocations: 6.436 MB / 0.6482 GB, free: 5.297 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.6693, allocations: 4 kB / 0.6482 GB, free: 5.293 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0103/0.6796, allocations: 5.814 MB / 0.6538 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001309/0.6809, allocations: 365 kB / 0.6542 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009339/0.6819, allocations: 20 kB / 0.6542 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001857/0.6838, allocations: 95.86 kB / 0.6543 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004243/0.6842, allocations: 88.81 kB / 0.6544 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001997/0.6844, allocations: 40 kB / 0.6544 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004773/0.6892, allocations: 2.205 MB / 0.6566 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.8e-07/0.6893, allocations: 0 / 0.6566 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.006289/0.6955, allocations: 0.8628 MB / 0.6574 GB, free: 11.78 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (universal.phi_a,universal.phi_b,universal.w_a,universal.w_b) * 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 (115): * Single equations (assignments): 111 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.01165/0.7072, allocations: 6.437 MB / 0.6637 GB, free: 5.312 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01109/0.7184, allocations: 5.623 MB / 0.6692 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.343e-06/0.7184, allocations: 0 / 0.6692 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003517/0.7219, allocations: 1.771 MB / 0.6709 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003673/0.7256, allocations: 396.6 kB / 0.6713 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2631/0.9888, allocations: 45.02 MB / 0.7153 GB, free: 196.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004085/0.9929, allocations: 2.878 MB / 0.7181 GB, free: 196 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004929/0.9979, allocations: 1.71 MB / 0.7198 GB, free: 195.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002304/1, allocations: 1.552 MB / 0.7213 GB, free: 195.1 MB / 0.545 GB Notification: Performance of SimCode: time 1.102e-06/1, allocations: 1.156 kB / 0.7213 GB, free: 195.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1387/1.139, allocations: 65.73 MB / 0.7855 GB, free: 144 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.93, allocations: 7.125 kB / 0.7855 GB, free: 144 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe 2>&1)