Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.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.InvertingSchmittTrigger,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.InvertingSchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,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.InvertingSchmittTrigger") [: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.001509/0.001509, allocations: 185.6 kB / 8.136 MB, free: 2.219 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.158/1.158, allocations: 221.4 MB / 229.9 MB, free: 3.02 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.0009307/0.0009308, allocations: 95.06 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.366e-06/8.386e-06, allocations: 4 kB / 336.5 MB, free: 9.492 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1944/0.1944, allocations: 50.39 MB / 386.9 MB, free: 38.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08077/0.2752, allocations: 79.97 MB / 466.9 MB, free: 6.898 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002277/0.2755, allocations: 84.64 kB / 467 MB, free: 6.816 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01648/0.292, allocations: 5.578 MB / 472.5 MB, free: 1.246 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.543e-05/0.2921, allocations: 8 kB / 472.6 MB, free: 1.238 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.000965/0.293, allocations: 0.5671 MB / 473.1 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.2931, allocations: 12.03 kB / 473.1 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.17e-05/0.2932, allocations: 28.84 kB / 473.2 MB, free: 0.582 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003372/0.2935, allocations: 274.9 kB / 473.4 MB, free: 280 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.623e-05/0.2935, allocations: 8 kB / 473.4 MB, free: 272 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.513e-05/0.2936, allocations: 15.98 kB / 473.5 MB, free: 256 kB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002855/0.2939, allocations: 142.1 kB / 473.6 MB, free: 116 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003256/0.2942, allocations: 193 kB / 473.8 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.2942, allocations: 4 kB / 473.8 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.54e-05/0.2942, allocations: 10.27 kB / 473.8 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.2943, allocations: 4 kB / 473.8 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001649/0.2959, allocations: 0.9857 MB / 474.8 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002985/0.2962, allocations: 126.7 kB / 474.9 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001029/0.2963, allocations: 52.86 kB / 475 MB, free: 14.66 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.316e-05/0.2964, allocations: 0 / 475 MB, free: 14.66 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000167/0.2965, allocations: 125.9 kB / 475.1 MB, free: 14.51 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.353e-06/0.2966, allocations: 0 / 475.1 MB, free: 14.51 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006224/0.2972, allocations: 224.1 kB / 475.3 MB, free: 14.29 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.877e-05/0.2973, allocations: 110.8 kB / 475.4 MB, free: 14.15 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002155/0.2975, allocations: 216.2 kB / 475.6 MB, free: 13.93 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.546e-05/0.2975, allocations: 29.7 kB / 475.7 MB, free: 13.9 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.307e-05/0.2976, allocations: 159.8 kB / 475.8 MB, free: 13.74 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.491e-05/0.2976, allocations: 35.45 kB / 475.8 MB, free: 13.7 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.13e-05/0.2977, allocations: 4 kB / 475.8 MB, free: 13.7 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.2978, allocations: 338.8 kB / 476.2 MB, free: 13.36 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001005/0.2979, allocations: 51.94 kB / 476.2 MB, free: 13.31 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001534/0.2981, allocations: 134.2 kB / 476.4 MB, free: 13.14 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001105/0.2982, allocations: 59.88 kB / 476.4 MB, free: 13.08 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.2982, allocations: 0 / 476.4 MB, free: 13.08 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006462/0.2988, allocations: 297.1 kB / 476.7 MB, free: 12.79 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.2989, allocations: 4 kB / 476.7 MB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.2989, allocations: 6.969 kB / 476.7 MB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002312/0.2991, allocations: 49.55 kB / 476.8 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002343/0.2994, allocations: 55.91 kB / 476.8 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0017/0.3011, allocations: 1.533 MB / 478.4 MB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000365/0.3014, allocations: 55.81 kB / 478.4 MB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.26e-05/0.3015, allocations: 8 kB / 478.4 MB, free: 10.96 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: opAmp.v_in:VARIABLE(unit = "V" ) "Input voltage difference" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (21): * Single equations (assignments): 19 * 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: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001459/0.3016, allocations: 120.6 kB / 478.5 MB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.039e-05/0.3017, allocations: 27.7 kB / 478.6 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.82e-05/0.3017, allocations: 22.47 kB / 478.6 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.3017, allocations: 4 kB / 478.6 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.3018, allocations: 4.719 kB / 478.6 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.3018, allocations: 3.984 kB / 478.6 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002688/0.302, allocations: 254.1 kB / 478.8 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.302, allocations: 0 / 478.8 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001597/0.3022, allocations: 31.97 kB / 478.9 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001405/0.3024, allocations: 48.88 kB / 478.9 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.564e-05/0.3024, allocations: 0.9375 kB / 478.9 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001409/0.3038, allocations: 1.529 MB / 480.5 MB, free: 8.773 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.3038, allocations: 0 / 480.5 MB, free: 8.773 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005295/0.3044, allocations: 253.7 kB / 480.7 MB, free: 8.504 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.409e-05/0.3044, allocations: 96.81 kB / 480.8 MB, free: 8.391 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.311e-05/0.3045, allocations: 4 kB / 480.8 MB, free: 8.387 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002793/0.3048, allocations: 43.95 kB / 480.8 MB, free: 8.344 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.315e-05/0.3049, allocations: 15.98 kB / 480.9 MB, free: 8.328 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.512e-05/0.3049, allocations: 7.984 kB / 480.9 MB, free: 8.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001491/0.305, allocations: 168.5 kB / 481 MB, free: 8.156 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003816/0.3054, allocations: 71.78 kB / 481.1 MB, free: 8.086 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001342/0.3056, allocations: 107.2 kB / 481.2 MB, free: 7.969 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004261/0.306, allocations: 260.2 kB / 481.5 MB, free: 7.699 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.306, allocations: 0 / 481.5 MB, free: 7.699 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002229/0.3062, allocations: 194.1 kB / 481.6 MB, free: 7.5 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002462/0.3065, allocations: 36.95 kB / 481.7 MB, free: 7.469 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002696/0.3092, allocations: 0.817 MB / 482.5 MB, free: 6.621 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003264/0.3095, allocations: 0.7776 MB / 483.3 MB, free: 5.82 MB / 362.7 MB Notification: Performance of SimCode: time 2.1e-07/0.3095, allocations: 0 / 483.3 MB, free: 5.82 MB / 362.7 MB Notification: Performance of Templates: time 0.006116/0.3157, allocations: 3.268 MB / 486.5 MB, free: 2.609 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingSchmittTrigger/InvertingSchmittTrigger.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches