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.0009604/0.0009605, allocations: 197.4 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.142/1.142, allocations: 227.2 MB / 245 MB, free: 7.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008748/0.0008748, allocations: 109.7 kB / 297.3 MB, free: 6.176 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2612/0.2612, allocations: 45.22 MB / 394.7 MB, free: 31.64 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002283/0.0002283, allocations: 8 kB / 468.4 MB, free: 7.746 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2506/0.2508, allocations: 63.25 MB / 0.5192 GB, free: 43.48 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09535/0.3462, allocations: 97.61 MB / 0.6145 GB, free: 8.039 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001542/0.3464, allocations: 68.5 kB / 0.6146 GB, free: 7.973 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04108/0.3875, allocations: 14.81 MB / 0.629 GB, free: 9.172 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.3875, allocations: 0 / 0.629 GB, free: 9.172 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.959e-05/0.3876, allocations: 20 kB / 0.629 GB, free: 9.152 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.002299/0.3899, allocations: 1.1 MB / 0.6301 GB, free: 8.004 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/0.39, allocations: 8.031 kB / 0.6301 GB, free: 7.996 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003713/0.3903, allocations: 107 kB / 0.6302 GB, free: 7.891 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001154/0.3915, allocations: 0.5743 MB / 0.6308 GB, free: 7.273 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.321e-05/0.3916, allocations: 41 kB / 0.6308 GB, free: 7.23 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.488e-05/0.3917, allocations: 59.91 kB / 0.6309 GB, free: 7.172 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001035/0.3927, allocations: 0.6291 MB / 0.6315 GB, free: 6.496 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.799e-05/0.3927, allocations: 4 kB / 0.6315 GB, free: 6.492 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.541e-05/0.3928, allocations: 16 kB / 0.6315 GB, free: 6.477 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.486e-05/0.3928, allocations: 19.94 kB / 0.6315 GB, free: 6.457 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001024/0.3938, allocations: 0.4938 MB / 0.632 GB, free: 5.965 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003453/0.3973, allocations: 2.702 MB / 0.6347 GB, free: 3.16 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001161/0.3985, allocations: 0.5876 MB / 0.6352 GB, free: 2.547 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.635e-05/0.3985, allocations: 8.062 kB / 0.6352 GB, free: 2.539 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.3986, allocations: 34.56 kB / 0.6353 GB, free: 2.496 MB / 442.7 MB Notification: Performance of pre-optimization done (n=43): time 1.814e-06/0.3986, allocations: 4 kB / 0.6353 GB, free: 2.492 MB / 442.7 MB Notification: Performance of matching and sorting (n=44): time 0.002385/0.401, allocations: 1.206 MB / 0.6365 GB, free: 1.273 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.687e-05/0.4011, allocations: 132.5 kB / 0.6366 GB, free: 1.113 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007428/0.4018, allocations: 0.5739 MB / 0.6371 GB, free: 0.5312 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.899e-05/0.4019, allocations: 37.7 kB / 0.6372 GB, free: 500 kB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002175/0.4021, allocations: 352 kB / 0.6375 GB, free: 144 kB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001344/0.4022, allocations: 169.6 kB / 0.6377 GB, free: 15.97 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.3e-05/0.4023, allocations: 16 kB / 0.6377 GB, free: 15.95 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.419e-05/0.4024, allocations: 334 kB / 0.638 GB, free: 15.62 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005986/0.403, allocations: 289.1 kB / 0.6383 GB, free: 15.34 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006704/0.4037, allocations: 442.9 kB / 0.6387 GB, free: 14.84 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000651/0.4043, allocations: 334.2 kB / 0.639 GB, free: 14.51 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.4043, allocations: 0 / 0.639 GB, free: 14.51 MB / 458.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001537/0.4059, allocations: 0.8457 MB / 0.6398 GB, free: 13.66 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000509/0.4064, allocations: 1.747 MB / 0.6416 GB, free: 11.78 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.4e-05/0.4064, allocations: 4 kB / 0.6416 GB, free: 11.78 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.4065, allocations: 12 kB / 0.6416 GB, free: 11.77 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006498/0.4071, allocations: 163.7 kB / 0.6417 GB, free: 11.61 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.289e-05/0.4071, allocations: 8 kB / 0.6417 GB, free: 11.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005378/0.4077, allocations: 99.56 kB / 0.6418 GB, free: 11.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.254e-05/0.4077, allocations: 20 kB / 0.6418 GB, free: 11.48 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.687e-06/0.4077, allocations: 4 kB / 0.6419 GB, free: 11.48 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001327/0.4091, allocations: 0.714 MB / 0.6425 GB, free: 10.76 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.4091, allocations: 7.938 kB / 0.6426 GB, free: 10.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.4091, allocations: 19.92 kB / 0.6426 GB, free: 10.73 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005941/0.4097, allocations: 160.2 kB / 0.6427 GB, free: 10.58 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.895e-06/0.4097, allocations: 4 kB / 0.6427 GB, free: 10.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00051/0.4102, allocations: 83.62 kB / 0.6428 GB, free: 10.49 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.147e-05/0.4103, allocations: 24 kB / 0.6428 GB, free: 10.47 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.0002597/0.4106, allocations: 292.9 kB / 0.6431 GB, free: 10.17 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001295/0.4107, allocations: 75.06 kB / 0.6432 GB, free: 10.1 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001622/0.4109, allocations: 94.16 kB / 0.6433 GB, free: 10 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.92e-06/0.4109, allocations: 4 kB / 0.6433 GB, free: 9.996 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.4109, allocations: 0 / 0.6433 GB, free: 9.996 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.4109, allocations: 0 / 0.6433 GB, free: 9.996 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00112/0.412, allocations: 0.8414 MB / 0.6441 GB, free: 9.102 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.412, allocations: 0 / 0.6441 GB, free: 9.102 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006522/0.4127, allocations: 131.8 kB / 0.6442 GB, free: 8.973 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.4127, allocations: 0 / 0.6442 GB, free: 8.973 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.846e-05/0.4128, allocations: 19.98 kB / 0.6442 GB, free: 8.953 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.4128, allocations: 4 kB / 0.6443 GB, free: 8.949 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.4128, allocations: 0 / 0.6443 GB, free: 8.949 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001885/0.4147, allocations: 1.222 MB / 0.6454 GB, free: 7.699 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002455/0.4149, allocations: 196.2 kB / 0.6456 GB, free: 7.488 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.373e-05/0.415, allocations: 15.98 kB / 0.6456 GB, free: 7.473 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005718/0.4156, allocations: 63.94 kB / 0.6457 GB, free: 7.41 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.677e-05/0.4157, allocations: 43.81 kB / 0.6457 GB, free: 7.367 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.964e-05/0.4157, allocations: 15.94 kB / 0.6458 GB, free: 7.352 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005812/0.4163, allocations: 463 kB / 0.6462 GB, free: 6.906 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4163, allocations: 0 / 0.6462 GB, free: 6.906 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0007079/0.4171, allocations: 211.9 kB / 0.6464 GB, free: 6.699 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.0001472/0.4172, allocations: 115.9 kB / 0.6465 GB, free: 6.574 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001951/0.4192, allocations: 1.025 MB / 0.6475 GB, free: 5.551 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.4192, allocations: 8.062 kB / 0.6475 GB, free: 5.543 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000602/0.4198, allocations: 306.5 kB / 0.6478 GB, free: 5.246 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007531/0.4205, allocations: 165 kB / 0.648 GB, free: 5.086 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002337/0.4229, allocations: 1.705 MB / 0.6496 GB, free: 3.344 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000452/0.4234, allocations: 0.9691 MB / 0.6506 GB, free: 2.344 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0004952/0.4239, allocations: 152.7 kB / 0.6507 GB, free: 2.195 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001567/0.424, allocations: 47.42 kB / 0.6508 GB, free: 2.148 MB / 458.7 MB Notification: Performance of SimCode: time 2.31e-07/0.424, allocations: 0 / 0.6508 GB, free: 2.148 MB / 458.7 MB Notification: Performance of Templates: time 0.01139/0.4354, allocations: 6.672 MB / 0.6573 GB, free: 11.54 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/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