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/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001127/0.001127, allocations: 98.7 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001467/0.001467, allocations: 197.7 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.574/1.574, allocations: 227.2 MB / 245.9 MB, free: 12.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2359/0.2359, allocations: 45.92 MB / 344 MB, free: 12.35 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003058/0.000306, allocations: 11.98 kB / 417.9 MB, free: 20.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1694/0.1697, allocations: 63.46 MB / 481.4 MB, free: 5.453 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous): time 0.003785/0.1735, allocations: 2.805 MB / 484.2 MB, free: 2.629 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003105/0.1767, allocations: 1.494 MB / 485.7 MB, free: 1.129 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003944/0.1771, allocations: 15.88 kB / 485.7 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005435/0.1776, allocations: 95.27 kB / 485.8 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004973/0.1781, allocations: 183.4 kB / 486 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001283/0.1794, allocations: 430.4 kB / 486.4 MB, free: 436 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008406/0.1803, allocations: 0.5658 MB / 487 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003864/0.1807, allocations: 173.2 kB / 487.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005294/0.1812, allocations: 314.7 kB / 487.4 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000466/0.1817, allocations: 314.5 kB / 487.7 MB, free: 15.06 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.165e-05/0.1818, allocations: 20 kB / 487.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001056/0.1819, allocations: 28 kB / 487.8 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001853/0.1821, allocations: 151.4 kB / 487.9 MB, free: 14.87 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001267/0.1822, allocations: 133.3 kB / 488.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005424/0.1828, allocations: 0.5377 MB / 488.6 MB, free: 14.19 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1828, allocations: 0 / 488.6 MB, free: 14.19 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.1828, allocations: 0 / 488.6 MB, free: 14.19 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.907e-06/0.1828, allocations: 4 kB / 488.6 MB, free: 14.19 MB / 366.1 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.002224/0.185, allocations: 1.063 MB / 489.7 MB, free: 13.07 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.1851, allocations: 8.031 kB / 489.7 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002844/0.1854, allocations: 98.95 kB / 489.8 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001036/0.1864, allocations: 0.5343 MB / 490.3 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.708e-05/0.1865, allocations: 37 kB / 490.3 MB, free: 12.36 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001073/0.1866, allocations: 52 kB / 490.4 MB, free: 12.31 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001311/0.1879, allocations: 0.6338 MB / 491 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.413e-05/0.188, allocations: 0 / 491 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.564e-05/0.188, allocations: 24 kB / 491.1 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.249e-05/0.1881, allocations: 12 kB / 491.1 MB, free: 11.58 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001212/0.1893, allocations: 0.49 MB / 491.6 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004724/0.194, allocations: 2.682 MB / 494.2 MB, free: 8.305 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001319/0.1954, allocations: 0.5859 MB / 494.8 MB, free: 7.691 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.796e-05/0.1954, allocations: 7.984 kB / 494.8 MB, free: 7.684 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.075e-05/0.1955, allocations: 42.55 kB / 494.9 MB, free: 7.633 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 2.905e-06/0.1955, allocations: 0 / 494.9 MB, free: 7.633 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002726/0.1982, allocations: 1.217 MB / 496.1 MB, free: 6.406 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001082/0.1983, allocations: 158.2 kB / 496.2 MB, free: 6.215 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009149/0.1993, allocations: 0.649 MB / 496.9 MB, free: 5.555 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.669e-05/0.1993, allocations: 37.7 kB / 496.9 MB, free: 5.512 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003413/0.1997, allocations: 364 kB / 497.3 MB, free: 5.148 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00019/0.1999, allocations: 169.5 kB / 497.5 MB, free: 4.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.384e-05/0.1999, allocations: 12 kB / 497.5 MB, free: 4.969 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.2001, allocations: 330 kB / 497.8 MB, free: 4.641 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006558/0.2007, allocations: 289.1 kB / 498.1 MB, free: 4.359 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007594/0.2015, allocations: 450 kB / 498.5 MB, free: 3.848 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006838/0.2022, allocations: 330 kB / 498.8 MB, free: 3.527 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.2022, allocations: 4 kB / 498.8 MB, free: 3.523 MB / 366.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001664/0.2039, allocations: 0.8382 MB / 499.7 MB, free: 2.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001005/0.2049, allocations: 1.738 MB / 0.4897 GB, free: 0.8047 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.703e-05/0.2049, allocations: 11.98 kB / 0.4897 GB, free: 0.793 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.764e-05/0.205, allocations: 8 kB / 0.4897 GB, free: 0.7852 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006942/0.2057, allocations: 155.8 kB / 0.4898 GB, free: 0.6328 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.837e-05/0.2057, allocations: 15.92 kB / 0.4898 GB, free: 0.6172 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00052/0.2062, allocations: 95.62 kB / 0.4899 GB, free: 0.5234 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.527e-05/0.2063, allocations: 20 kB / 0.49 GB, free: 0.5039 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.908e-06/0.2063, allocations: 4 kB / 0.49 GB, free: 0.5 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001395/0.2077, allocations: 0.7216 MB / 0.4907 GB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.2077, allocations: 12.02 kB / 0.4907 GB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.766e-06/0.2077, allocations: 8 kB / 0.4907 GB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005921/0.2083, allocations: 151.7 kB / 0.4908 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.2084, allocations: 8 kB / 0.4908 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000486/0.2089, allocations: 91.53 kB / 0.4909 GB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.81e-05/0.2089, allocations: 27.95 kB / 0.4909 GB, free: 15.49 MB / 382.1 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.0004469/0.2094, allocations: 285.5 kB / 0.4912 GB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001538/0.2095, allocations: 86.94 kB / 0.4913 GB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001768/0.2097, allocations: 90.2 kB / 0.4914 GB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.403e-06/0.2097, allocations: 4 kB / 0.4914 GB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-05/0.2097, allocations: 4 kB / 0.4914 GB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.2098, allocations: 3.984 kB / 0.4914 GB, free: 15.01 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001411/0.2112, allocations: 0.8571 MB / 0.4922 GB, free: 14.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.2112, allocations: 0 / 0.4922 GB, free: 14.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006117/0.2118, allocations: 111.9 kB / 0.4923 GB, free: 13.99 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.082e-06/0.2118, allocations: 4 kB / 0.4923 GB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.599e-05/0.2119, allocations: 19.98 kB / 0.4924 GB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.933e-06/0.2119, allocations: 7.938 kB / 0.4924 GB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.2119, allocations: 3.953 kB / 0.4924 GB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002076/0.214, allocations: 1.226 MB / 0.4936 GB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002603/0.2143, allocations: 196.2 kB / 0.4938 GB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.666e-05/0.2143, allocations: 15.98 kB / 0.4938 GB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005118/0.2149, allocations: 63.94 kB / 0.4938 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/0.215, allocations: 35.94 kB / 0.4939 GB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.905e-05/0.215, allocations: 12 kB / 0.4939 GB, free: 12.36 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006312/0.2157, allocations: 455 kB / 0.4943 GB, free: 11.92 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2157, allocations: 7.938 kB / 0.4943 GB, free: 11.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007584/0.2164, allocations: 192 kB / 0.4945 GB, free: 11.72 MB / 382.1 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.000164/0.2166, allocations: 115 kB / 0.4946 GB, free: 11.6 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002093/0.2187, allocations: 1.005 MB / 0.4956 GB, free: 10.6 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.2187, allocations: 4 kB / 0.4956 GB, free: 10.59 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006201/0.2193, allocations: 311.7 kB / 0.4959 GB, free: 10.29 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008746/0.2202, allocations: 169 kB / 0.4961 GB, free: 10.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002645/0.2229, allocations: 1.706 MB / 0.4977 GB, free: 8.383 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000543/0.2234, allocations: 0.9653 MB / 0.4987 GB, free: 7.391 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004882/0.2239, allocations: 156.7 kB / 0.4988 GB, free: 7.234 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001568/0.2241, allocations: 43.44 kB / 0.4989 GB, free: 7.191 MB / 382.1 MB Notification: Performance of SimCode: time 9.62e-07/0.2241, allocations: 0 / 0.4989 GB, free: 7.191 MB / 382.1 MB Notification: Performance of Templates: time 0.01241/0.2365, allocations: 6.555 MB / 0.5053 GB, free: 0.6953 MB / 382.1 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