Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute.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.Revolute,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Revolute",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Revolute",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001246/0.001246, 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.001355/0.001355, 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.49/1.49, 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.2249/0.2249, allocations: 46.1 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.002245/0.002245, allocations: 78.53 kB / 417.7 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1278, allocations: 62.46 MB / 480.2 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.01412/0.142, allocations: 12.27 MB / 492.5 MB, free: 8.789 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008316/0.1504, allocations: 3.94 MB / 496.4 MB, free: 4.836 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002583/0.153, allocations: 63.88 kB / 496.5 MB, free: 4.773 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00317/0.1562, allocations: 1.311 MB / 497.8 MB, free: 3.457 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005405/0.1617, allocations: 1.72 MB / 499.5 MB, free: 1.73 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001538/0.1632, allocations: 495 kB / 500 MB, free: 1.246 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00526/0.1685, allocations: 3.6 MB / 0.4918 GB, free: 13.64 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003155/0.1717, allocations: 2.013 MB / 0.4938 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00244/0.1742, allocations: 1.187 MB / 0.4949 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00296/0.1771, allocations: 1.705 MB / 0.4966 GB, free: 8.684 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009027/0.1781, allocations: 240 kB / 0.4968 GB, free: 8.449 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002422/0.1805, allocations: 0.9361 MB / 0.4977 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002226/0.1828, allocations: 1.57 MB / 0.4993 GB, free: 5.938 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003357/0.1861, allocations: 1.882 MB / 0.5011 GB, free: 4.043 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2562/0.4423, allocations: 5.886 MB / 0.5068 GB, free: 18.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.023e-05/0.4424, allocations: 0 / 0.5068 GB, free: 18.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4424, allocations: 0 / 0.5068 GB, free: 18.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002797/0.4427, allocations: 0 / 0.5068 GB, free: 18.5 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: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.01301/0.4557, allocations: 4.146 MB / 0.5109 GB, free: 16.8 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.155e-05/0.4558, allocations: 11.47 kB / 0.5109 GB, free: 16.8 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001926/0.4577, allocations: 0.7087 MB / 0.5116 GB, free: 16.73 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01225/0.47, allocations: 3.085 MB / 0.5146 GB, free: 16.46 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005144/0.4752, allocations: 2.081 MB / 0.5166 GB, free: 15.97 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001652/0.4754, allocations: 191.2 kB / 0.5168 GB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00112/0.4765, allocations: 246.5 kB / 0.5171 GB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.018/0.4945, allocations: 10.49 MB / 0.5273 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001194/0.4947, allocations: 25.41 kB / 0.5273 GB, free: 12.97 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005391/0.4952, allocations: 123 kB / 0.5274 GB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004212/0.4995, allocations: 2.551 MB / 0.5299 GB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0181/0.5176, allocations: 9.917 MB / 0.5396 GB, free: 6.746 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05539/0.573, allocations: 34.47 MB / 0.5733 GB, free: 4.016 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009838/0.5829, allocations: 5.187 MB / 0.5784 GB, free: 14.62 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003269/0.5862, allocations: 2.299 MB / 0.5806 GB, free: 12.32 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001829/0.588, allocations: 1.88 MB / 0.5824 GB, free: 10.12 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.737e-05/0.5881, allocations: 52.83 kB / 0.5825 GB, free: 10.06 MB / 430.1 MB Notification: Performance of pre-optimization done (n=229): time 5.911e-06/0.5881, allocations: 0 / 0.5825 GB, free: 10.06 MB / 430.1 MB Notification: Performance of matching and sorting (n=235): time 0.035/0.6231, allocations: 13.98 MB / 0.5961 GB, free: 12.06 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/0.6233, allocations: 73.34 kB / 0.5962 GB, free: 11.98 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004954/0.6282, allocations: 2.638 MB / 0.5988 GB, free: 9.32 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006022/0.6289, allocations: 57.7 kB / 0.5988 GB, free: 9.258 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002175/0.6311, allocations: 2.627 MB / 0.6014 GB, free: 6.641 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001649/0.6327, allocations: 0.8501 MB / 0.6022 GB, free: 5.797 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001827/0.6346, allocations: 1.039 MB / 0.6033 GB, free: 4.75 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.6347, allocations: 301.1 kB / 0.6035 GB, free: 4.453 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003427/0.6382, allocations: 2.196 MB / 0.6057 GB, free: 2.25 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006057/0.6442, allocations: 5.062 MB / 0.6106 GB, free: 11.83 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01055/0.6548, allocations: 7.954 MB / 0.6184 GB, free: 2.891 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.483e-05/0.6549, allocations: 28 kB / 0.6184 GB, free: 2.863 MB / 462.1 MB Notification: Performance of matching and sorting (n=691) (initialization): time 0.01612/0.6711, allocations: 7.866 MB / 0.6261 GB, free: 11.39 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.695e-05/0.6712, allocations: 51.98 kB / 0.6262 GB, free: 11.34 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001219/0.6713, allocations: 104.1 kB / 0.6263 GB, free: 11.24 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002387/0.6737, allocations: 0.7889 MB / 0.627 GB, free: 10.45 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004304/0.678, allocations: 1.177 MB / 0.6282 GB, free: 9.27 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006558/0.6846, allocations: 4.529 MB / 0.6326 GB, free: 4.602 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004079/0.6887, allocations: 299.7 kB / 0.6329 GB, free: 4.309 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007856/0.6895, allocations: 302.2 kB / 0.6332 GB, free: 4.016 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 454 * Number of states: 0 () * Number of discrete variables: 29 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (631): * Single equations (assignments): 624 * Array equations: 6 * 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 {(1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003876/0.6934, allocations: 2.014 MB / 0.6351 GB, free: 1.996 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005586/0.694, allocations: 256.6 kB / 0.6354 GB, free: 1.742 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008609/0.7026, allocations: 4.728 MB / 0.64 GB, free: 12.99 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.48e-05/0.7027, allocations: 47.27 kB / 0.64 GB, free: 12.95 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/0.7027, allocations: 4 kB / 0.64 GB, free: 12.94 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.225e-05/0.7028, allocations: 11.91 kB / 0.6401 GB, free: 12.93 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02026/0.723, allocations: 10.54 MB / 0.6503 GB, free: 2.285 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.877e-05/0.7231, allocations: 4 kB / 0.6503 GB, free: 2.281 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001705/0.7248, allocations: 363.4 kB / 0.6507 GB, free: 1.926 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002133/0.727, allocations: 0.6643 MB / 0.6513 GB, free: 1.258 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003343/0.7273, allocations: 46.33 kB / 0.6514 GB, free: 1.215 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005359/0.7327, allocations: 3.906 MB / 0.6552 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.044e-05/0.7327, allocations: 7.938 kB / 0.6552 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01154/0.7443, allocations: 7.143 MB / 0.6622 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009246/0.7452, allocations: 307.5 kB / 0.6625 GB, free: 5.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004854/0.7457, allocations: 44.06 kB / 0.6625 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001248/0.747, allocations: 142.1 kB / 0.6627 GB, free: 5.41 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003646/0.7474, allocations: 129 kB / 0.6628 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001696/0.7475, allocations: 67.94 kB / 0.6628 GB, free: 5.219 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002588/0.7501, allocations: 1.619 MB / 0.6644 GB, free: 3.59 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.8e-07/0.7502, allocations: 0 / 0.6644 GB, free: 3.59 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004522/0.7547, allocations: 0.9128 MB / 0.6653 GB, free: 2.68 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 2 (revolute.phi,revolute.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 (178): * Single equations (assignments): 171 * Array equations: 6 * 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 {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01186/0.7666, allocations: 7.784 MB / 0.6729 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01484/0.7814, allocations: 8.66 MB / 0.6814 GB, free: 2.125 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.501e-05/0.7815, allocations: 1.812 kB / 0.6814 GB, free: 2.125 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003189/0.7847, allocations: 2.033 MB / 0.6834 GB, free: 88 kB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002202/0.7869, allocations: 358.7 kB / 0.6837 GB, free: 15.74 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2947/1.082, allocations: 42.31 MB / 0.725 GB, free: 190.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004473/1.086, allocations: 3.163 MB / 0.7281 GB, free: 189.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004448/1.091, allocations: 1.957 MB / 0.73 GB, free: 189.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002257/1.093, allocations: 1.709 MB / 0.7317 GB, free: 188 MB / 0.545 GB Notification: Performance of SimCode: time 1.042e-06/1.093, allocations: 1.094 kB / 0.7317 GB, free: 188 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1295/1.222, allocations: 57.25 MB / 0.7876 GB, free: 139.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/12.83, allocations: 7.609 kB / 0.7876 GB, free: 139.9 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute_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_Joints_Revolute.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute.pipe 2>&1)