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.00108/0.00108, allocations: 204 kB / 18.11 MB, free: 3.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.452/1.452, allocations: 226.5 MB / 245.4 MB, free: 8.164 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008095/0.0008095, allocations: 101 kB / 297.5 MB, free: 6.871 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.341/0.341, allocations: 44.82 MB / 394.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003249/0.0003251, allocations: 11.98 kB / 467.9 MB, free: 12.03 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4202/0.4206, allocations: 62.95 MB / 0.5184 GB, free: 37.32 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.134/0.5547, allocations: 97.47 MB / 0.6136 GB, free: 7.816 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002357/0.5549, allocations: 71.95 kB / 0.6137 GB, free: 7.75 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04438/0.5993, allocations: 14.8 MB / 0.6281 GB, free: 8.902 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.5994, allocations: 0 / 0.6281 GB, free: 8.902 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000123/0.5995, allocations: 23.94 kB / 0.6281 GB, free: 8.879 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.002874/0.6024, allocations: 1.083 MB / 0.6292 GB, free: 7.742 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/0.6025, allocations: 12.03 kB / 0.6292 GB, free: 7.73 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005673/0.603, allocations: 107.8 kB / 0.6293 GB, free: 7.625 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001559/0.6046, allocations: 0.6101 MB / 0.6299 GB, free: 6.977 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.376e-05/0.6047, allocations: 37.38 kB / 0.6299 GB, free: 6.938 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001832/0.6049, allocations: 52.28 kB / 0.63 GB, free: 6.887 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001339/0.6062, allocations: 0.6335 MB / 0.6306 GB, free: 6.203 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.185e-05/0.6063, allocations: 4.188 kB / 0.6306 GB, free: 6.199 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.538e-05/0.6064, allocations: 23.94 kB / 0.6306 GB, free: 6.176 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.538e-05/0.6064, allocations: 12 kB / 0.6306 GB, free: 6.164 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001171/0.6076, allocations: 0.4977 MB / 0.6311 GB, free: 5.668 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004834/0.6124, allocations: 2.702 MB / 0.6338 GB, free: 2.863 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001169/0.6136, allocations: 0.5842 MB / 0.6343 GB, free: 2.254 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006041/0.6142, allocations: 266.5 kB / 0.6346 GB, free: 1.984 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.196e-05/0.6143, allocations: 15.98 kB / 0.6346 GB, free: 1.969 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.675e-05/0.6144, allocations: 34.56 kB / 0.6346 GB, free: 1.926 MB / 442.7 MB Notification: Performance of pre-optimization done (n=43): time 3.937e-06/0.6144, allocations: 0 / 0.6346 GB, free: 1.926 MB / 442.7 MB Notification: Performance of matching and sorting (n=44): time 0.002828/0.6172, allocations: 1.203 MB / 0.6358 GB, free: 0.7109 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.942e-05/0.6173, allocations: 140.5 kB / 0.636 GB, free: 0.543 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001046/0.6184, allocations: 0.6489 MB / 0.6366 GB, free: 15.88 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.757e-05/0.6184, allocations: 37.7 kB / 0.6366 GB, free: 15.84 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002879/0.6187, allocations: 360 kB / 0.637 GB, free: 15.48 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001711/0.6189, allocations: 169.5 kB / 0.6371 GB, free: 15.31 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.203e-05/0.619, allocations: 12 kB / 0.6371 GB, free: 15.3 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.6191, allocations: 337.9 kB / 0.6375 GB, free: 14.96 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006359/0.6197, allocations: 281.1 kB / 0.6377 GB, free: 14.69 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007224/0.6205, allocations: 456.6 kB / 0.6382 GB, free: 14.18 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001353/0.6218, allocations: 0.7166 MB / 0.6389 GB, free: 13.4 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.6219, allocations: 0 / 0.6389 GB, free: 13.4 MB / 458.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001728/0.6236, allocations: 0.8424 MB / 0.6397 GB, free: 12.55 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001894/0.6238, allocations: 225.6 kB / 0.6399 GB, free: 12.27 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/0.6238, allocations: 8 kB / 0.6399 GB, free: 12.26 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.773e-05/0.6238, allocations: 8 kB / 0.6399 GB, free: 12.25 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006994/0.6246, allocations: 163.7 kB / 0.6401 GB, free: 12.09 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.895e-05/0.6246, allocations: 8 kB / 0.6401 GB, free: 12.08 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006199/0.6252, allocations: 91.62 kB / 0.6402 GB, free: 11.99 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.12e-05/0.6253, allocations: 24 kB / 0.6402 GB, free: 11.97 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.154e-05/0.6253, allocations: 10.59 kB / 0.6402 GB, free: 11.96 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001458/0.6268, allocations: 0.7258 MB / 0.6409 GB, free: 11.23 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.6268, allocations: 4 kB / 0.6409 GB, free: 11.23 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.041e-05/0.6268, allocations: 8 kB / 0.6409 GB, free: 11.22 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005945/0.6274, allocations: 151.8 kB / 0.6411 GB, free: 11.07 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.114e-05/0.6274, allocations: 15.92 kB / 0.6411 GB, free: 11.06 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000589/0.628, allocations: 87.77 kB / 0.6412 GB, free: 10.97 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.651e-05/0.6281, allocations: 24 kB / 0.6412 GB, free: 10.95 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.000417/0.6285, allocations: 292.8 kB / 0.6415 GB, free: 10.65 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001908/0.6287, allocations: 75.06 kB / 0.6415 GB, free: 10.58 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002201/0.6289, allocations: 90.2 kB / 0.6416 GB, free: 10.48 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/0.6289, allocations: 8 kB / 0.6416 GB, free: 10.48 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.629, allocations: 0 / 0.6416 GB, free: 10.48 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.629, allocations: 0 / 0.6416 GB, free: 10.48 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001461/0.6304, allocations: 0.8453 MB / 0.6425 GB, free: 9.574 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.6305, allocations: 0 / 0.6425 GB, free: 9.574 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006429/0.6311, allocations: 115.9 kB / 0.6426 GB, free: 9.461 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.491e-06/0.6311, allocations: 4 kB / 0.6426 GB, free: 9.457 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.474e-05/0.6312, allocations: 19.98 kB / 0.6426 GB, free: 9.438 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.6312, allocations: 0 / 0.6426 GB, free: 9.438 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/0.6312, allocations: 7.938 kB / 0.6426 GB, free: 9.43 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002009/0.6332, allocations: 1.204 MB / 0.6438 GB, free: 8.211 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002735/0.6335, allocations: 200.1 kB / 0.644 GB, free: 7.996 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001033/0.6336, allocations: 12 kB / 0.644 GB, free: 7.984 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005869/0.6342, allocations: 63.94 kB / 0.644 GB, free: 7.922 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001263/0.6343, allocations: 43.88 kB / 0.6441 GB, free: 7.879 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.983e-05/0.6344, allocations: 8 kB / 0.6441 GB, free: 7.871 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006775/0.6351, allocations: 467 kB / 0.6445 GB, free: 7.418 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6351, allocations: 0 / 0.6445 GB, free: 7.418 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0008365/0.6359, allocations: 204 kB / 0.6447 GB, free: 7.219 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.0001792/0.6361, allocations: 119.1 kB / 0.6448 GB, free: 7.094 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002182/0.6383, allocations: 1.024 MB / 0.6458 GB, free: 6.07 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.6383, allocations: 0 / 0.6458 GB, free: 6.07 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006276/0.6389, allocations: 309.7 kB / 0.6461 GB, free: 5.77 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001133/0.6401, allocations: 175.5 kB / 0.6463 GB, free: 5.605 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00322/0.6433, allocations: 1.706 MB / 0.648 GB, free: 3.863 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005984/0.6439, allocations: 0.9497 MB / 0.6489 GB, free: 2.883 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0006269/0.6446, allocations: 156.7 kB / 0.649 GB, free: 2.727 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001719/0.6448, allocations: 39.44 kB / 0.6491 GB, free: 2.688 MB / 458.7 MB Notification: Performance of SimCode: time 5.31e-07/0.6448, allocations: 0 / 0.6491 GB, free: 2.688 MB / 458.7 MB Notification: Performance of Templates: time 0.01371/0.6585, allocations: 6.754 MB / 0.6557 GB, free: 11.99 MB / 474.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/jenkins1/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