Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") [: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 4.0.0+maint.om/package.mo): time 0.001127/0.001127, allocations: 182.7 kB / 8.133 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.189/1.189, allocations: 221.4 MB / 229.9 MB, free: 3.359 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008558/0.0008558, allocations: 101.5 kB / 280.8 MB, free: 1.34 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.594e-06/7.674e-06, allocations: 0 / 336.5 MB, free: 9.598 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1954/0.1954, allocations: 50.4 MB / 386.9 MB, free: 38.08 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08386/0.2793, allocations: 80.92 MB / 467.8 MB, free: 5.891 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002168/0.2796, allocations: 80.45 kB / 467.9 MB, free: 5.812 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01718/0.2968, allocations: 5.996 MB / 473.9 MB, free: 15.82 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.647e-05/0.2968, allocations: 11.98 kB / 473.9 MB, free: 15.81 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0009643/0.2978, allocations: 0.6184 MB / 474.5 MB, free: 15.14 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.006e-05/0.2979, allocations: 8.031 kB / 474.5 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.239e-05/0.2979, allocations: 35.53 kB / 474.6 MB, free: 15.1 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003328/0.2983, allocations: 290.6 kB / 474.9 MB, free: 14.78 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.497e-05/0.2983, allocations: 9.25 kB / 474.9 MB, free: 14.77 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.693e-05/0.2983, allocations: 12 kB / 474.9 MB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000324/0.2987, allocations: 168.9 kB / 475.1 MB, free: 14.6 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003755/0.2991, allocations: 229.8 kB / 475.3 MB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.2991, allocations: 3.984 kB / 475.3 MB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.485e-05/0.2991, allocations: 7.906 kB / 475.3 MB, free: 14.35 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.2991, allocations: 4 kB / 475.3 MB, free: 14.34 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001851/0.301, allocations: 1.165 MB / 476.5 MB, free: 13.09 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002561/0.3012, allocations: 102.6 kB / 476.6 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001001/0.3014, allocations: 41.98 kB / 476.6 MB, free: 12.94 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.311e-05/0.3014, allocations: 4 kB / 476.6 MB, free: 12.94 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001384/0.3015, allocations: 93.09 kB / 476.7 MB, free: 12.83 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.232e-06/0.3015, allocations: 3.938 kB / 476.7 MB, free: 12.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003215/0.3019, allocations: 139.1 kB / 476.8 MB, free: 12.68 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.063e-05/0.3019, allocations: 81.11 kB / 476.9 MB, free: 12.58 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002429/0.3022, allocations: 237 kB / 477.1 MB, free: 12.35 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.229e-05/0.3022, allocations: 27.2 kB / 477.2 MB, free: 12.32 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.3023, allocations: 199.4 kB / 477.4 MB, free: 12.12 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.724e-05/0.3024, allocations: 35.48 kB / 477.4 MB, free: 12.08 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.216e-05/0.3024, allocations: 0 / 477.4 MB, free: 12.08 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.3025, allocations: 330.8 kB / 477.7 MB, free: 11.75 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.932e-05/0.3026, allocations: 56.23 kB / 477.8 MB, free: 11.7 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000158/0.3028, allocations: 150.8 kB / 477.9 MB, free: 11.5 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001092/0.3029, allocations: 69 kB / 478 MB, free: 11.43 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3029, allocations: 4 kB / 478 MB, free: 11.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004101/0.3033, allocations: 239.4 kB / 478.2 MB, free: 11.18 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.3033, allocations: 4 kB / 478.2 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.3033, allocations: 7.938 kB / 478.2 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001559/0.3035, allocations: 28.84 kB / 478.3 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002949/0.3038, allocations: 71.98 kB / 478.3 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009678/0.3048, allocations: 1.253 MB / 479.6 MB, free: 9.703 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003537/0.3052, allocations: 55.81 kB / 479.6 MB, free: 9.648 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.691e-05/0.3052, allocations: 12.56 kB / 479.7 MB, free: 9.637 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001116/0.3053, allocations: 134.7 kB / 479.8 MB, free: 9.504 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.633e-05/0.3054, allocations: 23.72 kB / 479.8 MB, free: 9.48 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.258e-05/0.3054, allocations: 21.7 kB / 479.8 MB, free: 9.461 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.3054, allocations: 4 kB / 479.8 MB, free: 9.457 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.932e-06/0.3054, allocations: 4 kB / 479.8 MB, free: 9.453 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.3054, allocations: 0.8438 kB / 479.8 MB, free: 9.453 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004373/0.3059, allocations: 411.7 kB / 480.2 MB, free: 9.004 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.3059, allocations: 0 / 480.2 MB, free: 9.004 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001982/0.3061, allocations: 43.98 kB / 480.3 MB, free: 8.961 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.718e-05/0.3062, allocations: 28.84 kB / 480.3 MB, free: 8.93 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.604e-05/0.3062, allocations: 4 kB / 480.3 MB, free: 8.926 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008748/0.3071, allocations: 1.24 MB / 481.6 MB, free: 7.57 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.3071, allocations: 0 / 481.6 MB, free: 7.57 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002628/0.3074, allocations: 184.3 kB / 481.7 MB, free: 7.359 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.617e-05/0.3075, allocations: 100.8 kB / 481.8 MB, free: 7.242 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.23e-05/0.3075, allocations: 4 kB / 481.8 MB, free: 7.238 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002566/0.3078, allocations: 35.97 kB / 481.9 MB, free: 7.203 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.992e-05/0.3079, allocations: 15.97 kB / 481.9 MB, free: 7.188 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.268e-05/0.3079, allocations: 4 kB / 481.9 MB, free: 7.184 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001624/0.308, allocations: 181.2 kB / 482.1 MB, free: 7.008 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003268/0.3084, allocations: 67.75 kB / 482.1 MB, free: 6.941 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001614/0.3085, allocations: 123.2 kB / 482.3 MB, free: 6.809 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004327/0.309, allocations: 259.3 kB / 482.5 MB, free: 6.539 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.309, allocations: 0 / 482.5 MB, free: 6.539 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002317/0.3092, allocations: 162.7 kB / 482.7 MB, free: 6.371 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002645/0.3095, allocations: 42.08 kB / 482.7 MB, free: 6.328 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006076/0.3101, allocations: 281.8 kB / 483 MB, free: 6.023 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003782/0.3105, allocations: 0.79 MB / 483.8 MB, free: 5.211 MB / 362.7 MB Notification: Performance of SimCode: time 4.21e-07/0.3105, allocations: 3.938 kB / 483.8 MB, free: 5.207 MB / 362.7 MB Notification: Performance of Templates: time 0.005668/0.3162, allocations: 2.728 MB / 486.5 MB, free: 2.523 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches