Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_cpp_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_3.2.3_cpp_ModelicaTest.Blocks.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009477/0.0009477, allocations: 177.3 kB / 17.41 MB, free: 4.414 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.309/1.309, allocations: 205.4 MB / 223.6 MB, free: 9.035 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007614/0.0007614, allocations: 97.06 kB / 271.9 MB, free: 8.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2867/0.2867, allocations: 43.56 MB / 363.8 MB, free: 51.89 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003772/0.0003773, allocations: 20 kB / 432.6 MB, free: 5.66 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1044, allocations: 58.84 MB / 491.4 MB, free: 10.73 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2703/0.3748, allocations: 95.77 MB / 0.5734 GB, free: 6.492 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002136/0.375, allocations: 67.97 kB / 0.5735 GB, free: 6.426 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03968/0.4147, allocations: 14.75 MB / 0.5879 GB, free: 7.707 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.4148, allocations: 4 kB / 0.5879 GB, free: 7.703 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.377e-05/0.4148, allocations: 19.94 kB / 0.5879 GB, free: 7.684 MB / 410.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.001982/0.4168, allocations: 1.088 MB / 0.589 GB, free: 6.543 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.193e-05/0.4168, allocations: 12.03 kB / 0.589 GB, free: 6.531 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001412/0.417, allocations: 87.91 kB / 0.5891 GB, free: 6.445 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009963/0.418, allocations: 0.6216 MB / 0.5897 GB, free: 5.785 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.454e-05/0.4181, allocations: 37.38 kB / 0.5897 GB, free: 5.746 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.159e-05/0.4181, allocations: 57.31 kB / 0.5898 GB, free: 5.691 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001037/0.4192, allocations: 0.6296 MB / 0.5904 GB, free: 5.012 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.4192, allocations: 4.188 kB / 0.5904 GB, free: 5.008 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.609e-05/0.4193, allocations: 27.94 kB / 0.5904 GB, free: 4.98 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.234e-05/0.4193, allocations: 12 kB / 0.5905 GB, free: 4.969 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001015/0.4203, allocations: 0.49 MB / 0.5909 GB, free: 4.48 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003338/0.4237, allocations: 2.705 MB / 0.5936 GB, free: 1.676 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001055/0.4247, allocations: 0.5919 MB / 0.5942 GB, free: 1.062 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005236/0.4253, allocations: 270.5 kB / 0.5944 GB, free: 0.7891 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.291e-05/0.4253, allocations: 4 kB / 0.5944 GB, free: 0.7852 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.628e-05/0.4254, allocations: 42.5 kB / 0.5945 GB, free: 0.7344 MB / 410.7 MB Notification: Performance of pre-optimization done (n=43): time 3.266e-06/0.4254, allocations: 0 / 0.5945 GB, free: 0.7344 MB / 410.7 MB Notification: Performance of matching and sorting (n=44): time 0.002348/0.4277, allocations: 1.207 MB / 0.5956 GB, free: 15.51 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.926e-05/0.4278, allocations: 136.5 kB / 0.5958 GB, free: 15.35 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007978/0.4286, allocations: 0.6606 MB / 0.5964 GB, free: 14.68 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.02e-05/0.4287, allocations: 37.7 kB / 0.5964 GB, free: 14.64 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002237/0.4289, allocations: 352 kB / 0.5968 GB, free: 14.29 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001276/0.429, allocations: 173.5 kB / 0.5969 GB, free: 14.11 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.407e-05/0.4291, allocations: 12 kB / 0.597 GB, free: 14.1 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.4292, allocations: 333.9 kB / 0.5973 GB, free: 13.77 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006117/0.4298, allocations: 297.1 kB / 0.5976 GB, free: 13.48 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007077/0.4305, allocations: 448.7 kB / 0.598 GB, free: 12.97 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001266/0.4318, allocations: 0.7138 MB / 0.5987 GB, free: 12.2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.4318, allocations: 4 kB / 0.5987 GB, free: 12.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001547/0.4334, allocations: 0.8376 MB / 0.5995 GB, free: 11.35 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001231/0.4335, allocations: 226 kB / 0.5997 GB, free: 11.07 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.4335, allocations: 4 kB / 0.5997 GB, free: 11.06 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.4335, allocations: 8 kB / 0.5997 GB, free: 11.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006482/0.4342, allocations: 171.7 kB / 0.5999 GB, free: 10.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.3e-05/0.4342, allocations: 11.94 kB / 0.5999 GB, free: 10.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00051/0.4347, allocations: 91.62 kB / 0.6 GB, free: 10.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.336e-05/0.4348, allocations: 20 kB / 0.6 GB, free: 10.77 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.871e-06/0.4348, allocations: 4 kB / 0.6 GB, free: 10.76 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001375/0.4362, allocations: 0.7189 MB / 0.6007 GB, free: 10.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.4362, allocations: 4 kB / 0.6007 GB, free: 10.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.445e-06/0.4362, allocations: 12 kB / 0.6007 GB, free: 10.03 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005766/0.4368, allocations: 152.3 kB / 0.6009 GB, free: 9.879 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/0.4368, allocations: 12.97 kB / 0.6009 GB, free: 9.867 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005068/0.4373, allocations: 91.62 kB / 0.601 GB, free: 9.777 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.981e-05/0.4374, allocations: 20 kB / 0.601 GB, free: 9.758 MB / 426.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.0003052/0.4377, allocations: 296.8 kB / 0.6013 GB, free: 9.457 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001376/0.4378, allocations: 75.06 kB / 0.6014 GB, free: 9.383 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000157/0.438, allocations: 86.33 kB / 0.6014 GB, free: 9.293 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.796e-06/0.438, allocations: 11.98 kB / 0.6014 GB, free: 9.281 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.438, allocations: 0 / 0.6014 GB, free: 9.281 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.438, allocations: 0 / 0.6014 GB, free: 9.281 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001147/0.4392, allocations: 0.8453 MB / 0.6023 GB, free: 8.379 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.4392, allocations: 3.938 kB / 0.6023 GB, free: 8.375 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006436/0.4398, allocations: 123.8 kB / 0.6024 GB, free: 8.254 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.4398, allocations: 0 / 0.6024 GB, free: 8.254 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.499e-05/0.4399, allocations: 19.98 kB / 0.6024 GB, free: 8.234 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.4399, allocations: 0 / 0.6024 GB, free: 8.234 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.4399, allocations: 7.938 kB / 0.6024 GB, free: 8.227 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001916/0.4418, allocations: 1.207 MB / 0.6036 GB, free: 7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002258/0.4421, allocations: 196.1 kB / 0.6038 GB, free: 6.789 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.193e-05/0.4422, allocations: 15.98 kB / 0.6038 GB, free: 6.773 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005306/0.4427, allocations: 63.94 kB / 0.6039 GB, free: 6.711 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.4428, allocations: 43.88 kB / 0.6039 GB, free: 6.668 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.023e-05/0.4429, allocations: 8 kB / 0.6039 GB, free: 6.66 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006254/0.4435, allocations: 471 kB / 0.6044 GB, free: 6.203 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4435, allocations: 0 / 0.6044 GB, free: 6.203 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007286/0.4442, allocations: 204 kB / 0.6046 GB, free: 6.004 MB / 426.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.0001467/0.4444, allocations: 111.8 kB / 0.6047 GB, free: 5.887 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001997/0.4464, allocations: 1.025 MB / 0.6057 GB, free: 4.863 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4464, allocations: 4.188 kB / 0.6057 GB, free: 4.859 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006044/0.447, allocations: 301.2 kB / 0.606 GB, free: 4.566 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/0.448, allocations: 177 kB / 0.6061 GB, free: 4.402 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002487/0.4505, allocations: 1.77 MB / 0.6079 GB, free: 2.594 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004814/0.451, allocations: 0.9497 MB / 0.6088 GB, free: 1.617 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00023/0.4513, allocations: 47.44 kB / 0.6088 GB, free: 1.57 MB / 426.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4513, allocations: 0 / 0.6088 GB, free: 1.57 MB / 426.7 MB Notification: Performance of Templates: time 0.01083/0.4621, allocations: 8.792 MB / 0.6174 GB, free: 8.816 MB / 442.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Continuous/Continuous.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches