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.001025/0.001025, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.225/1.225, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008711/0.0008709, allocations: 90.17 kB / 292.1 MB, free: 5.973 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1767/0.1767, allocations: 45.15 MB / 389.3 MB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.484e-05/3.514e-05, allocations: 4 kB / 460.4 MB, free: 70.04 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.101, allocations: 63.25 MB / 0.5114 GB, free: 6.812 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3561/0.4571, allocations: 97.53 MB / 0.6066 GB, free: 12.57 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001651/0.4573, allocations: 67.66 kB / 0.6067 GB, free: 12.54 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04148/0.4988, allocations: 14.77 MB / 0.6211 GB, free: 24 kB / 410.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.4989, allocations: 0 / 0.6211 GB, free: 24 kB / 410.7 MB Notification: Performance of Transformations before backend: time 6.612e-05/0.4989, allocations: 20 kB / 0.6211 GB, free: 4 kB / 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.001949/0.5009, allocations: 0.9554 MB / 0.622 GB, free: 15.05 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.121e-05/0.501, allocations: 15.97 kB / 0.6221 GB, free: 15.03 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004219/0.5014, allocations: 106.9 kB / 0.6222 GB, free: 14.93 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001179/0.5026, allocations: 0.5465 MB / 0.6227 GB, free: 14.41 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.98e-05/0.5027, allocations: 46.5 kB / 0.6227 GB, free: 14.38 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001024/0.5028, allocations: 58.34 kB / 0.6228 GB, free: 14.34 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008713/0.5036, allocations: 0.5463 MB / 0.6233 GB, free: 13.89 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.019e-05/0.5037, allocations: 0 / 0.6233 GB, free: 13.89 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.155e-05/0.5037, allocations: 21.88 kB / 0.6234 GB, free: 13.88 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.548e-05/0.5038, allocations: 15.95 kB / 0.6234 GB, free: 13.86 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006004/0.5044, allocations: 368.7 kB / 0.6237 GB, free: 13.62 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003374/0.5077, allocations: 2.7 MB / 0.6264 GB, free: 11.21 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007115/0.5085, allocations: 479 kB / 0.6268 GB, free: 10.86 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002891/0.5088, allocations: 202 kB / 0.627 GB, free: 10.72 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.42e-05/0.5088, allocations: 4 kB / 0.627 GB, free: 10.71 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.913e-05/0.5089, allocations: 45.5 kB / 0.6271 GB, free: 10.66 MB / 426.7 MB Notification: Performance of pre-optimization done (n=43): time 3.567e-06/0.5089, allocations: 0 / 0.6271 GB, free: 10.66 MB / 426.7 MB Notification: Performance of matching and sorting (n=44): time 0.001336/0.5102, allocations: 0.8019 MB / 0.6278 GB, free: 9.973 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.875e-05/0.5103, allocations: 132.5 kB / 0.628 GB, free: 9.812 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006242/0.5109, allocations: 0.5427 MB / 0.6285 GB, free: 9.379 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.307e-05/0.511, allocations: 36.45 kB / 0.6285 GB, free: 9.344 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002139/0.5112, allocations: 356 kB / 0.6289 GB, free: 9.129 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001462/0.5114, allocations: 178.2 kB / 0.629 GB, free: 8.977 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.193e-05/0.5114, allocations: 11 kB / 0.629 GB, free: 8.977 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.5115, allocations: 332.7 kB / 0.6294 GB, free: 8.656 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003187/0.5118, allocations: 203.3 kB / 0.6296 GB, free: 8.527 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004105/0.5123, allocations: 371.5 kB / 0.6299 GB, free: 8.18 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003888/0.5127, allocations: 241.8 kB / 0.6301 GB, free: 8.02 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.5127, allocations: 0 / 0.6301 GB, free: 8.02 MB / 426.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001097/0.5138, allocations: 0.6801 MB / 0.6308 GB, free: 7.496 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008075/0.5146, allocations: 1.747 MB / 0.6325 GB, free: 5.648 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.5146, allocations: 4 kB / 0.6325 GB, free: 5.645 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.692e-05/0.5146, allocations: 15.94 kB / 0.6325 GB, free: 5.629 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006959/0.5154, allocations: 163 kB / 0.6327 GB, free: 5.473 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.637e-05/0.5154, allocations: 8 kB / 0.6327 GB, free: 5.465 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005426/0.5159, allocations: 93.69 kB / 0.6328 GB, free: 5.383 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.622e-05/0.516, allocations: 26.98 kB / 0.6328 GB, free: 5.363 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.884e-06/0.516, allocations: 4 kB / 0.6328 GB, free: 5.359 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008511/0.5169, allocations: 0.5705 MB / 0.6334 GB, free: 4.953 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.5169, allocations: 11.95 kB / 0.6334 GB, free: 4.941 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.157e-06/0.5169, allocations: 8 kB / 0.6334 GB, free: 4.934 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000606/0.5175, allocations: 159.6 kB / 0.6335 GB, free: 4.785 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.452e-05/0.5175, allocations: 11.98 kB / 0.6336 GB, free: 4.773 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005093/0.518, allocations: 85.33 kB / 0.6336 GB, free: 4.699 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.513e-05/0.5181, allocations: 27.36 kB / 0.6337 GB, free: 4.676 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.0001493/0.5183, allocations: 148.9 kB / 0.6338 GB, free: 4.543 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001429/0.5184, allocations: 75.06 kB / 0.6339 GB, free: 4.469 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002301/0.5186, allocations: 89.58 kB / 0.634 GB, free: 4.418 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.5187, allocations: 4 kB / 0.634 GB, free: 4.414 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.5187, allocations: 0 / 0.634 GB, free: 4.414 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.5187, allocations: 7.984 kB / 0.634 GB, free: 4.406 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001092/0.5198, allocations: 0.81 MB / 0.6348 GB, free: 3.719 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.5198, allocations: 0 / 0.6348 GB, free: 3.719 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000639/0.5204, allocations: 123.8 kB / 0.6349 GB, free: 3.602 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.5205, allocations: 0 / 0.6349 GB, free: 3.602 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.51e-05/0.5205, allocations: 23.3 kB / 0.6349 GB, free: 3.586 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.5205, allocations: 0 / 0.6349 GB, free: 3.586 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.883e-06/0.5205, allocations: 4 kB / 0.6349 GB, free: 3.582 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00113/0.5217, allocations: 0.9868 MB / 0.6359 GB, free: 2.781 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002315/0.5219, allocations: 198.1 kB / 0.6361 GB, free: 2.594 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.311e-05/0.522, allocations: 19.42 kB / 0.6361 GB, free: 2.582 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005402/0.5225, allocations: 63.38 kB / 0.6361 GB, free: 2.527 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001225/0.5227, allocations: 35.88 kB / 0.6362 GB, free: 2.496 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.121e-05/0.5227, allocations: 23.72 kB / 0.6362 GB, free: 2.477 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004701/0.5232, allocations: 430.7 kB / 0.6366 GB, free: 2.156 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5232, allocations: 0 / 0.6366 GB, free: 2.156 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007654/0.524, allocations: 202.2 kB / 0.6368 GB, free: 1.984 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.0001704/0.5241, allocations: 136.1 kB / 0.6369 GB, free: 1.852 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001221/0.5254, allocations: 0.8213 MB / 0.6377 GB, free: 1.262 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.217e-06/0.5254, allocations: 4.25 kB / 0.6377 GB, free: 1.258 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003347/0.5257, allocations: 217.1 kB / 0.6379 GB, free: 1.109 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008277/0.5266, allocations: 170.4 kB / 0.6381 GB, free: 0.9844 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002006/0.5286, allocations: 1.195 MB / 0.6393 GB, free: 15.88 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004498/0.529, allocations: 0.974 MB / 0.6402 GB, free: 14.88 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0006999/0.5298, allocations: 203.2 kB / 0.6404 GB, free: 14.68 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001464/0.5299, allocations: 39.44 kB / 0.6405 GB, free: 14.64 MB / 442.7 MB Notification: Performance of SimCode: time 5.81e-07/0.5299, allocations: 0 / 0.6405 GB, free: 14.64 MB / 442.7 MB Notification: Performance of Templates: time 0.01375/0.5437, allocations: 8.106 MB / 0.6484 GB, free: 6.594 MB / 442.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