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.001528/0.001531, allocations: 181.5 kB / 13.66 MB, free: 1.664 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.99/1.99, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001086/0.001086, allocations: 78.78 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2794/0.2794, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.756e-05/4.783e-05, allocations: 4 kB / 425.3 MB, free: 23.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1708/0.1709, allocations: 58.85 MB / 484.1 MB, free: 12.47 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6693/0.8403, allocations: 95.6 MB / 0.5661 GB, free: 8.129 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002495/0.8406, allocations: 68.06 kB / 0.5662 GB, free: 8.098 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07204/0.9127, allocations: 14.7 MB / 0.5806 GB, free: 11.67 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.9128, allocations: 3.938 kB / 0.5806 GB, free: 11.66 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.767e-05/0.9129, allocations: 20 kB / 0.5806 GB, free: 11.64 MB / 394.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.002913/0.9158, allocations: 0.952 MB / 0.5815 GB, free: 10.7 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/0.9159, allocations: 15.97 kB / 0.5815 GB, free: 10.68 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003575/0.9162, allocations: 90.92 kB / 0.5816 GB, free: 10.59 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001672/0.9179, allocations: 0.5582 MB / 0.5822 GB, free: 10.06 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.387e-05/0.918, allocations: 42.62 kB / 0.5822 GB, free: 10.04 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001519/0.9182, allocations: 53.75 kB / 0.5823 GB, free: 10 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001326/0.9195, allocations: 0.5479 MB / 0.5828 GB, free: 9.547 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.858e-05/0.9196, allocations: 3.906 kB / 0.5828 GB, free: 9.543 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.434e-05/0.9197, allocations: 19.25 kB / 0.5828 GB, free: 9.535 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.114e-05/0.9197, allocations: 12 kB / 0.5828 GB, free: 9.523 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001056/0.9208, allocations: 381.8 kB / 0.5832 GB, free: 9.27 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006065/0.9269, allocations: 2.715 MB / 0.5858 GB, free: 6.844 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001353/0.9283, allocations: 475.1 kB / 0.5863 GB, free: 6.5 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005154/0.9288, allocations: 202.9 kB / 0.5865 GB, free: 6.359 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.695e-05/0.9289, allocations: 4 kB / 0.5865 GB, free: 6.355 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.709e-05/0.929, allocations: 42.36 kB / 0.5865 GB, free: 6.309 MB / 394.7 MB Notification: Performance of pre-optimization done (n=43): time 5.1e-06/0.929, allocations: 0 / 0.5865 GB, free: 6.309 MB / 394.7 MB Notification: Performance of matching and sorting (n=44): time 0.002305/0.9313, allocations: 0.8051 MB / 0.5873 GB, free: 5.613 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.606e-05/0.9314, allocations: 140.6 kB / 0.5875 GB, free: 5.445 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001101/0.9325, allocations: 0.5413 MB / 0.588 GB, free: 5.012 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001124/0.9327, allocations: 36.83 kB / 0.588 GB, free: 4.977 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002918/0.933, allocations: 367.2 kB / 0.5884 GB, free: 4.734 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002291/0.9332, allocations: 173.4 kB / 0.5885 GB, free: 4.586 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.25e-05/0.9333, allocations: 14.06 kB / 0.5885 GB, free: 4.582 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.9334, allocations: 338.5 kB / 0.5889 GB, free: 4.254 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006184/0.9341, allocations: 203.5 kB / 0.5891 GB, free: 4.121 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007484/0.9348, allocations: 371.5 kB / 0.5894 GB, free: 3.773 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006984/0.9356, allocations: 249.4 kB / 0.5897 GB, free: 3.609 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.9356, allocations: 0 / 0.5897 GB, free: 3.609 MB / 394.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.00173/0.9373, allocations: 0.6296 MB / 0.5903 GB, free: 3.137 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007141/0.9381, allocations: 1.744 MB / 0.592 GB, free: 1.289 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.661e-05/0.9381, allocations: 4 kB / 0.592 GB, free: 1.285 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.184e-05/0.9381, allocations: 8 kB / 0.592 GB, free: 1.277 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001445/0.9396, allocations: 165.9 kB / 0.5921 GB, free: 1.121 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.496e-05/0.9397, allocations: 8 kB / 0.5921 GB, free: 1.113 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00117/0.9409, allocations: 95.91 kB / 0.5922 GB, free: 1.027 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.713e-05/0.941, allocations: 25.88 kB / 0.5923 GB, free: 1.008 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.941, allocations: 4 kB / 0.5923 GB, free: 1.004 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001631/0.9426, allocations: 0.5791 MB / 0.5928 GB, free: 0.5898 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.9427, allocations: 4 kB / 0.5928 GB, free: 0.5859 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/0.9427, allocations: 11.95 kB / 0.5928 GB, free: 0.5742 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001285/0.944, allocations: 158.7 kB / 0.593 GB, free: 436 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.902e-05/0.944, allocations: 11.98 kB / 0.593 GB, free: 424 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006757/0.9447, allocations: 73.22 kB / 0.5931 GB, free: 360 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.027e-05/0.9448, allocations: 25.88 kB / 0.5931 GB, free: 340 kB / 394.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 () * 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.0002347/0.9451, allocations: 144.5 kB / 0.5932 GB, free: 204 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003056/0.9454, allocations: 75.06 kB / 0.5933 GB, free: 128 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002749/0.9457, allocations: 87.94 kB / 0.5934 GB, free: 80 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.311e-05/0.9457, allocations: 7.953 kB / 0.5934 GB, free: 72 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/0.9457, allocations: 4 kB / 0.5934 GB, free: 68 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-06/0.9457, allocations: 0 / 0.5934 GB, free: 68 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001861/0.9476, allocations: 0.8271 MB / 0.5942 GB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/0.9477, allocations: 0 / 0.5942 GB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001462/0.9491, allocations: 111.4 kB / 0.5943 GB, free: 15.26 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.83e-05/0.9492, allocations: 7.953 kB / 0.5943 GB, free: 15.25 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.313e-05/0.9493, allocations: 22.86 kB / 0.5944 GB, free: 15.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.346e-06/0.9493, allocations: 4 kB / 0.5944 GB, free: 15.23 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.9493, allocations: 0 / 0.5944 GB, free: 15.23 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002113/0.9515, allocations: 0.9863 MB / 0.5953 GB, free: 14.43 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004595/0.952, allocations: 203.8 kB / 0.5955 GB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001436/0.9521, allocations: 10.94 kB / 0.5955 GB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00106/0.9532, allocations: 70.69 kB / 0.5956 GB, free: 14.16 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001701/0.9534, allocations: 38.38 kB / 0.5956 GB, free: 14.13 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.818e-05/0.9535, allocations: 15.92 kB / 0.5956 GB, free: 14.12 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008219/0.9543, allocations: 433.4 kB / 0.5961 GB, free: 13.8 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.9543, allocations: 0 / 0.5961 GB, free: 13.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001189/0.9555, allocations: 210.4 kB / 0.5963 GB, free: 13.62 MB / 410.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 () * 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.0002559/0.9558, allocations: 113.9 kB / 0.5964 GB, free: 13.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002221/0.958, allocations: 0.7825 MB / 0.5971 GB, free: 12.94 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.9581, allocations: 4 kB / 0.5971 GB, free: 12.94 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006323/0.9587, allocations: 223.2 kB / 0.5973 GB, free: 12.79 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001576/0.9603, allocations: 167.9 kB / 0.5975 GB, free: 12.67 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003722/0.964, allocations: 1.241 MB / 0.5987 GB, free: 11.52 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006757/0.9648, allocations: 0.9682 MB / 0.5997 GB, free: 10.53 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004869/0.9653, allocations: 51.42 kB / 0.5997 GB, free: 10.48 MB / 410.7 MB Notification: Performance of SimCode: time 1.232e-06/0.9653, allocations: 0 / 0.5997 GB, free: 10.48 MB / 410.7 MB Notification: Performance of Templates: time 0.02206/0.9874, allocations: 8.609 MB / 0.6081 GB, free: 1.996 MB / 410.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