Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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: translateModel(ModelicaTest.Blocks.Continuous_InitialState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criticalDamping.x.1.|criticalDamping.x.2.|derivative.x|firstOrder.y|integrator.y|limIntegrator.y|limPID.D.x|limPID.I.y|lowpassButterworth.x1.1.|lowpassButterworth.x2.1.|pI.x|pID.D.x|pID.I.y|secondOrder.y|secondOrder.yd|stateSpace.x.1.|stateSpace.x.2.|transferFunction.x_scaled.1.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState") translateModel(ModelicaTest.Blocks.Continuous_InitialState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criticalDamping.x.1.|criticalDamping.x.2.|derivative.x|firstOrder.y|integrator.y|limIntegrator.y|limPID.D.x|limPID.I.y|lowpassButterworth.x1.1.|lowpassButterworth.x2.1.|pI.x|pID.D.x|pID.I.y|secondOrder.y|secondOrder.yd|stateSpace.x.1.|stateSpace.x.2.|transferFunction.x_scaled.1.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007856/0.0007855, allocations: 96.67 kB / 17.36 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009414/0.0009414, allocations: 204 kB / 18.28 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 227.7 MB / 246.8 MB, free: 9.672 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2231/0.2231, allocations: 46.18 MB / 345.2 MB, free: 11.21 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002917/0.0002917, allocations: 8 kB / 419.5 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1293, allocations: 63.57 MB / 483.1 MB, free: 4.172 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous_InitialState): time 0.003558/0.133, allocations: 2.982 MB / 486.1 MB, free: 1.172 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002512/0.1355, allocations: 1.56 MB / 487.6 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002548/0.1358, allocations: 19.88 kB / 487.6 MB, free: 15.59 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004247/0.1362, allocations: 107.2 kB / 487.7 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003945/0.1366, allocations: 155 kB / 487.9 MB, free: 15.33 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009893/0.1376, allocations: 0.4947 MB / 488.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000827/0.1384, allocations: 0.8537 MB / 489.2 MB, free: 13.98 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000352/0.1388, allocations: 222.4 kB / 489.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003967/0.1392, allocations: 294.4 kB / 489.7 MB, free: 13.46 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004351/0.1397, allocations: 346.2 kB / 490.1 MB, free: 13.12 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.087e-05/0.1397, allocations: 20 kB / 490.1 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.296e-05/0.1398, allocations: 24 kB / 490.1 MB, free: 13.08 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001688/0.14, allocations: 159.3 kB / 490.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002448/0.1402, allocations: 319.5 kB / 490.6 MB, free: 12.61 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005908/0.1408, allocations: 0.6886 MB / 491.3 MB, free: 11.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.778e-06/0.1409, allocations: 0 / 491.3 MB, free: 11.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1409, allocations: 0 / 491.3 MB, free: 11.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.946e-06/0.1409, allocations: 0 / 491.3 MB, free: 11.91 MB / 366.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.00205/0.1429, allocations: 1.05 MB / 492.3 MB, free: 10.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.143, allocations: 13.95 kB / 492.3 MB, free: 10.8 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002434/0.1432, allocations: 99.89 kB / 492.4 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000834/0.1441, allocations: 0.5623 MB / 493 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.775e-05/0.1441, allocations: 45.31 kB / 493 MB, free: 10.06 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.487e-05/0.1442, allocations: 56.28 kB / 493.1 MB, free: 10.01 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001132/0.1454, allocations: 0.6419 MB / 493.7 MB, free: 9.309 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.09e-05/0.1454, allocations: 7.969 kB / 493.8 MB, free: 9.301 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.014e-05/0.1455, allocations: 16 kB / 493.8 MB, free: 9.285 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.205e-05/0.1455, allocations: 12 kB / 493.8 MB, free: 9.273 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001121/0.1466, allocations: 0.49 MB / 494.3 MB, free: 8.781 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003572/0.1502, allocations: 2.69 MB / 497 MB, free: 5.992 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001167/0.1514, allocations: 0.5819 MB / 497.5 MB, free: 5.383 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006005/0.152, allocations: 270.4 kB / 497.8 MB, free: 5.109 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.66e-05/0.152, allocations: 4 kB / 497.8 MB, free: 5.105 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.814e-05/0.1521, allocations: 46.55 kB / 497.9 MB, free: 5.051 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.784e-06/0.1521, allocations: 0 / 497.9 MB, free: 5.051 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002551/0.1546, allocations: 1.21 MB / 499.1 MB, free: 3.828 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.331e-05/0.1547, allocations: 158.2 kB / 499.2 MB, free: 3.637 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008764/0.1556, allocations: 0.6528 MB / 499.9 MB, free: 2.973 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.745e-05/0.1556, allocations: 37.7 kB / 499.9 MB, free: 2.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002769/0.1559, allocations: 368 kB / 0.4885 GB, free: 2.562 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001398/0.1561, allocations: 173.5 kB / 0.4887 GB, free: 2.391 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.529e-05/0.1562, allocations: 69.62 kB / 0.4888 GB, free: 2.316 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.1563, allocations: 329.9 kB / 0.4891 GB, free: 1.988 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006755/0.157, allocations: 289.1 kB / 0.4894 GB, free: 1.707 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008401/0.1578, allocations: 457.5 kB / 0.4898 GB, free: 1.188 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001424/0.1593, allocations: 0.721 MB / 0.4905 GB, free: 416 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.1593, allocations: 0 / 0.4905 GB, free: 416 kB / 366.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.0019/0.1612, allocations: 0.8417 MB / 0.4913 GB, free: 15.55 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001999/0.1614, allocations: 229.3 kB / 0.4915 GB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.376e-05/0.1614, allocations: 11.94 kB / 0.4916 GB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.033e-05/0.1615, allocations: 15.97 kB / 0.4916 GB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006891/0.1622, allocations: 159.8 kB / 0.4917 GB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.662e-05/0.1622, allocations: 11.98 kB / 0.4917 GB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005547/0.1628, allocations: 83.64 kB / 0.4918 GB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.565e-05/0.1628, allocations: 31.98 kB / 0.4918 GB, free: 14.96 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.963e-06/0.1628, allocations: 4 kB / 0.4919 GB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001479/0.1643, allocations: 0.7104 MB / 0.4925 GB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.1643, allocations: 8.062 kB / 0.4926 GB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.995e-06/0.1643, allocations: 12 kB / 0.4926 GB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006217/0.165, allocations: 155.7 kB / 0.4927 GB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.144e-05/0.165, allocations: 8 kB / 0.4927 GB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004962/0.1655, allocations: 87.58 kB / 0.4928 GB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.02e-05/0.1655, allocations: 27.98 kB / 0.4928 GB, free: 13.95 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.0003513/0.1659, allocations: 289 kB / 0.4931 GB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001494/0.1661, allocations: 75.06 kB / 0.4932 GB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002012/0.1663, allocations: 98.2 kB / 0.4933 GB, free: 13.49 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/0.1663, allocations: 4 kB / 0.4933 GB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/0.1663, allocations: 0 / 0.4933 GB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.1663, allocations: 4 kB / 0.4933 GB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001322/0.1676, allocations: 0.8531 MB / 0.4941 GB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.1677, allocations: 8 kB / 0.4941 GB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006436/0.1683, allocations: 111.9 kB / 0.4942 GB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.671e-06/0.1683, allocations: 4 kB / 0.4942 GB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.547e-05/0.1684, allocations: 15.98 kB / 0.4942 GB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.372e-06/0.1684, allocations: 11.94 kB / 0.4943 GB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.1684, allocations: 0 / 0.4943 GB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002132/0.1705, allocations: 1.215 MB / 0.4954 GB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000234/0.1708, allocations: 188.2 kB / 0.4956 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.493e-05/0.1709, allocations: 16 kB / 0.4956 GB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005429/0.1714, allocations: 67.88 kB / 0.4957 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001227/0.1716, allocations: 35.94 kB / 0.4957 GB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.893e-05/0.1716, allocations: 12 kB / 0.4957 GB, free: 10.85 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006442/0.1722, allocations: 467 kB / 0.4962 GB, free: 10.4 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1723, allocations: 0 / 0.4962 GB, free: 10.4 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000742/0.173, allocations: 188 kB / 0.4964 GB, free: 10.21 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.0001521/0.1732, allocations: 119.6 kB / 0.4965 GB, free: 10.09 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002165/0.1753, allocations: 1.019 MB / 0.4975 GB, free: 9.074 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1753, allocations: 4 kB / 0.4975 GB, free: 9.07 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006725/0.176, allocations: 295.8 kB / 0.4978 GB, free: 8.781 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001158/0.1772, allocations: 181.7 kB / 0.4979 GB, free: 8.605 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003019/0.1802, allocations: 1.834 MB / 0.4997 GB, free: 6.734 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005459/0.1808, allocations: 0.9536 MB / 0.5007 GB, free: 5.754 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004888/0.1813, allocations: 144.8 kB / 0.5008 GB, free: 5.609 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001754/0.1815, allocations: 47.42 kB / 0.5008 GB, free: 5.562 MB / 382.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1815, allocations: 0 / 0.5008 GB, free: 5.562 MB / 382.1 MB Notification: Performance of Templates: time 0.2383/0.4198, allocations: 6.725 MB / 0.5074 GB, free: 39.38 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Continuous_InitialState/Continuous_InitialState.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches