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.001611/0.001611, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001867/0.001867, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 227.4 MB / 246.9 MB, free: 10.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2288/0.2288, allocations: 46.1 MB / 344.3 MB, free: 11.8 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 69.77 kB / 417.5 MB, free: 20.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1073, allocations: 62.44 MB / 479.9 MB, free: 5.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous): time 0.004753/0.1121, allocations: 3.355 MB / 483.3 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003118/0.1153, allocations: 1.583 MB / 484.9 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004849/0.1158, allocations: 19.88 kB / 484.9 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005695/0.1164, allocations: 103.2 kB / 485 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004528/0.1169, allocations: 163 kB / 485.1 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001188/0.1181, allocations: 0.4913 MB / 485.6 MB, free: 16 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008673/0.119, allocations: 0.8537 MB / 486.5 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003818/0.1194, allocations: 226.4 kB / 486.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004471/0.1198, allocations: 318.5 kB / 487 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004456/0.1203, allocations: 382 kB / 487.4 MB, free: 14.24 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.65e-05/0.1204, allocations: 32 kB / 487.4 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001144/0.1205, allocations: 36 kB / 487.5 MB, free: 14.17 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001682/0.1207, allocations: 167.3 kB / 487.6 MB, free: 14.01 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002315/0.1209, allocations: 313.8 kB / 487.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004423/0.1214, allocations: 0.5497 MB / 488.5 MB, free: 13.15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1214, allocations: 0 / 488.5 MB, free: 13.15 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1214, allocations: 3.984 kB / 488.5 MB, free: 13.14 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.1214, allocations: 0 / 488.5 MB, free: 13.14 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.002221/0.1236, allocations: 1.152 MB / 489.6 MB, free: 11.94 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.1237, allocations: 13.95 kB / 489.7 MB, free: 11.93 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002571/0.124, allocations: 103.9 kB / 489.8 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008239/0.1248, allocations: 0.5584 MB / 490.3 MB, free: 11.23 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.339e-05/0.1248, allocations: 37.38 kB / 490.3 MB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.898e-05/0.1249, allocations: 56.28 kB / 490.4 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001032/0.126, allocations: 0.621 MB / 491 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.115e-05/0.126, allocations: 3.938 kB / 491 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.458e-05/0.1261, allocations: 23.88 kB / 491 MB, free: 10.44 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.1261, allocations: 12 kB / 491.1 MB, free: 10.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009892/0.1271, allocations: 465.8 kB / 491.5 MB, free: 9.969 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003564/0.1306, allocations: 2.663 MB / 494.2 MB, free: 7.207 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001081/0.1318, allocations: 0.5468 MB / 494.7 MB, free: 6.633 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005369/0.1323, allocations: 246.5 kB / 495 MB, free: 6.383 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.673e-05/0.1324, allocations: 12 kB / 495 MB, free: 6.371 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.41e-05/0.1324, allocations: 34.56 kB / 495 MB, free: 6.328 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 2.394e-06/0.1324, allocations: 0 / 495 MB, free: 6.328 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002516/0.1349, allocations: 1.14 MB / 496.2 MB, free: 5.176 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.004e-05/0.135, allocations: 162.2 kB / 496.3 MB, free: 4.98 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008863/0.1359, allocations: 0.6489 MB / 497 MB, free: 4.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.357e-05/0.136, allocations: 37.7 kB / 497 MB, free: 4.277 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002708/0.1363, allocations: 364 kB / 497.4 MB, free: 3.914 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001497/0.1364, allocations: 177.5 kB / 497.5 MB, free: 3.738 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001853/0.1366, allocations: 118.2 kB / 497.6 MB, free: 3.617 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.1368, allocations: 333.9 kB / 498 MB, free: 3.285 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006097/0.1374, allocations: 275.3 kB / 498.2 MB, free: 3.012 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006886/0.1381, allocations: 429.5 kB / 498.7 MB, free: 2.523 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001258/0.1393, allocations: 0.6702 MB / 499.3 MB, free: 1.793 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.1394, allocations: 4 kB / 499.3 MB, free: 1.789 MB / 366.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001653/0.141, allocations: 0.7908 MB / 0.4884 GB, free: 0.9922 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.303e-05/0.141, allocations: 8.531 kB / 0.4884 GB, free: 0.9844 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.1411, allocations: 4 kB / 0.4884 GB, free: 0.9805 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.218e-05/0.1411, allocations: 12 kB / 0.4884 GB, free: 0.9688 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006712/0.1418, allocations: 147.8 kB / 0.4886 GB, free: 0.8242 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.477e-05/0.1418, allocations: 7.938 kB / 0.4886 GB, free: 0.8164 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000576/0.1424, allocations: 91.41 kB / 0.4887 GB, free: 0.7266 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.469e-05/0.1424, allocations: 28 kB / 0.4887 GB, free: 0.6992 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007519/0.1432, allocations: 409.5 kB / 0.4891 GB, free: 300 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006442/0.1438, allocations: 424.6 kB / 0.4895 GB, free: 15.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001135/0.145, allocations: 0.6563 MB / 0.4901 GB, free: 15.11 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.228e-06/0.145, allocations: 3.984 kB / 0.4901 GB, free: 15.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=77) (initialization_lambda0): time 0.001499/0.1465, allocations: 0.7698 MB / 0.4909 GB, free: 14.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.1465, allocations: 8 kB / 0.4909 GB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.1466, allocations: 7.938 kB / 0.4909 GB, free: 14.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.709e-06/0.1466, allocations: 8 kB / 0.4909 GB, free: 14.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006092/0.1472, allocations: 147.7 kB / 0.491 GB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.484e-05/0.1472, allocations: 15.92 kB / 0.4911 GB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000508/0.1477, allocations: 75.64 kB / 0.4911 GB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.119e-05/0.1478, allocations: 24.05 kB / 0.4911 GB, free: 14.04 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.0002086/0.148, allocations: 235.9 kB / 0.4914 GB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/0.1481, allocations: 71.06 kB / 0.4914 GB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002123/0.1484, allocations: 90.22 kB / 0.4915 GB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.1484, allocations: 7.938 kB / 0.4915 GB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.859e-06/0.1484, allocations: 4 kB / 0.4915 GB, free: 13.63 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.1484, allocations: 7.984 kB / 0.4915 GB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001274/0.1497, allocations: 0.8454 MB / 0.4924 GB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.1497, allocations: 3.938 kB / 0.4924 GB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000614/0.1503, allocations: 107.8 kB / 0.4925 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.616e-06/0.1503, allocations: 0 / 0.4925 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.712e-05/0.1504, allocations: 23.98 kB / 0.4925 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.806e-06/0.1504, allocations: 0 / 0.4925 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.1504, allocations: 4 kB / 0.4925 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001856/0.1522, allocations: 1.129 MB / 0.4936 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002568/0.1525, allocations: 196.1 kB / 0.4938 GB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001001/0.1526, allocations: 15.98 kB / 0.4938 GB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005358/0.1532, allocations: 47.89 kB / 0.4939 GB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001183/0.1533, allocations: 35.94 kB / 0.4939 GB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.285e-05/0.1533, allocations: 19.98 kB / 0.4939 GB, free: 11.11 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006855/0.154, allocations: 463 kB / 0.4944 GB, free: 10.66 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.362e-06/0.154, allocations: 0 / 0.4944 GB, free: 10.66 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008265/0.1549, allocations: 191.9 kB / 0.4945 GB, free: 10.47 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.0001576/0.155, allocations: 116.5 kB / 0.4946 GB, free: 10.35 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002172/0.1572, allocations: 0.962 MB / 0.4956 GB, free: 9.391 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/0.1572, allocations: 0 / 0.4956 GB, free: 9.391 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006108/0.1579, allocations: 279.7 kB / 0.4959 GB, free: 9.117 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001093/0.159, allocations: 188.9 kB / 0.496 GB, free: 8.938 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00321/0.1622, allocations: 1.807 MB / 0.4978 GB, free: 7.086 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005316/0.1627, allocations: 0.9497 MB / 0.4987 GB, free: 6.109 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000238/0.163, allocations: 51.42 kB / 0.4988 GB, free: 6.059 MB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.163, allocations: 0 / 0.4988 GB, free: 6.059 MB / 382.1 MB Notification: Performance of Templates: time 0.1895/0.3525, allocations: 8.69 MB / 0.5073 GB, free: 41.63 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