Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Blocks.Continuous,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") translateModel(ModelicaTest.Blocks.Continuous,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001421/0.001421, allocations: 193.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 225.6 MB / 234.8 MB, free: 3.234 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008061/0.0008063, allocations: 97.33 kB / 286.7 MB, free: 5.305 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1799/0.1799, allocations: 45.15 MB / 383.7 MB, free: 232 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.381e-05/1.382e-05, allocations: 0 / 453.2 MB, free: 75.82 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09018/0.09021, allocations: 63.25 MB / 0.5044 GB, free: 12.62 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.387/0.4772, allocations: 96.87 MB / 0.599 GB, free: 5.805 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001934/0.4775, allocations: 68.03 kB / 0.599 GB, free: 5.773 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04114/0.5186, allocations: 14.66 MB / 0.6133 GB, free: 9.551 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.5187, allocations: 4 kB / 0.6133 GB, free: 9.547 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.13e-05/0.5187, allocations: 23.92 kB / 0.6134 GB, free: 9.523 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.002028/0.5208, allocations: 0.9662 MB / 0.6143 GB, free: 8.555 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.5208, allocations: 8.031 kB / 0.6143 GB, free: 8.547 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004392/0.5213, allocations: 110.9 kB / 0.6144 GB, free: 8.438 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001133/0.5224, allocations: 0.5451 MB / 0.6149 GB, free: 7.922 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.311e-05/0.5225, allocations: 19.88 kB / 0.615 GB, free: 7.906 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.337e-05/0.5226, allocations: 39.91 kB / 0.615 GB, free: 7.867 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007209/0.5233, allocations: 327.5 kB / 0.6153 GB, free: 7.66 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008814/0.5242, allocations: 0.4944 MB / 0.6158 GB, free: 7.227 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.319e-05/0.5242, allocations: 0 / 0.6158 GB, free: 7.227 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.746e-05/0.5243, allocations: 7.953 kB / 0.6158 GB, free: 7.219 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.333e-05/0.5243, allocations: 12 kB / 0.6158 GB, free: 7.207 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004103/0.5284, allocations: 2.609 MB / 0.6184 GB, free: 4.871 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006926/0.5292, allocations: 453.4 kB / 0.6188 GB, free: 4.547 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002819/0.5295, allocations: 190.2 kB / 0.619 GB, free: 4.414 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.416e-05/0.5295, allocations: 12 kB / 0.619 GB, free: 4.402 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.113e-05/0.5296, allocations: 34.5 kB / 0.619 GB, free: 4.363 MB / 410.7 MB Notification: Performance of pre-optimization done (n=43): time 2.554e-06/0.5296, allocations: 0 / 0.619 GB, free: 4.363 MB / 410.7 MB Notification: Performance of matching and sorting (n=44): time 0.001455/0.531, allocations: 0.7681 MB / 0.6198 GB, free: 3.691 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.416e-05/0.5311, allocations: 132.5 kB / 0.6199 GB, free: 3.531 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005516/0.5317, allocations: 0.4949 MB / 0.6204 GB, free: 3.141 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.049e-05/0.5317, allocations: 25.7 kB / 0.6204 GB, free: 3.109 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002336/0.532, allocations: 359.2 kB / 0.6208 GB, free: 2.887 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001309/0.5321, allocations: 167.6 kB / 0.6209 GB, free: 2.746 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.752e-05/0.5322, allocations: 0 / 0.6209 GB, free: 2.746 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.5323, allocations: 379.8 kB / 0.6213 GB, free: 2.395 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002992/0.5326, allocations: 199.1 kB / 0.6215 GB, free: 2.273 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003875/0.533, allocations: 347.4 kB / 0.6218 GB, free: 1.945 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003486/0.5334, allocations: 238 kB / 0.622 GB, free: 1.789 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.5334, allocations: 0 / 0.622 GB, free: 1.789 MB / 410.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.0009091/0.5343, allocations: 0.6166 MB / 0.6226 GB, free: 1.309 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005939/0.5349, allocations: 1.751 MB / 0.6243 GB, free: 15.45 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.5349, allocations: 4 kB / 0.6243 GB, free: 15.45 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.308e-05/0.535, allocations: 8 kB / 0.6243 GB, free: 15.44 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006725/0.5356, allocations: 165.5 kB / 0.6245 GB, free: 15.29 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.313e-05/0.5357, allocations: 15.88 kB / 0.6245 GB, free: 15.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005579/0.5362, allocations: 83.53 kB / 0.6246 GB, free: 15.19 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.793e-05/0.5363, allocations: 23.56 kB / 0.6246 GB, free: 15.17 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.786e-06/0.5363, allocations: 0 / 0.6246 GB, free: 15.17 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007654/0.5371, allocations: 0.5145 MB / 0.6251 GB, free: 14.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.5371, allocations: 4 kB / 0.6251 GB, free: 14.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.708e-06/0.5371, allocations: 8 kB / 0.6251 GB, free: 14.78 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006094/0.5377, allocations: 158.8 kB / 0.6253 GB, free: 14.63 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.5377, allocations: 8 kB / 0.6253 GB, free: 14.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005012/0.5382, allocations: 75.78 kB / 0.6254 GB, free: 14.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.627e-05/0.5383, allocations: 23.25 kB / 0.6254 GB, free: 14.53 MB / 426.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.00014/0.5384, allocations: 128.7 kB / 0.6255 GB, free: 14.4 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001353/0.5386, allocations: 71.16 kB / 0.6256 GB, free: 14.33 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001672/0.5388, allocations: 75.95 kB / 0.6257 GB, free: 14.29 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.5388, allocations: 4 kB / 0.6257 GB, free: 14.29 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.115e-05/0.5388, allocations: 7.953 kB / 0.6257 GB, free: 14.28 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.5388, allocations: 3.984 kB / 0.6257 GB, free: 14.27 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009781/0.5398, allocations: 0.7476 MB / 0.6264 GB, free: 13.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.5398, allocations: 7.938 kB / 0.6264 GB, free: 13.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006483/0.5405, allocations: 114.9 kB / 0.6265 GB, free: 13.53 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.927e-06/0.5405, allocations: 8 kB / 0.6265 GB, free: 13.52 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.525e-05/0.5405, allocations: 7.75 kB / 0.6265 GB, free: 13.52 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.109e-06/0.5405, allocations: 7.953 kB / 0.6265 GB, free: 13.51 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.5405, allocations: 0 / 0.6265 GB, free: 13.51 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/0.5416, allocations: 0.9427 MB / 0.6275 GB, free: 12.73 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002214/0.5418, allocations: 204.1 kB / 0.6277 GB, free: 12.54 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.753e-05/0.5419, allocations: 7.688 kB / 0.6277 GB, free: 12.54 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000554/0.5425, allocations: 59.94 kB / 0.6277 GB, free: 12.48 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.83e-05/0.5426, allocations: 42.5 kB / 0.6278 GB, free: 12.44 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.927e-05/0.5426, allocations: 8 kB / 0.6278 GB, free: 12.43 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003908/0.543, allocations: 385.8 kB / 0.6281 GB, free: 12.15 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.543, allocations: 3.938 kB / 0.6281 GB, free: 12.15 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007779/0.5438, allocations: 179.8 kB / 0.6283 GB, free: 11.98 MB / 426.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.000165/0.544, allocations: 107.1 kB / 0.6284 GB, free: 11.86 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001127/0.5451, allocations: 0.7722 MB / 0.6292 GB, free: 11.32 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.5451, allocations: 0 / 0.6292 GB, free: 11.32 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003219/0.5455, allocations: 210.9 kB / 0.6294 GB, free: 11.18 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009288/0.5464, allocations: 165.8 kB / 0.6295 GB, free: 11.05 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002168/0.5486, allocations: 1.181 MB / 0.6307 GB, free: 9.945 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005668/0.5492, allocations: 0.9656 MB / 0.6316 GB, free: 8.957 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0007236/0.5499, allocations: 207 kB / 0.6318 GB, free: 8.754 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001409/0.55, allocations: 35.44 kB / 0.6319 GB, free: 8.719 MB / 426.7 MB Notification: Performance of SimCode: time 2.51e-07/0.55, allocations: 0 / 0.6319 GB, free: 8.719 MB / 426.7 MB Notification: Performance of Templates: time 0.01339/0.5634, allocations: 7.339 MB / 0.639 GB, free: 1.441 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Continuous/Continuous.csv","../files/ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches