Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_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_ModelicaTest.Blocks.Continuous") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008677/0.0008678, allocations: 187.1 kB / 7.804 MB, free: 2.496 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9854/0.9854, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.000801/0.000801, allocations: 91.48 kB / 261.4 MB, free: 13.54 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.1591/0.1591, allocations: 43.49 MB / 352.8 MB, free: 1.961 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.141e-06/6.151e-06, allocations: 0 / 417.7 MB, free: 40.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2235/0.2235, allocations: 58.84 MB / 476.6 MB, free: 5.203 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1082/0.3318, allocations: 94.86 MB / 0.558 GB, free: 4.082 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001499/0.332, allocations: 67.97 kB / 0.5581 GB, free: 4.016 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.03925/0.3712, allocations: 14.27 MB / 0.572 GB, free: 5.715 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.823e-05/0.3713, allocations: 27.88 kB / 0.572 GB, free: 5.688 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.001648/0.373, allocations: 0.9543 MB / 0.573 GB, free: 4.688 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.373, allocations: 12.03 kB / 0.573 GB, free: 4.676 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001474/0.3732, allocations: 94.88 kB / 0.5731 GB, free: 4.582 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009406/0.3741, allocations: 0.5664 MB / 0.5736 GB, free: 3.977 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.378e-05/0.3741, allocations: 20 kB / 0.5737 GB, free: 3.957 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.855e-05/0.3742, allocations: 39.91 kB / 0.5737 GB, free: 3.918 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000589/0.3748, allocations: 333.9 kB / 0.574 GB, free: 3.59 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007296/0.3756, allocations: 0.4946 MB / 0.5745 GB, free: 3.043 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.737e-05/0.3756, allocations: 0 / 0.5745 GB, free: 3.043 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.237e-05/0.3756, allocations: 4 kB / 0.5745 GB, free: 3.039 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/0.3757, allocations: 12 kB / 0.5745 GB, free: 3.027 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003079/0.3787, allocations: 2.584 MB / 0.577 GB, free: 360 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006706/0.3794, allocations: 455 kB / 0.5775 GB, free: 15.88 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002594/0.3797, allocations: 190.6 kB / 0.5776 GB, free: 15.69 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.064e-05/0.3797, allocations: 8 kB / 0.5777 GB, free: 15.68 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.182e-05/0.3798, allocations: 42.59 kB / 0.5777 GB, free: 15.63 MB / 426.7 MB Notification: Performance of pre-optimization done (n=43): time 1.483e-06/0.3798, allocations: 3.938 kB / 0.5777 GB, free: 15.62 MB / 426.7 MB Notification: Performance of matching and sorting (n=44): time 0.001193/0.381, allocations: 0.7757 MB / 0.5785 GB, free: 14.84 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.326e-05/0.381, allocations: 136.6 kB / 0.5786 GB, free: 14.68 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004995/0.3815, allocations: 0.492 MB / 0.5791 GB, free: 14.18 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.792e-05/0.3816, allocations: 29.7 kB / 0.5791 GB, free: 14.14 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.3817, allocations: 244.6 kB / 0.5793 GB, free: 13.89 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001265/0.3819, allocations: 169.5 kB / 0.5795 GB, free: 13.73 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.686e-05/0.3819, allocations: 4 kB / 0.5795 GB, free: 13.72 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.3821, allocations: 382.8 kB / 0.5799 GB, free: 13.34 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003099/0.3824, allocations: 197.3 kB / 0.58 GB, free: 13.15 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004067/0.3828, allocations: 360 kB / 0.5804 GB, free: 12.73 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003458/0.3831, allocations: 237.1 kB / 0.5806 GB, free: 12.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.3832, allocations: 0 / 0.5806 GB, free: 12.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.0008974/0.3841, allocations: 0.6311 MB / 0.5812 GB, free: 11.86 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005394/0.3846, allocations: 1.743 MB / 0.5829 GB, free: 9.98 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.807e-06/0.3846, allocations: 4 kB / 0.5829 GB, free: 9.977 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.889e-05/0.3846, allocations: 8 kB / 0.5829 GB, free: 9.969 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006787/0.3853, allocations: 163.8 kB / 0.5831 GB, free: 9.809 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.3853, allocations: 15.92 kB / 0.5831 GB, free: 9.793 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005426/0.3859, allocations: 79.64 kB / 0.5832 GB, free: 9.715 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.702e-05/0.386, allocations: 27.98 kB / 0.5832 GB, free: 9.688 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.35e-06/0.386, allocations: 4 kB / 0.5832 GB, free: 9.684 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007647/0.3867, allocations: 0.5071 MB / 0.5837 GB, free: 9.176 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.3867, allocations: 4 kB / 0.5837 GB, free: 9.172 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.268e-06/0.3868, allocations: 11.91 kB / 0.5837 GB, free: 9.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006247/0.3874, allocations: 160.3 kB / 0.5839 GB, free: 9.004 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.3874, allocations: 8 kB / 0.5839 GB, free: 8.996 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005023/0.3879, allocations: 79.64 kB / 0.584 GB, free: 8.918 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.181e-05/0.388, allocations: 23.98 kB / 0.584 GB, free: 8.895 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 () * 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.0001356/0.3881, allocations: 126.1 kB / 0.5841 GB, free: 8.766 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001341/0.3882, allocations: 79 kB / 0.5842 GB, free: 8.688 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001457/0.3884, allocations: 73.88 kB / 0.5843 GB, free: 8.602 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.142e-06/0.3884, allocations: 8 kB / 0.5843 GB, free: 8.594 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.3884, allocations: 0 / 0.5843 GB, free: 8.594 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.3884, allocations: 7.891 kB / 0.5843 GB, free: 8.586 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009566/0.3894, allocations: 0.7523 MB / 0.585 GB, free: 7.789 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.3894, allocations: 0 / 0.585 GB, free: 7.789 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006923/0.3901, allocations: 119.9 kB / 0.5851 GB, free: 7.672 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.3901, allocations: 0 / 0.5851 GB, free: 7.672 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.714e-05/0.3902, allocations: 16 kB / 0.5851 GB, free: 7.656 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.3902, allocations: 3.938 kB / 0.5851 GB, free: 7.652 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.3902, allocations: 4 kB / 0.5851 GB, free: 7.648 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00105/0.3912, allocations: 0.9684 MB / 0.5861 GB, free: 6.641 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002272/0.3915, allocations: 200 kB / 0.5863 GB, free: 6.426 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.48e-05/0.3916, allocations: 4 kB / 0.5863 GB, free: 6.422 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005899/0.3922, allocations: 63.94 kB / 0.5863 GB, free: 6.359 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.3923, allocations: 31.95 kB / 0.5864 GB, free: 6.328 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.233e-05/0.3923, allocations: 11.98 kB / 0.5864 GB, free: 6.316 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0003618/0.3927, allocations: 383.2 kB / 0.5868 GB, free: 5.949 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0006742/0.3934, allocations: 172 kB / 0.5869 GB, free: 5.781 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 () * 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.0001403/0.3935, allocations: 122.9 kB / 0.587 GB, free: 5.645 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00108/0.3946, allocations: 0.7844 MB / 0.5878 GB, free: 4.859 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3946, allocations: 0 / 0.5878 GB, free: 4.859 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003182/0.3949, allocations: 223.8 kB / 0.588 GB, free: 4.641 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008001/0.3958, allocations: 148.4 kB / 0.5882 GB, free: 4.496 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002137/0.3979, allocations: 1.181 MB / 0.5893 GB, free: 3.277 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006578/0.3986, allocations: 1.021 MB / 0.5903 GB, free: 2.223 MB / 426.7 MB Notification: Performance of SimCode: time 2e-07/0.3986, allocations: 0 / 0.5903 GB, free: 2.223 MB / 426.7 MB Notification: Performance of Templates: time 0.01666/0.4152, allocations: 10.52 MB / 0.6006 GB, free: 7.734 MB / 442.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Continuous/Continuous.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches