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.0008513/0.0008514, allocations: 93.84 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001008/0.001008, allocations: 202.4 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.242/1.242, allocations: 227.7 MB / 246.8 MB, free: 11.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1771/0.1771, allocations: 46.19 MB / 345.2 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002188/0.0002188, allocations: 11.98 kB / 419.5 MB, free: 19.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08576/0.086, allocations: 63.57 MB / 483.1 MB, free: 4.184 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous): time 0.002986/0.08901, allocations: 2.955 MB / 486 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002316/0.09134, allocations: 1.567 MB / 487.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002288/0.09159, allocations: 19.88 kB / 487.6 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003828/0.09198, allocations: 103.2 kB / 487.7 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000379/0.09237, allocations: 155.1 kB / 487.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008977/0.09328, allocations: 0.4907 MB / 488.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007504/0.09404, allocations: 0.8499 MB / 489.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000319/0.09437, allocations: 222.4 kB / 489.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003562/0.09473, allocations: 298.4 kB / 489.7 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003881/0.09513, allocations: 342.2 kB / 490 MB, free: 13.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.977e-05/0.0952, allocations: 20 kB / 490.1 MB, free: 13.14 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.46e-05/0.09529, allocations: 28 kB / 490.1 MB, free: 13.12 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001593/0.09546, allocations: 163.3 kB / 490.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002177/0.09569, allocations: 319.5 kB / 490.6 MB, free: 12.64 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005094/0.09621, allocations: 0.6808 MB / 491.2 MB, free: 11.95 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.09622, allocations: 4 kB / 491.2 MB, free: 11.95 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.09622, allocations: 0 / 491.2 MB, free: 11.95 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.09624, allocations: 0 / 491.2 MB, free: 11.95 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.001857/0.0981, allocations: 1.051 MB / 492.3 MB, free: 10.85 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.068e-05/0.09814, allocations: 9.953 kB / 492.3 MB, free: 10.84 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002168/0.09836, allocations: 99.89 kB / 492.4 MB, free: 10.74 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007633/0.09913, allocations: 0.5623 MB / 493 MB, free: 10.14 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.639e-05/0.09918, allocations: 37.38 kB / 493 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.369e-05/0.09927, allocations: 60.27 kB / 493.1 MB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001055/0.1003, allocations: 0.638 MB / 493.7 MB, free: 9.352 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/0.1004, allocations: 0 / 493.7 MB, free: 9.352 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.913e-05/0.1004, allocations: 24 kB / 493.7 MB, free: 9.328 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.267e-05/0.1004, allocations: 12 kB / 493.7 MB, free: 9.316 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001077/0.1015, allocations: 0.4938 MB / 494.2 MB, free: 8.82 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003228/0.1048, allocations: 2.694 MB / 496.9 MB, free: 6.027 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001105/0.1059, allocations: 0.5801 MB / 497.5 MB, free: 5.426 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005665/0.1065, allocations: 270.4 kB / 497.8 MB, free: 5.152 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.696e-05/0.1065, allocations: 4 kB / 497.8 MB, free: 5.148 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.748e-05/0.1065, allocations: 46.59 kB / 497.8 MB, free: 5.094 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.623e-06/0.1065, allocations: 0 / 497.8 MB, free: 5.094 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002421/0.109, allocations: 1.21 MB / 499 MB, free: 3.871 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.529e-05/0.109, allocations: 170.1 kB / 499.2 MB, free: 3.668 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007759/0.1098, allocations: 0.6567 MB / 499.9 MB, free: 3 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.051e-05/0.1099, allocations: 37.7 kB / 499.9 MB, free: 2.957 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002354/0.1101, allocations: 368 kB / 0.4885 GB, free: 2.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001161/0.1103, allocations: 165.6 kB / 0.4887 GB, free: 2.426 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.283e-05/0.1103, allocations: 65.67 kB / 0.4887 GB, free: 2.355 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.442e-05/0.1104, allocations: 337.9 kB / 0.4891 GB, free: 2.02 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006347/0.1111, allocations: 281.1 kB / 0.4893 GB, free: 1.746 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007201/0.1118, allocations: 453.5 kB / 0.4898 GB, free: 1.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001302/0.1131, allocations: 0.7249 MB / 0.4905 GB, free: 456 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.1131, allocations: 0 / 0.4905 GB, free: 456 kB / 366.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001586/0.1147, allocations: 0.8381 MB / 0.4913 GB, free: 15.6 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000109/0.1148, allocations: 232.8 kB / 0.4915 GB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.1149, allocations: 4 kB / 0.4915 GB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/0.1149, allocations: 11.94 kB / 0.4915 GB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000666/0.1156, allocations: 163.8 kB / 0.4917 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.306e-05/0.1156, allocations: 11.94 kB / 0.4917 GB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000523/0.1161, allocations: 91.62 kB / 0.4918 GB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.165e-05/0.1162, allocations: 20 kB / 0.4918 GB, free: 15.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.521e-06/0.1162, allocations: 7.938 kB / 0.4918 GB, free: 15.01 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001379/0.1176, allocations: 0.7182 MB / 0.4925 GB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.1176, allocations: 8.125 kB / 0.4925 GB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.174e-06/0.1176, allocations: 8 kB / 0.4925 GB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006174/0.1182, allocations: 151.8 kB / 0.4927 GB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.729e-06/0.1182, allocations: 11.94 kB / 0.4927 GB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004884/0.1187, allocations: 83.64 kB / 0.4928 GB, free: 14.03 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.8e-05/0.1188, allocations: 24 kB / 0.4928 GB, free: 14.01 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002543/0.119, allocations: 293.1 kB / 0.4931 GB, free: 13.71 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001317/0.1192, allocations: 79.06 kB / 0.4931 GB, free: 13.63 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001898/0.1194, allocations: 90.2 kB / 0.4932 GB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.1194, allocations: 4 kB / 0.4932 GB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.942e-06/0.1194, allocations: 8 kB / 0.4932 GB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.1194, allocations: 0 / 0.4932 GB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001148/0.1206, allocations: 0.8648 MB / 0.4941 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.1206, allocations: 0 / 0.4941 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006476/0.1212, allocations: 111.9 kB / 0.4942 GB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.1212, allocations: 4 kB / 0.4942 GB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.205e-05/0.1213, allocations: 16 kB / 0.4942 GB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.758e-06/0.1213, allocations: 11.92 kB / 0.4942 GB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.1213, allocations: 0 / 0.4942 GB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00199/0.1233, allocations: 1.207 MB / 0.4954 GB, free: 11.24 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002008/0.1235, allocations: 196.2 kB / 0.4956 GB, free: 11.03 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.189e-05/0.1236, allocations: 19.94 kB / 0.4956 GB, free: 11.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005565/0.1242, allocations: 63.88 kB / 0.4957 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/0.1243, allocations: 43.94 kB / 0.4957 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.678e-05/0.1243, allocations: 8 kB / 0.4957 GB, free: 10.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005737/0.1249, allocations: 459 kB / 0.4962 GB, free: 10.45 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1249, allocations: 0 / 0.4962 GB, free: 10.45 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006908/0.1256, allocations: 192 kB / 0.4963 GB, free: 10.26 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001145/0.1257, allocations: 119.6 kB / 0.4965 GB, free: 10.14 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00203/0.1278, allocations: 1.017 MB / 0.4974 GB, free: 9.121 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1278, allocations: 0 / 0.4974 GB, free: 9.121 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006335/0.1284, allocations: 310 kB / 0.4977 GB, free: 8.82 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001081/0.1295, allocations: 181.7 kB / 0.4979 GB, free: 8.645 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002613/0.1321, allocations: 1.83 MB / 0.4997 GB, free: 6.777 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004298/0.1326, allocations: 0.9574 MB / 0.5006 GB, free: 5.793 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004486/0.133, allocations: 144.7 kB / 0.5008 GB, free: 5.648 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001568/0.1332, allocations: 47.42 kB / 0.5008 GB, free: 5.602 MB / 382.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1332, allocations: 0 / 0.5008 GB, free: 5.602 MB / 382.1 MB Notification: Performance of Templates: time 0.1696/0.3028, allocations: 6.722 MB / 0.5074 GB, free: 39.34 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches