Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Blocks.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.Continuous") translateModel(ModelicaTest.Blocks.Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001767/0.001767, allocations: 192.2 kB / 16.67 MB, free: 6.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.667/1.667, allocations: 205.1 MB / 222.5 MB, free: 4.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.416/0.416, allocations: 38 MB / 307.9 MB, free: 10.05 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001587/0.001587, allocations: 71.84 kB / 433 MB, free: 5.434 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4984/0.5, allocations: 56.47 MB / 489.4 MB, free: 19.93 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous): time 0.007132/0.5072, allocations: 3.337 MB / 492.8 MB, free: 17.54 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004866/0.5121, allocations: 1.581 MB / 494.4 MB, free: 16.44 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001202/0.5134, allocations: 23.38 kB / 494.4 MB, free: 16.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001025/0.5145, allocations: 146.2 kB / 494.5 MB, free: 16.34 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009771/0.5155, allocations: 201.1 kB / 494.7 MB, free: 16.21 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1555:3-1615:27:writable] Warning: Pure function 'Modelica.Math.Matrices.equalityLeastSquares' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgglse_vec'. Notification: Performance of NFTyping.typeClassSections: time 0.002416/0.5179, allocations: 0.519 MB / 495.2 MB, free: 15.94 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001891/0.5198, allocations: 0.9192 MB / 496.2 MB, free: 15.51 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006541/0.5205, allocations: 242.3 kB / 496.4 MB, free: 15.38 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008207/0.5213, allocations: 355.4 kB / 496.7 MB, free: 15.21 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008227/0.5222, allocations: 401.6 kB / 497.1 MB, free: 15.02 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001699/0.5223, allocations: 62.44 kB / 497.2 MB, free: 15.02 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001757/0.5225, allocations: 64.47 kB / 497.3 MB, free: 15.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003131/0.5228, allocations: 201.1 kB / 497.5 MB, free: 14.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004563/0.5233, allocations: 347.2 kB / 497.8 MB, free: 14.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001568/0.5249, allocations: 0.793 MB / 498.6 MB, free: 14.29 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.107e-06/0.5249, allocations: 1.75 kB / 498.6 MB, free: 14.29 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.677e-06/0.5249, allocations: 0 / 498.6 MB, free: 14.29 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.1e-05/0.525, allocations: 0 / 498.6 MB, free: 14.29 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: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.003153/0.5281, allocations: 1.186 MB / 499.8 MB, free: 13.49 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.665e-05/0.5282, allocations: 14.05 kB / 499.8 MB, free: 13.49 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002113/0.5284, allocations: 97.7 kB / 499.9 MB, free: 13.44 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001201/0.5296, allocations: 0.598 MB / 0.4888 GB, free: 13.03 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.877e-05/0.5297, allocations: 37.69 kB / 0.4888 GB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/0.5298, allocations: 59.84 kB / 0.4888 GB, free: 12.99 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001524/0.5313, allocations: 0.6112 MB / 0.4894 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.306e-05/0.5314, allocations: 1.094 kB / 0.4894 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.423e-05/0.5315, allocations: 17.97 kB / 0.4895 GB, free: 12.65 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.42e-05/0.5315, allocations: 12.28 kB / 0.4895 GB, free: 12.65 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001449/0.533, allocations: 463.6 kB / 0.4899 GB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004852/0.5378, allocations: 2.658 MB / 0.4925 GB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001373/0.5392, allocations: 0.5448 MB / 0.493 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006031/0.5398, allocations: 254 kB / 0.4933 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.14e-05/0.5399, allocations: 8.125 kB / 0.4933 GB, free: 10.33 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.012e-05/0.5399, allocations: 41.38 kB / 0.4933 GB, free: 10.29 MB / 382.1 MB Notification: Performance of pre-optimization done (n=43): time 2.624e-06/0.54, allocations: 0 / 0.4933 GB, free: 10.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=44): time 0.00319/0.5432, allocations: 1.161 MB / 0.4945 GB, free: 9.738 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.756e-05/0.5432, allocations: 138.5 kB / 0.4946 GB, free: 9.578 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001437/0.5447, allocations: 0.6546 MB / 0.4952 GB, free: 9.309 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.715e-05/0.5448, allocations: 31.89 kB / 0.4953 GB, free: 9.273 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003789/0.5451, allocations: 370.9 kB / 0.4956 GB, free: 8.973 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002637/0.5454, allocations: 182.9 kB / 0.4958 GB, free: 8.828 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002922/0.5457, allocations: 114.7 kB / 0.4959 GB, free: 8.77 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.5459, allocations: 334.9 kB / 0.4962 GB, free: 8.449 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008528/0.5468, allocations: 273.7 kB / 0.4965 GB, free: 8.367 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001044/0.5478, allocations: 431.5 kB / 0.4969 GB, free: 8.098 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001488/0.5493, allocations: 0.6719 MB / 0.4976 GB, free: 7.734 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.522e-06/0.5493, allocations: 1.469 kB / 0.4976 GB, free: 7.734 MB / 382.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002053/0.5514, allocations: 0.8017 MB / 0.4983 GB, free: 7.422 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.427e-05/0.5514, allocations: 11.42 kB / 0.4983 GB, free: 7.418 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.387e-05/0.5515, allocations: 4.062 kB / 0.4984 GB, free: 7.418 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.618e-05/0.5515, allocations: 7.656 kB / 0.4984 GB, free: 7.418 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000754/0.5523, allocations: 151.5 kB / 0.4985 GB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.797e-05/0.5523, allocations: 15.48 kB / 0.4985 GB, free: 7.371 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005446/0.5528, allocations: 78.64 kB / 0.4986 GB, free: 7.328 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.779e-05/0.5529, allocations: 26.58 kB / 0.4986 GB, free: 7.32 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007703/0.5537, allocations: 412.5 kB / 0.499 GB, free: 7.082 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000675/0.5544, allocations: 416.5 kB / 0.4994 GB, free: 6.77 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001308/0.5557, allocations: 0.6608 MB / 0.5001 GB, free: 6.332 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.667e-06/0.5557, allocations: 1.469 kB / 0.5001 GB, free: 6.332 MB / 382.1 MB Notification: Performance of matching and sorting (n=77) (initialization_lambda0): time 0.001798/0.5575, allocations: 0.7735 MB / 0.5008 GB, free: 5.953 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.391e-05/0.5575, allocations: 6.031 kB / 0.5008 GB, free: 5.953 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.879e-06/0.5576, allocations: 5.344 kB / 0.5008 GB, free: 5.953 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.022e-05/0.5576, allocations: 12.66 kB / 0.5008 GB, free: 5.949 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006598/0.5583, allocations: 143.5 kB / 0.501 GB, free: 5.914 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.777e-05/0.5583, allocations: 16.88 kB / 0.501 GB, free: 5.906 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005228/0.5588, allocations: 71.11 kB / 0.5011 GB, free: 5.867 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.254e-05/0.5589, allocations: 27.3 kB / 0.5011 GB, free: 5.859 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (limPID.I.local_reset,pID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00026/0.5592, allocations: 217.6 kB / 0.5013 GB, free: 5.648 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001701/0.5593, allocations: 79.08 kB / 0.5014 GB, free: 5.605 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000221/0.5596, allocations: 88.11 kB / 0.5014 GB, free: 5.539 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.606e-05/0.5596, allocations: 10.19 kB / 0.5015 GB, free: 5.535 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.871e-05/0.5596, allocations: 0 / 0.5015 GB, free: 5.535 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.27e-05/0.5596, allocations: 5.391 kB / 0.5015 GB, free: 5.531 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001519/0.5611, allocations: 0.857 MB / 0.5023 GB, free: 4.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.654e-06/0.5612, allocations: 3.938 kB / 0.5023 GB, free: 4.836 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006508/0.5618, allocations: 107.7 kB / 0.5024 GB, free: 4.805 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.278e-06/0.5618, allocations: 2.156 kB / 0.5024 GB, free: 4.805 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.95e-05/0.5619, allocations: 13.47 kB / 0.5024 GB, free: 4.797 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.584e-06/0.5619, allocations: 2.281 kB / 0.5024 GB, free: 4.797 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.5619, allocations: 1.094 kB / 0.5024 GB, free: 4.797 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002324/0.5643, allocations: 1.141 MB / 0.5035 GB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000252/0.5645, allocations: 203.9 kB / 0.5037 GB, free: 3.918 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.244e-05/0.5646, allocations: 22.42 kB / 0.5038 GB, free: 3.902 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005141/0.5652, allocations: 54.53 kB / 0.5038 GB, free: 3.875 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001401/0.5653, allocations: 32.11 kB / 0.5038 GB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.619e-05/0.5653, allocations: 15.83 kB / 0.5039 GB, free: 3.852 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007797/0.5661, allocations: 461.2 kB / 0.5043 GB, free: 3.598 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5661, allocations: 5.156 kB / 0.5043 GB, free: 3.594 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009356/0.5671, allocations: 192.8 kB / 0.5045 GB, free: 3.57 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 18 (limPID.I.y,limPID.D.x,transferFunction.x_scaled[1],stateSpace.x[1],stateSpace.x[2],lowpassButterworth.x1[1],lowpassButterworth.x2[1],criticalDamping.x[1],criticalDamping.x[2],integrator.y,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,pI.x,pID.I.y,pID.D.x) * 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 (44): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001603/0.5673, allocations: 113.4 kB / 0.5046 GB, free: 3.469 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002481/0.5697, allocations: 0.9625 MB / 0.5055 GB, free: 3.059 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.379e-06/0.5698, allocations: 0 / 0.5055 GB, free: 3.059 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007386/0.5705, allocations: 288.4 kB / 0.5058 GB, free: 2.934 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001294/0.5718, allocations: 199.9 kB / 0.506 GB, free: 2.824 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003156/0.575, allocations: 1.508 MB / 0.5075 GB, free: 1.883 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005092/0.5755, allocations: 0.9504 MB / 0.5084 GB, free: 1.07 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005367/0.5761, allocations: 150.1 kB / 0.5085 GB, free: 1.008 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000171/0.5763, allocations: 43.38 kB / 0.5086 GB, free: 1 MB / 382.1 MB Notification: Performance of SimCode: time 1.824e-06/0.5763, allocations: 0 / 0.5086 GB, free: 1 MB / 382.1 MB Notification: Performance of Templates: time 0.01723/0.5935, allocations: 7.566 MB / 0.516 GB, free: 11.87 MB / 398.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Blocks.Continuous.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Blocks.Continuous.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Blocks.Continuous.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Blocks.Continuous.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Blocks.Continuous.sim & ./ModelicaTest_3.2.1_ModelicaTest.Blocks.Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Blocks.Continuous.pipe 2>&1)