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.002907/0.002907, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.013/2.013, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001166/0.001166, allocations: 90.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2843/0.2843, allocations: 43.5 MB / 359.1 MB, free: 12.22 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.275e-05/4.309e-05, allocations: 4 kB / 425.3 MB, free: 23.35 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1195, allocations: 58.85 MB / 484.1 MB, free: 12.46 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4845/0.604, allocations: 96 MB / 0.5665 GB, free: 7.699 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002488/0.6043, allocations: 69.88 kB / 0.5666 GB, free: 7.668 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1364/0.7408, allocations: 28.04 MB / 0.594 GB, free: 15.94 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.7408, allocations: 0 / 0.594 GB, free: 15.94 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.916e-05/0.7409, allocations: 20 kB / 0.594 GB, free: 15.92 MB / 410.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.002983/0.7439, allocations: 0.9527 MB / 0.5949 GB, free: 14.97 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.505e-05/0.744, allocations: 12.03 kB / 0.5949 GB, free: 14.96 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003583/0.7444, allocations: 86.97 kB / 0.595 GB, free: 14.88 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001655/0.746, allocations: 0.5586 MB / 0.5956 GB, free: 14.34 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.807e-05/0.7462, allocations: 35.38 kB / 0.5956 GB, free: 14.32 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001589/0.7463, allocations: 60.66 kB / 0.5957 GB, free: 14.29 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001337/0.7477, allocations: 0.5554 MB / 0.5962 GB, free: 13.82 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.259e-05/0.7477, allocations: 4 kB / 0.5962 GB, free: 13.82 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.797e-05/0.7478, allocations: 22.75 kB / 0.5962 GB, free: 13.81 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.944e-05/0.7479, allocations: 12 kB / 0.5962 GB, free: 13.8 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001053/0.7489, allocations: 368 kB / 0.5966 GB, free: 13.55 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006281/0.7552, allocations: 2.709 MB / 0.5992 GB, free: 11.14 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001314/0.7566, allocations: 479.1 kB / 0.5997 GB, free: 10.79 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005151/0.7571, allocations: 194.7 kB / 0.5999 GB, free: 10.65 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.311e-05/0.7572, allocations: 8.375 kB / 0.5999 GB, free: 10.64 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.49e-05/0.7573, allocations: 45.66 kB / 0.5999 GB, free: 10.59 MB / 410.7 MB Notification: Performance of pre-optimization done (n=43): time 3.556e-06/0.7573, allocations: 0 / 0.5999 GB, free: 10.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=44): time 0.002332/0.7596, allocations: 0.7969 MB / 0.6007 GB, free: 9.906 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.54e-05/0.7598, allocations: 144.4 kB / 0.6008 GB, free: 9.734 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00105/0.7608, allocations: 0.5481 MB / 0.6014 GB, free: 9.297 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001015/0.761, allocations: 33.05 kB / 0.6014 GB, free: 9.266 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002922/0.7613, allocations: 377 kB / 0.6018 GB, free: 9.012 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002237/0.7615, allocations: 170.4 kB / 0.6019 GB, free: 8.867 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.084e-05/0.7616, allocations: 14.69 kB / 0.602 GB, free: 8.863 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.7617, allocations: 333.4 kB / 0.6023 GB, free: 8.539 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006392/0.7624, allocations: 207.1 kB / 0.6025 GB, free: 8.406 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007261/0.7631, allocations: 362.3 kB / 0.6028 GB, free: 8.066 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006892/0.7638, allocations: 255.3 kB / 0.6031 GB, free: 7.898 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.7638, allocations: 0 / 0.6031 GB, free: 7.898 MB / 410.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001683/0.7655, allocations: 0.6364 MB / 0.6037 GB, free: 7.418 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007433/0.7663, allocations: 1.743 MB / 0.6054 GB, free: 5.574 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.678e-05/0.7663, allocations: 4 kB / 0.6054 GB, free: 5.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.528e-05/0.7664, allocations: 11.98 kB / 0.6054 GB, free: 5.559 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001426/0.7678, allocations: 159.1 kB / 0.6055 GB, free: 5.406 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.051e-05/0.7679, allocations: 11.98 kB / 0.6056 GB, free: 5.395 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001117/0.769, allocations: 98.58 kB / 0.6057 GB, free: 5.309 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.908e-05/0.7691, allocations: 23.44 kB / 0.6057 GB, free: 5.289 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.7691, allocations: 4 kB / 0.6057 GB, free: 5.285 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001593/0.7707, allocations: 0.5778 MB / 0.6062 GB, free: 4.875 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.7707, allocations: 7.938 kB / 0.6063 GB, free: 4.867 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.7708, allocations: 8 kB / 0.6063 GB, free: 4.859 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001249/0.772, allocations: 158.4 kB / 0.6064 GB, free: 4.711 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.418e-05/0.7721, allocations: 12 kB / 0.6064 GB, free: 4.699 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006651/0.7727, allocations: 70.16 kB / 0.6065 GB, free: 4.641 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.51e-05/0.7728, allocations: 27.25 kB / 0.6065 GB, free: 4.617 MB / 410.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 () * 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.000234/0.7731, allocations: 147.1 kB / 0.6067 GB, free: 4.484 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003014/0.7734, allocations: 83 kB / 0.6067 GB, free: 4.402 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002767/0.7737, allocations: 84.52 kB / 0.6068 GB, free: 4.363 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.144e-05/0.7737, allocations: 8 kB / 0.6068 GB, free: 4.355 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/0.7737, allocations: 0 / 0.6068 GB, free: 4.355 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/0.7737, allocations: 3.984 kB / 0.6068 GB, free: 4.352 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001829/0.7756, allocations: 0.8168 MB / 0.6076 GB, free: 3.656 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.491e-06/0.7756, allocations: 3.938 kB / 0.6076 GB, free: 3.652 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001359/0.777, allocations: 115.5 kB / 0.6077 GB, free: 3.543 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.314e-05/0.777, allocations: 4 kB / 0.6077 GB, free: 3.539 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.476e-05/0.7771, allocations: 19.11 kB / 0.6078 GB, free: 3.527 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.211e-06/0.7771, allocations: 3.938 kB / 0.6078 GB, free: 3.523 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.7771, allocations: 0 / 0.6078 GB, free: 3.523 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002067/0.7792, allocations: 0.9985 MB / 0.6087 GB, free: 2.707 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004236/0.7796, allocations: 191.3 kB / 0.6089 GB, free: 2.523 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001426/0.7798, allocations: 15.42 kB / 0.6089 GB, free: 2.516 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001041/0.7809, allocations: 70.75 kB / 0.609 GB, free: 2.453 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000168/0.781, allocations: 34.88 kB / 0.609 GB, free: 2.422 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.451e-05/0.7811, allocations: 15.88 kB / 0.6091 GB, free: 2.41 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008284/0.7819, allocations: 443 kB / 0.6095 GB, free: 2.082 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.782, allocations: 0 / 0.6095 GB, free: 2.082 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001243/0.7832, allocations: 201.8 kB / 0.6097 GB, free: 1.906 MB / 410.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 () * 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.0002376/0.7835, allocations: 114.6 kB / 0.6098 GB, free: 1.789 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002212/0.7857, allocations: 0.7866 MB / 0.6105 GB, free: 1.227 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.7858, allocations: 0 / 0.6105 GB, free: 1.227 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000641/0.7864, allocations: 219.7 kB / 0.6108 GB, free: 1.078 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001531/0.788, allocations: 165.5 kB / 0.6109 GB, free: 0.957 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003668/0.7916, allocations: 1.245 MB / 0.6121 GB, free: 15.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006975/0.7924, allocations: 0.9689 MB / 0.6131 GB, free: 14.81 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004742/0.7929, allocations: 47.44 kB / 0.6131 GB, free: 14.77 MB / 426.7 MB Notification: Performance of SimCode: time 1.212e-06/0.7929, allocations: 0 / 0.6131 GB, free: 14.77 MB / 426.7 MB Notification: Performance of Templates: time 0.02147/0.8144, allocations: 8.612 MB / 0.6215 GB, free: 6.281 MB / 426.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