Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001739/0.001739, allocations: 200.6 kB / 8.539 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.237/1.237, allocations: 225.5 MB / 234.4 MB, free: 3.395 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001005/0.001005, allocations: 91.62 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.071e-05/1.075e-05, allocations: 4 kB / 343.2 MB, free: 8.699 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09303/0.09306, allocations: 51.47 MB / 394.6 MB, free: 5.176 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2483/0.3414, allocations: 80.75 MB / 475.4 MB, free: 11.6 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002172/0.3416, allocations: 76.92 kB / 475.5 MB, free: 11.57 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01476/0.3564, allocations: 5.611 MB / 481.1 MB, free: 7.645 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.604e-05/0.3564, allocations: 12 kB / 481.1 MB, free: 7.633 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.0007755/0.3572, allocations: 0.5815 MB / 481.7 MB, free: 7.023 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.3573, allocations: 8.031 kB / 481.7 MB, free: 7.016 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.206e-05/0.3573, allocations: 31.62 kB / 481.7 MB, free: 6.984 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000291/0.3576, allocations: 267.6 kB / 482 MB, free: 6.707 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/0.3577, allocations: 8 kB / 482 MB, free: 6.699 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.109e-05/0.3577, allocations: 12 kB / 482 MB, free: 6.688 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002609/0.358, allocations: 144.3 kB / 482.1 MB, free: 6.602 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002935/0.3583, allocations: 199.1 kB / 482.3 MB, free: 6.445 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.3583, allocations: 0 / 482.3 MB, free: 6.445 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.36e-05/0.3583, allocations: 3.938 kB / 482.3 MB, free: 6.441 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.3583, allocations: 4 kB / 482.3 MB, free: 6.438 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001444/0.3598, allocations: 0.9782 MB / 483.3 MB, free: 5.535 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002477/0.36, allocations: 128.9 kB / 483.4 MB, free: 5.438 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.114e-05/0.3601, allocations: 52.86 kB / 483.5 MB, free: 5.402 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.376e-05/0.3602, allocations: 3.562 kB / 483.5 MB, free: 5.402 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001364/0.3603, allocations: 115.3 kB / 483.6 MB, free: 5.289 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 1.242e-06/0.3603, allocations: 4 kB / 483.6 MB, free: 5.285 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005453/0.3609, allocations: 224.6 kB / 483.8 MB, free: 5.09 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.891e-05/0.3609, allocations: 102.8 kB / 483.9 MB, free: 4.965 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001671/0.3611, allocations: 221.7 kB / 484.1 MB, free: 4.781 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.024e-05/0.3611, allocations: 28.7 kB / 484.2 MB, free: 4.75 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.43e-05/0.3612, allocations: 166.2 kB / 484.3 MB, free: 4.594 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.557e-05/0.3612, allocations: 38.39 kB / 484.4 MB, free: 4.562 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.116e-05/0.3612, allocations: 0 / 484.4 MB, free: 4.562 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.665e-05/0.3613, allocations: 340.5 kB / 484.7 MB, free: 4.23 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.201e-05/0.3614, allocations: 46.31 kB / 484.7 MB, free: 4.207 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001087/0.3615, allocations: 134.2 kB / 484.9 MB, free: 4.066 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.903e-05/0.3616, allocations: 58.34 kB / 484.9 MB, free: 4.031 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3616, allocations: 4.031 kB / 484.9 MB, free: 4.027 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000563/0.3621, allocations: 289.2 kB / 485.2 MB, free: 3.781 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.092e-05/0.3622, allocations: 4 kB / 485.2 MB, free: 3.777 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.3622, allocations: 4.031 kB / 485.2 MB, free: 3.773 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001915/0.3624, allocations: 50.52 kB / 485.3 MB, free: 3.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000222/0.3626, allocations: 55.28 kB / 485.3 MB, free: 3.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001256/0.3639, allocations: 1.535 MB / 486.9 MB, free: 2.121 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003406/0.3642, allocations: 59.56 kB / 486.9 MB, free: 2.066 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.142e-05/0.3643, allocations: 11.36 kB / 486.9 MB, free: 2.059 MB / 346.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.0001363/0.3644, allocations: 120.4 kB / 487 MB, free: 1.938 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.147e-05/0.3644, allocations: 23.72 kB / 487.1 MB, free: 1.914 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.254e-05/0.3645, allocations: 23.91 kB / 487.1 MB, free: 1.902 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.3645, allocations: 3.906 kB / 487.1 MB, free: 1.898 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/0.3645, allocations: 3.984 kB / 487.1 MB, free: 1.895 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.3645, allocations: 0 / 487.1 MB, free: 1.895 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002076/0.3647, allocations: 255.9 kB / 487.3 MB, free: 1.645 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3647, allocations: 0 / 487.3 MB, free: 1.645 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001565/0.3649, allocations: 39.12 kB / 487.4 MB, free: 1.609 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001404/0.3651, allocations: 47.16 kB / 487.4 MB, free: 1.57 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/0.3651, allocations: 3.984 kB / 487.4 MB, free: 1.566 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001144/0.3662, allocations: 1.515 MB / 489 MB, free: 40 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.3662, allocations: 0 / 489 MB, free: 40 kB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005799/0.3668, allocations: 255.8 kB / 489.2 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.887e-05/0.3669, allocations: 96.7 kB / 489.3 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.273e-05/0.367, allocations: 4 kB / 489.3 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002718/0.3673, allocations: 43.95 kB / 489.3 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.228e-05/0.3673, allocations: 18.97 kB / 489.4 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.483e-05/0.3674, allocations: 0 / 489.4 MB, free: 15.63 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001725/0.3675, allocations: 179.1 kB / 489.5 MB, free: 15.48 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004034/0.368, allocations: 63.84 kB / 489.6 MB, free: 15.42 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.0001794/0.3681, allocations: 107.1 kB / 489.7 MB, free: 15.31 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004822/0.3686, allocations: 263 kB / 490 MB, free: 15.08 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.3686, allocations: 0.5625 kB / 490 MB, free: 15.08 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002345/0.3689, allocations: 181.4 kB / 490.1 MB, free: 14.92 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002703/0.3692, allocations: 36.2 kB / 490.2 MB, free: 14.89 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002853/0.372, allocations: 0.8275 MB / 491 MB, free: 14.07 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003769/0.3724, allocations: 0.7719 MB / 491.8 MB, free: 13.27 MB / 362.7 MB Notification: Performance of SimCode: time 4e-07/0.3724, allocations: 0 / 491.8 MB, free: 13.27 MB / 362.7 MB Notification: Performance of Templates: time 0.006643/0.3791, allocations: 3.222 MB / 495 MB, free: 10.14 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches