Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_cpp_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_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001097/0.001097, allocations: 177.4 kB / 17.41 MB, free: 4.285 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.214/1.214, allocations: 205.4 MB / 223.6 MB, free: 9.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007694/0.0007695, allocations: 96.5 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3079/0.3079, allocations: 43.55 MB / 363.8 MB, free: 52.1 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000411/0.000411, allocations: 15.98 kB / 432.6 MB, free: 5.855 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1269, allocations: 58.85 MB / 491.4 MB, free: 10.93 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3454/0.4724, allocations: 96.17 MB / 0.5738 GB, free: 6.215 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002494/0.4727, allocations: 71.97 kB / 0.5739 GB, free: 6.145 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07895/0.5517, allocations: 28.09 MB / 0.6013 GB, free: 10.04 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.5517, allocations: 0 / 0.6013 GB, free: 10.04 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.457e-05/0.5518, allocations: 23.94 kB / 0.6014 GB, free: 10.01 MB / 426.7 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.002374/0.5542, allocations: 1.079 MB / 0.6024 GB, free: 8.879 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.5543, allocations: 21.33 kB / 0.6024 GB, free: 8.859 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002426/0.5545, allocations: 91.81 kB / 0.6025 GB, free: 8.77 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001241/0.5558, allocations: 0.6061 MB / 0.6031 GB, free: 8.121 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.537e-05/0.5558, allocations: 37.38 kB / 0.6032 GB, free: 8.086 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00011/0.5559, allocations: 64.27 kB / 0.6032 GB, free: 8.023 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001173/0.5571, allocations: 0.6297 MB / 0.6038 GB, free: 7.336 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.295e-05/0.5572, allocations: 4.125 kB / 0.6038 GB, free: 7.332 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.802e-05/0.5572, allocations: 23.94 kB / 0.6039 GB, free: 7.309 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.5572, allocations: 12 kB / 0.6039 GB, free: 7.297 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001126/0.5584, allocations: 0.4939 MB / 0.6044 GB, free: 6.805 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003716/0.5621, allocations: 2.704 MB / 0.607 GB, free: 4 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001125/0.5632, allocations: 0.5806 MB / 0.6076 GB, free: 3.395 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005499/0.5638, allocations: 274.8 kB / 0.6078 GB, free: 3.117 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.912e-05/0.5639, allocations: 7.938 kB / 0.6078 GB, free: 3.109 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.688e-05/0.5639, allocations: 46.48 kB / 0.6079 GB, free: 3.055 MB / 426.7 MB Notification: Performance of pre-optimization done (n=43): time 2.815e-06/0.5639, allocations: 4 kB / 0.6079 GB, free: 3.051 MB / 426.7 MB Notification: Performance of matching and sorting (n=44): time 0.002587/0.5665, allocations: 1.198 MB / 0.609 GB, free: 1.84 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.09e-05/0.5666, allocations: 140.5 kB / 0.6092 GB, free: 1.672 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000914/0.5675, allocations: 0.6529 MB / 0.6098 GB, free: 1.012 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.508e-05/0.5676, allocations: 37.7 kB / 0.6099 GB, free: 0.9688 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002494/0.5679, allocations: 356 kB / 0.6102 GB, free: 0.6172 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001531/0.568, allocations: 173.5 kB / 0.6104 GB, free: 456 kB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.816e-05/0.5681, allocations: 16 kB / 0.6104 GB, free: 440 kB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.5682, allocations: 333.9 kB / 0.6107 GB, free: 100 kB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000665/0.5689, allocations: 289.1 kB / 0.611 GB, free: 15.82 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007441/0.5696, allocations: 450.3 kB / 0.6114 GB, free: 15.31 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001342/0.571, allocations: 0.7209 MB / 0.6121 GB, free: 14.53 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.571, allocations: 4 kB / 0.6121 GB, free: 14.52 MB / 442.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001663/0.5727, allocations: 0.8337 MB / 0.6129 GB, free: 13.68 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001379/0.5728, allocations: 222.1 kB / 0.6131 GB, free: 13.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.5728, allocations: 8 kB / 0.6131 GB, free: 13.39 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.249e-05/0.5729, allocations: 8 kB / 0.6131 GB, free: 13.39 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006663/0.5735, allocations: 163.7 kB / 0.6133 GB, free: 13.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.913e-05/0.5736, allocations: 11.98 kB / 0.6133 GB, free: 13.21 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005685/0.5741, allocations: 95.53 kB / 0.6134 GB, free: 13.12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.321e-05/0.5742, allocations: 28 kB / 0.6134 GB, free: 13.09 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/0.5742, allocations: 4 kB / 0.6134 GB, free: 13.09 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001435/0.5757, allocations: 0.7189 MB / 0.6141 GB, free: 12.37 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.5757, allocations: 4.75 kB / 0.6141 GB, free: 12.37 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.01e-05/0.5757, allocations: 8 kB / 0.6142 GB, free: 12.36 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005823/0.5763, allocations: 156.3 kB / 0.6143 GB, free: 12.21 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.5763, allocations: 8 kB / 0.6143 GB, free: 12.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005132/0.5768, allocations: 87.62 kB / 0.6144 GB, free: 12.11 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.145e-05/0.5769, allocations: 24 kB / 0.6144 GB, free: 12.09 MB / 442.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000406/0.5773, allocations: 300.8 kB / 0.6147 GB, free: 11.79 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001471/0.5774, allocations: 75.06 kB / 0.6148 GB, free: 11.71 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001679/0.5776, allocations: 86.23 kB / 0.6149 GB, free: 11.62 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.5776, allocations: 4 kB / 0.6149 GB, free: 11.62 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/0.5777, allocations: 8 kB / 0.6149 GB, free: 11.61 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.435e-06/0.5777, allocations: 3.984 kB / 0.6149 GB, free: 11.61 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00123/0.5789, allocations: 0.8336 MB / 0.6157 GB, free: 10.71 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.02e-06/0.5789, allocations: 0 / 0.6157 GB, free: 10.71 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000629/0.5796, allocations: 127.7 kB / 0.6158 GB, free: 10.59 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.5796, allocations: 0 / 0.6158 GB, free: 10.59 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.113e-05/0.5796, allocations: 19.98 kB / 0.6158 GB, free: 10.57 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.5796, allocations: 0 / 0.6158 GB, free: 10.57 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.5796, allocations: 7.938 kB / 0.6158 GB, free: 10.56 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001971/0.5816, allocations: 1.2 MB / 0.617 GB, free: 9.344 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002453/0.5819, allocations: 200.1 kB / 0.6172 GB, free: 9.129 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.454e-05/0.582, allocations: 15.98 kB / 0.6172 GB, free: 9.113 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005348/0.5825, allocations: 63.94 kB / 0.6173 GB, free: 9.051 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001148/0.5826, allocations: 47.81 kB / 0.6173 GB, free: 9.004 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.34e-05/0.5827, allocations: 12 kB / 0.6173 GB, free: 8.992 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006255/0.5833, allocations: 459 kB / 0.6178 GB, free: 8.547 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.5833, allocations: 0 / 0.6178 GB, free: 8.547 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0007781/0.5841, allocations: 212 kB / 0.618 GB, free: 8.34 MB / 442.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000174/0.5843, allocations: 115.1 kB / 0.6181 GB, free: 8.219 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002149/0.5864, allocations: 1.022 MB / 0.6191 GB, free: 7.199 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.5865, allocations: 0 / 0.6191 GB, free: 7.199 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006511/0.5871, allocations: 303.8 kB / 0.6194 GB, free: 6.906 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001085/0.5882, allocations: 181.1 kB / 0.6195 GB, free: 6.738 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002846/0.5911, allocations: 1.762 MB / 0.6213 GB, free: 4.938 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005131/0.5916, allocations: 0.9536 MB / 0.6222 GB, free: 3.957 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002303/0.5918, allocations: 51.38 kB / 0.6222 GB, free: 3.906 MB / 442.7 MB Notification: Performance of SimCode: time 3.3e-07/0.5918, allocations: 3.938 kB / 0.6222 GB, free: 3.902 MB / 442.7 MB Notification: Performance of Templates: time 0.01275/0.6046, allocations: 8.797 MB / 0.6308 GB, free: 11.14 MB / 458.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Continuous_InitialState/Continuous_InitialState.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches