Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_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_cpp_ModelicaTest.Blocks.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002686/0.002686, allocations: 194.2 kB / 16.78 MB, free: 4.918 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 226.5 MB / 244.1 MB, free: 6.406 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008382/0.0008384, allocations: 96.41 kB / 296.1 MB, free: 6.641 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.363/0.363, allocations: 44.81 MB / 393 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002878/0.000288, allocations: 4 kB / 465.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3462/0.3465, allocations: 62.96 MB / 0.5165 GB, free: 37.32 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1331/0.4796, allocations: 97.46 MB / 0.6116 GB, free: 7.883 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002221/0.4799, allocations: 63.97 kB / 0.6117 GB, free: 7.82 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05457/0.5345, allocations: 14.8 MB / 0.6262 GB, free: 8.98 MB / 442.7 MB Notification: Performance of FrontEnd: time 4.408e-06/0.5346, allocations: 4 kB / 0.6262 GB, free: 8.977 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001258/0.5348, allocations: 23.94 kB / 0.6262 GB, free: 8.953 MB / 442.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.004149/0.5389, allocations: 1.083 MB / 0.6272 GB, free: 7.816 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.428e-05/0.539, allocations: 8.031 kB / 0.6272 GB, free: 7.809 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006173/0.5396, allocations: 111.8 kB / 0.6274 GB, free: 7.699 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001766/0.5414, allocations: 0.6101 MB / 0.6279 GB, free: 7.051 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.643e-05/0.5415, allocations: 37.38 kB / 0.628 GB, free: 7.012 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001658/0.5417, allocations: 60.28 kB / 0.628 GB, free: 6.953 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001847/0.5436, allocations: 0.6353 MB / 0.6287 GB, free: 6.27 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.881e-05/0.5436, allocations: 192 / 0.6287 GB, free: 6.27 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.376e-05/0.5437, allocations: 19.94 kB / 0.6287 GB, free: 6.25 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.977e-05/0.5437, allocations: 12 kB / 0.6287 GB, free: 6.238 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001578/0.5453, allocations: 0.4978 MB / 0.6292 GB, free: 5.742 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005469/0.5508, allocations: 2.71 MB / 0.6318 GB, free: 2.93 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001789/0.5526, allocations: 0.5831 MB / 0.6324 GB, free: 2.324 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008201/0.5535, allocations: 270.5 kB / 0.6327 GB, free: 2.051 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.536e-05/0.5536, allocations: 8 kB / 0.6327 GB, free: 2.043 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.74e-05/0.5536, allocations: 38.56 kB / 0.6327 GB, free: 1.996 MB / 442.7 MB Notification: Performance of pre-optimization done (n=43): time 4.368e-06/0.5536, allocations: 0 / 0.6327 GB, free: 1.996 MB / 442.7 MB Notification: Performance of matching and sorting (n=44): time 0.00408/0.5577, allocations: 1.201 MB / 0.6339 GB, free: 0.7852 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000109/0.5579, allocations: 140.4 kB / 0.634 GB, free: 0.6172 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001398/0.5593, allocations: 0.6528 MB / 0.6346 GB, free: 15.95 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.893e-05/0.5593, allocations: 37.7 kB / 0.6347 GB, free: 15.91 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003891/0.5597, allocations: 356 kB / 0.635 GB, free: 15.55 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002316/0.56, allocations: 173.5 kB / 0.6352 GB, free: 15.38 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.059e-05/0.56, allocations: 12 kB / 0.6352 GB, free: 15.37 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001829/0.5602, allocations: 333.9 kB / 0.6355 GB, free: 15.04 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009929/0.5612, allocations: 289.1 kB / 0.6358 GB, free: 14.76 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001208/0.5625, allocations: 453.5 kB / 0.6362 GB, free: 14.25 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002219/0.5647, allocations: 0.7178 MB / 0.6369 GB, free: 13.47 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.5647, allocations: 0 / 0.6369 GB, free: 13.47 MB / 458.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002767/0.5675, allocations: 0.8423 MB / 0.6377 GB, free: 12.62 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00025/0.5678, allocations: 225.6 kB / 0.638 GB, free: 12.34 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.845e-05/0.5678, allocations: 4 kB / 0.638 GB, free: 12.34 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.807e-05/0.5679, allocations: 12 kB / 0.638 GB, free: 12.32 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009195/0.5688, allocations: 163.7 kB / 0.6381 GB, free: 12.16 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.619e-05/0.5688, allocations: 8 kB / 0.6381 GB, free: 12.16 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009082/0.5697, allocations: 95.62 kB / 0.6382 GB, free: 12.06 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.93e-05/0.5698, allocations: 24 kB / 0.6383 GB, free: 12.04 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.5698, allocations: 4 kB / 0.6383 GB, free: 12.03 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001849/0.5717, allocations: 0.722 MB / 0.639 GB, free: 11.31 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.5717, allocations: 7.938 kB / 0.639 GB, free: 11.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.937e-06/0.5717, allocations: 8 kB / 0.639 GB, free: 11.29 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007359/0.5725, allocations: 151.8 kB / 0.6391 GB, free: 11.14 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.177e-05/0.5725, allocations: 11.94 kB / 0.6391 GB, free: 11.13 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007223/0.5733, allocations: 83.69 kB / 0.6392 GB, free: 11.05 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.625e-05/0.5733, allocations: 28 kB / 0.6392 GB, free: 11.02 MB / 458.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.0005231/0.5739, allocations: 291.8 kB / 0.6395 GB, free: 10.73 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001915/0.5741, allocations: 79.06 kB / 0.6396 GB, free: 10.65 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002235/0.5743, allocations: 94.14 kB / 0.6397 GB, free: 10.55 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.5743, allocations: 4 kB / 0.6397 GB, free: 10.55 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.467e-05/0.5743, allocations: 0 / 0.6397 GB, free: 10.55 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.5743, allocations: 4 kB / 0.6397 GB, free: 10.55 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001872/0.5762, allocations: 0.8414 MB / 0.6405 GB, free: 9.648 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.413e-06/0.5763, allocations: 4 kB / 0.6405 GB, free: 9.645 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008496/0.5771, allocations: 111.9 kB / 0.6406 GB, free: 9.535 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.843e-06/0.5771, allocations: 4 kB / 0.6406 GB, free: 9.531 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.172e-05/0.5772, allocations: 19.98 kB / 0.6406 GB, free: 9.512 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.766e-06/0.5772, allocations: 4 kB / 0.6406 GB, free: 9.508 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.5772, allocations: 3.938 kB / 0.6407 GB, free: 9.504 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002736/0.58, allocations: 1.204 MB / 0.6418 GB, free: 8.285 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003222/0.5803, allocations: 200.1 kB / 0.642 GB, free: 8.07 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001138/0.5804, allocations: 15.98 kB / 0.642 GB, free: 8.055 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005694/0.581, allocations: 67.94 kB / 0.6421 GB, free: 7.988 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001352/0.5812, allocations: 39.88 kB / 0.6421 GB, free: 7.949 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.352e-05/0.5812, allocations: 12 kB / 0.6421 GB, free: 7.938 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0007925/0.582, allocations: 459 kB / 0.6426 GB, free: 7.492 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.3e-07/0.582, allocations: 0 / 0.6426 GB, free: 7.492 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001016/0.583, allocations: 208 kB / 0.6428 GB, free: 7.289 MB / 458.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.0002258/0.5833, allocations: 119.1 kB / 0.6429 GB, free: 7.164 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002389/0.5857, allocations: 1.025 MB / 0.6439 GB, free: 6.141 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.5857, allocations: 7.938 kB / 0.6439 GB, free: 6.133 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006917/0.5864, allocations: 306.4 kB / 0.6442 GB, free: 5.836 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001153/0.5876, allocations: 176.9 kB / 0.6444 GB, free: 5.668 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003059/0.5906, allocations: 1.742 MB / 0.6461 GB, free: 3.879 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006157/0.5913, allocations: 0.9458 MB / 0.647 GB, free: 2.902 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002371/0.5915, allocations: 55.38 kB / 0.647 GB, free: 2.848 MB / 458.7 MB Notification: Performance of SimCode: time 5.21e-07/0.5915, allocations: 0 / 0.647 GB, free: 2.848 MB / 458.7 MB Notification: Performance of Templates: time 0.01463/0.6062, allocations: 8.732 MB / 0.6556 GB, free: 10.15 MB / 474.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Continuous/Continuous.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches