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.001188/0.001189, allocations: 95.56 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001222/0.001222, allocations: 207.3 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.635/1.635, allocations: 227.7 MB / 247.5 MB, free: 11.33 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2003/0.2003, allocations: 46.19 MB / 345.9 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002467/0.0002468, allocations: 8.375 kB / 420.2 MB, free: 19.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1004, allocations: 63.57 MB / 483.7 MB, free: 4.191 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous): time 0.003431/0.1038, allocations: 2.962 MB / 486.7 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002774/0.1066, allocations: 1.56 MB / 488.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004444/0.1071, allocations: 19.88 kB / 488.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004639/0.1076, allocations: 111.2 kB / 488.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005176/0.1081, allocations: 155 kB / 488.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001187/0.1093, allocations: 498.4 kB / 489 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001/0.1103, allocations: 0.8459 MB / 489.9 MB, free: 14.03 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003808/0.1107, allocations: 226.4 kB / 490.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005121/0.1112, allocations: 294.4 kB / 490.4 MB, free: 13.51 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006092/0.1118, allocations: 342.2 kB / 490.7 MB, free: 13.17 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001454/0.112, allocations: 24 kB / 490.7 MB, free: 13.15 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001563/0.1122, allocations: 31.94 kB / 490.8 MB, free: 13.12 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000228/0.1124, allocations: 163.2 kB / 490.9 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003628/0.1128, allocations: 311.5 kB / 491.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004939/0.1133, allocations: 0.5339 MB / 491.8 MB, free: 12.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1133, allocations: 0 / 491.8 MB, free: 12.11 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1133, allocations: 0 / 491.8 MB, free: 12.11 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.97e-05/0.1133, allocations: 0 / 491.8 MB, free: 12.11 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.002153/0.1155, allocations: 1.053 MB / 492.8 MB, free: 11.01 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.1155, allocations: 9.953 kB / 492.8 MB, free: 11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002653/0.1158, allocations: 95.91 kB / 492.9 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008839/0.1167, allocations: 0.5662 MB / 493.5 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.66e-05/0.1167, allocations: 37.38 kB / 493.5 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.698e-05/0.1168, allocations: 60.28 kB / 493.6 MB, free: 10.21 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001159/0.118, allocations: 0.6341 MB / 494.2 MB, free: 9.516 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.929e-05/0.1181, allocations: 4 kB / 494.2 MB, free: 9.512 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.097e-05/0.1181, allocations: 23.94 kB / 494.2 MB, free: 9.488 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.381e-05/0.1181, allocations: 12 kB / 494.3 MB, free: 9.477 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00113/0.1193, allocations: 0.4938 MB / 494.7 MB, free: 8.98 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003748/0.123, allocations: 2.702 MB / 497.4 MB, free: 6.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001168/0.1242, allocations: 0.5741 MB / 498 MB, free: 5.578 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005962/0.1248, allocations: 266.4 kB / 498.3 MB, free: 5.309 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.272e-05/0.1249, allocations: 8 kB / 498.3 MB, free: 5.301 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.97e-05/0.1249, allocations: 42.59 kB / 498.3 MB, free: 5.25 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.623e-06/0.1249, allocations: 0 / 498.3 MB, free: 5.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002615/0.1275, allocations: 1.213 MB / 499.5 MB, free: 4.027 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.394e-05/0.1276, allocations: 162.2 kB / 499.7 MB, free: 3.832 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008695/0.1285, allocations: 0.6645 MB / 0.4886 GB, free: 3.156 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.629e-05/0.1286, allocations: 33.7 kB / 0.4887 GB, free: 3.117 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002755/0.1289, allocations: 360 kB / 0.489 GB, free: 2.758 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001417/0.129, allocations: 169.5 kB / 0.4892 GB, free: 2.59 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.702e-05/0.1291, allocations: 65.67 kB / 0.4892 GB, free: 2.52 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.1292, allocations: 329.9 kB / 0.4896 GB, free: 2.191 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006802/0.1299, allocations: 289.1 kB / 0.4898 GB, free: 1.91 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007767/0.1307, allocations: 457.5 kB / 0.4903 GB, free: 1.391 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00139/0.1321, allocations: 0.717 MB / 0.491 GB, free: 0.6133 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.1321, allocations: 0 / 0.491 GB, free: 0.6133 MB / 366.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001723/0.1338, allocations: 0.8509 MB / 0.4918 GB, free: 15.75 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001486/0.134, allocations: 225.6 kB / 0.492 GB, free: 15.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.134, allocations: 4 kB / 0.492 GB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.992e-05/0.134, allocations: 11.94 kB / 0.492 GB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006813/0.1347, allocations: 163.8 kB / 0.4922 GB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.472e-05/0.1348, allocations: 11.94 kB / 0.4922 GB, free: 15.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005312/0.1353, allocations: 91.62 kB / 0.4923 GB, free: 15.19 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.627e-05/0.1354, allocations: 24 kB / 0.4923 GB, free: 15.17 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.003e-06/0.1354, allocations: 7.938 kB / 0.4923 GB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001492/0.1369, allocations: 0.7175 MB / 0.493 GB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.1369, allocations: 4 kB / 0.493 GB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.906e-06/0.1369, allocations: 8 kB / 0.493 GB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006079/0.1375, allocations: 155.7 kB / 0.4932 GB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.226e-05/0.1375, allocations: 16.2 kB / 0.4932 GB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005268/0.1381, allocations: 79.64 kB / 0.4933 GB, free: 14.19 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.266e-05/0.1381, allocations: 20 kB / 0.4933 GB, free: 14.17 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.0003037/0.1384, allocations: 301.1 kB / 0.4936 GB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001468/0.1386, allocations: 75.06 kB / 0.4936 GB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001849/0.1388, allocations: 82.22 kB / 0.4937 GB, free: 13.71 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.1388, allocations: 8 kB / 0.4937 GB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.1388, allocations: 0 / 0.4937 GB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.1388, allocations: 11.95 kB / 0.4937 GB, free: 13.69 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0013/0.1401, allocations: 0.8687 MB / 0.4946 GB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.1401, allocations: 0 / 0.4946 GB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006432/0.1408, allocations: 111.9 kB / 0.4947 GB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.1408, allocations: 4 kB / 0.4947 GB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.832e-05/0.1409, allocations: 19.98 kB / 0.4947 GB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.1409, allocations: 3.938 kB / 0.4947 GB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.1409, allocations: 7.938 kB / 0.4947 GB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002144/0.143, allocations: 1.199 MB / 0.4959 GB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002311/0.1433, allocations: 200.2 kB / 0.4961 GB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.545e-05/0.1434, allocations: 12 kB / 0.4961 GB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005639/0.1439, allocations: 67.88 kB / 0.4962 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/0.1441, allocations: 31.95 kB / 0.4962 GB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.211e-05/0.1441, allocations: 15.98 kB / 0.4962 GB, free: 11.06 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006608/0.1448, allocations: 463 kB / 0.4967 GB, free: 10.61 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1448, allocations: 4 kB / 0.4967 GB, free: 10.61 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000761/0.1455, allocations: 188 kB / 0.4968 GB, free: 10.42 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.0001462/0.1457, allocations: 115.5 kB / 0.4969 GB, free: 10.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002204/0.1479, allocations: 1.017 MB / 0.4979 GB, free: 9.285 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1479, allocations: 0 / 0.4979 GB, free: 9.285 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006656/0.1486, allocations: 307.8 kB / 0.4982 GB, free: 8.984 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001151/0.1498, allocations: 176.4 kB / 0.4984 GB, free: 8.816 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003018/0.1528, allocations: 1.887 MB / 0.5002 GB, free: 6.887 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005297/0.1533, allocations: 0.9574 MB / 0.5012 GB, free: 5.902 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002187/0.1536, allocations: 51.38 kB / 0.5012 GB, free: 5.852 MB / 382.1 MB Notification: Performance of SimCode: time 7.42e-07/0.1536, allocations: 0 / 0.5012 GB, free: 5.852 MB / 382.1 MB Notification: Performance of Templates: time 0.1921/0.3456, allocations: 8.589 MB / 0.5096 GB, free: 37.54 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches