Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialOutput.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_InitialOutput,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_ModelicaTest.Blocks.Continuous_InitialOutput") translateModel(ModelicaTest.Blocks.Continuous_InitialOutput,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_ModelicaTest.Blocks.Continuous_InitialOutput") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001088/0.001088, allocations: 178 kB / 8.008 MB, free: 1.066 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.368/1.368, allocations: 205.3 MB / 213.7 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007485/0.0007487, allocations: 94.14 kB / 261.7 MB, free: 1.613 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.1753/0.1753, allocations: 43.5 MB / 353.2 MB, free: 264 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.392e-05/1.395e-05, allocations: 4 kB / 418.2 MB, free: 28.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1019, allocations: 58.86 MB / 477.1 MB, free: 1.633 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3552/0.4571, allocations: 95.43 MB / 0.5591 GB, free: 124 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001431/0.4573, allocations: 70.31 kB / 0.5592 GB, free: 92 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08141/0.5387, allocations: 29.16 MB / 0.5877 GB, free: 7.758 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.5388, allocations: 0 / 0.5877 GB, free: 7.758 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.465e-05/0.5389, allocations: 24.38 kB / 0.5877 GB, free: 7.734 MB / 394.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.00182/0.5407, allocations: 0.9603 MB / 0.5886 GB, free: 6.777 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.5407, allocations: 8.031 kB / 0.5886 GB, free: 6.77 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001522/0.5409, allocations: 90.88 kB / 0.5887 GB, free: 6.68 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001045/0.542, allocations: 0.5907 MB / 0.5893 GB, free: 6.121 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.309e-05/0.542, allocations: 15.95 kB / 0.5893 GB, free: 6.105 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.565e-05/0.5421, allocations: 43.47 kB / 0.5894 GB, free: 6.066 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005944/0.5427, allocations: 334.4 kB / 0.5897 GB, free: 5.852 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006807/0.5434, allocations: 496.8 kB / 0.5902 GB, free: 5.414 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.096e-05/0.5434, allocations: 7.5 kB / 0.5902 GB, free: 5.41 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.367e-05/0.5435, allocations: 4 kB / 0.5902 GB, free: 5.406 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.5435, allocations: 8 kB / 0.5902 GB, free: 5.398 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003321/0.5468, allocations: 2.567 MB / 0.5927 GB, free: 3.09 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000516/0.5473, allocations: 420 kB / 0.5931 GB, free: 2.777 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002507/0.5476, allocations: 194.5 kB / 0.5933 GB, free: 2.645 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.709e-05/0.5477, allocations: 4.234 kB / 0.5933 GB, free: 2.641 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.195e-05/0.5477, allocations: 37.86 kB / 0.5933 GB, free: 2.598 MB / 394.7 MB Notification: Performance of pre-optimization done (n=45): time 3.807e-06/0.5477, allocations: 0 / 0.5933 GB, free: 2.598 MB / 394.7 MB Notification: Performance of matching and sorting (n=46): time 0.001216/0.5489, allocations: 0.7817 MB / 0.5941 GB, free: 1.914 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.353e-05/0.549, allocations: 110.8 kB / 0.5942 GB, free: 1.781 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005025/0.5495, allocations: 498.6 kB / 0.5946 GB, free: 1.398 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.958e-05/0.5495, allocations: 25.7 kB / 0.5947 GB, free: 1.367 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002311/0.5498, allocations: 355.1 kB / 0.595 GB, free: 1.148 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000146/0.5499, allocations: 171.1 kB / 0.5952 GB, free: 1 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.176e-05/0.55, allocations: 4 kB / 0.5952 GB, free: 0.9961 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.5501, allocations: 392.4 kB / 0.5956 GB, free: 0.6367 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000292/0.5504, allocations: 194.4 kB / 0.5957 GB, free: 0.5195 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003837/0.5508, allocations: 342 kB / 0.5961 GB, free: 208 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004352/0.5513, allocations: 248.2 kB / 0.5963 GB, free: 36 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.5513, allocations: 3.953 kB / 0.5963 GB, free: 32 kB / 394.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00093/0.5522, allocations: 0.625 MB / 0.5969 GB, free: 15.54 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005762/0.5528, allocations: 1.749 MB / 0.5986 GB, free: 13.69 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/0.5528, allocations: 7.984 kB / 0.5986 GB, free: 13.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.168e-05/0.5529, allocations: 8 kB / 0.5986 GB, free: 13.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001015/0.5539, allocations: 214.7 kB / 0.5988 GB, free: 13.47 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.521e-05/0.5539, allocations: 11.95 kB / 0.5989 GB, free: 13.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005103/0.5544, allocations: 67.64 kB / 0.5989 GB, free: 13.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.426e-05/0.5545, allocations: 31.17 kB / 0.5989 GB, free: 13.36 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.024e-05/0.5545, allocations: 4 kB / 0.599 GB, free: 13.36 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008324/0.5554, allocations: 0.5184 MB / 0.5995 GB, free: 12.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.5554, allocations: 4 kB / 0.5995 GB, free: 12.97 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.628e-06/0.5554, allocations: 8 kB / 0.5995 GB, free: 12.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009075/0.5563, allocations: 206 kB / 0.5997 GB, free: 12.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.5564, allocations: 19.88 kB / 0.5997 GB, free: 12.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000493/0.5569, allocations: 79.53 kB / 0.5998 GB, free: 12.67 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.065e-05/0.5569, allocations: 29.73 kB / 0.5998 GB, free: 12.65 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 (78): * Single equations (assignments): 77 * Array equations: 1 * 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.0001413/0.5571, allocations: 120.8 kB / 0.5999 GB, free: 12.52 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001365/0.5572, allocations: 74.28 kB / 0.6 GB, free: 12.45 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002127/0.5574, allocations: 78.44 kB / 0.6 GB, free: 12.41 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.5574, allocations: 4 kB / 0.6001 GB, free: 12.41 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.5574, allocations: 7.938 kB / 0.6001 GB, free: 12.4 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.5575, allocations: 7.984 kB / 0.6001 GB, free: 12.39 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001459/0.5589, allocations: 1.115 MB / 0.6012 GB, free: 11.47 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.5589, allocations: 4 kB / 0.6012 GB, free: 11.47 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006353/0.5596, allocations: 115.5 kB / 0.6013 GB, free: 11.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.112e-06/0.5596, allocations: 4 kB / 0.6013 GB, free: 11.36 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.007e-05/0.5596, allocations: 7.312 kB / 0.6013 GB, free: 11.35 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.389e-06/0.5597, allocations: 4 kB / 0.6013 GB, free: 11.35 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.5597, allocations: 3.938 kB / 0.6013 GB, free: 11.34 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001043/0.5607, allocations: 0.9933 MB / 0.6023 GB, free: 10.51 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002156/0.5609, allocations: 199.9 kB / 0.6024 GB, free: 10.32 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.239e-05/0.561, allocations: 11.52 kB / 0.6025 GB, free: 10.31 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005118/0.5616, allocations: 51.94 kB / 0.6025 GB, free: 10.26 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.5617, allocations: 43.31 kB / 0.6026 GB, free: 10.22 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.029e-05/0.5617, allocations: 10.69 kB / 0.6026 GB, free: 10.21 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003921/0.5621, allocations: 382.8 kB / 0.6029 GB, free: 9.93 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5621, allocations: 0 / 0.6029 GB, free: 9.93 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009103/0.563, allocations: 203.9 kB / 0.6031 GB, free: 9.73 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (46): * Single equations (assignments): 46 * 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.000325/0.5634, allocations: 142.8 kB / 0.6033 GB, free: 9.582 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00114/0.5645, allocations: 0.7773 MB / 0.604 GB, free: 9.031 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.5645, allocations: 0 / 0.604 GB, free: 9.031 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003093/0.5648, allocations: 219.6 kB / 0.6042 GB, free: 8.883 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008977/0.5657, allocations: 164.6 kB / 0.6044 GB, free: 8.762 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001987/0.5677, allocations: 1.193 MB / 0.6055 GB, free: 7.645 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004784/0.5682, allocations: 0.9658 MB / 0.6065 GB, free: 6.648 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007088/0.569, allocations: 203.1 kB / 0.6067 GB, free: 6.445 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001643/0.5691, allocations: 43.42 kB / 0.6067 GB, free: 6.402 MB / 410.7 MB Notification: Performance of SimCode: time 5.61e-07/0.5691, allocations: 0 / 0.6067 GB, free: 6.402 MB / 410.7 MB Notification: Performance of Templates: time 0.01397/0.5831, allocations: 8.055 MB / 0.6146 GB, free: 14.39 MB / 426.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialOutput.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialOutput.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialOutput.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialOutput.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialOutput.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialOutput -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialOutput.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialOutput_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Continuous_InitialOutput/Continuous_InitialOutput.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialOutput.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches