Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.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.NonInvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|buffer.opAmp.out.v|buffer.opAmp.out.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|buffer.opAmp.out.v|buffer.opAmp.out.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier") [: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.001331/0.001331, allocations: 208.6 kB / 8.541 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.22/1.22, allocations: 225.5 MB / 234.4 MB, free: 3.414 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009287/0.0009288, allocations: 93.92 kB / 286.3 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.927e-06/8.967e-06, allocations: 4 kB / 343.2 MB, free: 8.699 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09411/0.09413, allocations: 51.47 MB / 394.6 MB, free: 5.184 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2304/0.3246, allocations: 81.16 MB / 475.8 MB, free: 11.44 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001806/0.3248, allocations: 83.3 kB / 475.9 MB, free: 11.41 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01573/0.3405, allocations: 6.215 MB / 482.1 MB, free: 6.883 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.21e-05/0.3406, allocations: 12 kB / 482.1 MB, free: 6.871 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001035/0.3416, allocations: 0.6044 MB / 482.7 MB, free: 6.238 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/0.3417, allocations: 9.344 kB / 482.7 MB, free: 6.23 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.844e-05/0.3418, allocations: 39.53 kB / 482.8 MB, free: 6.191 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004196/0.3422, allocations: 290.2 kB / 483 MB, free: 5.906 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.23e-05/0.3423, allocations: 8 kB / 483 MB, free: 5.898 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.401e-05/0.3423, allocations: 16 kB / 483.1 MB, free: 5.883 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003837/0.3427, allocations: 173.3 kB / 483.2 MB, free: 5.789 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003879/0.3431, allocations: 239.4 kB / 483.5 MB, free: 5.609 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.3431, allocations: 4 kB / 483.5 MB, free: 5.605 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.242e-05/0.3432, allocations: 1.875 kB / 483.5 MB, free: 5.605 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.256e-05/0.3432, allocations: 4 kB / 483.5 MB, free: 5.602 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001697/0.3449, allocations: 1.133 MB / 484.6 MB, free: 4.613 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002796/0.3452, allocations: 138.6 kB / 484.7 MB, free: 4.516 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.8e-05/0.3453, allocations: 57.23 kB / 484.8 MB, free: 4.48 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.871e-05/0.3453, allocations: 0 / 484.8 MB, free: 4.48 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001829/0.3455, allocations: 130.3 kB / 484.9 MB, free: 4.359 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 2.044e-06/0.3455, allocations: 0 / 484.9 MB, free: 4.359 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006597/0.3462, allocations: 227.4 kB / 485.1 MB, free: 4.164 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.782e-05/0.3462, allocations: 114.2 kB / 485.3 MB, free: 4.031 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000226/0.3465, allocations: 236.2 kB / 485.5 MB, free: 3.836 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.927e-05/0.3465, allocations: 25.7 kB / 485.5 MB, free: 3.805 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.239e-05/0.3466, allocations: 183.8 kB / 485.7 MB, free: 3.637 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.658e-05/0.3466, allocations: 41.52 kB / 485.7 MB, free: 3.602 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.191e-05/0.3466, allocations: 0 / 485.7 MB, free: 3.602 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.509e-05/0.3467, allocations: 332.8 kB / 486.1 MB, free: 3.277 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.468e-05/0.3468, allocations: 58.23 kB / 486.1 MB, free: 3.242 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001242/0.3469, allocations: 156.6 kB / 486.3 MB, free: 3.078 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001024/0.347, allocations: 76.03 kB / 486.3 MB, free: 3.027 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.347, allocations: 0 / 486.3 MB, free: 3.027 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005952/0.3476, allocations: 327 kB / 486.7 MB, free: 2.758 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.3477, allocations: 4 kB / 486.7 MB, free: 2.754 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.074e-06/0.3477, allocations: 4 kB / 486.7 MB, free: 2.75 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001997/0.3479, allocations: 50.53 kB / 486.7 MB, free: 2.711 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002188/0.3481, allocations: 59.92 kB / 486.8 MB, free: 2.652 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001265/0.3494, allocations: 1.584 MB / 488.4 MB, free: 1.078 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003262/0.3497, allocations: 59.86 kB / 488.4 MB, free: 1.02 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.943e-05/0.3497, allocations: 8.219 kB / 488.4 MB, free: 1.012 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: buffer.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: 13 * 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 (24): * Single equations (assignments): 22 * 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.0001127/0.3499, allocations: 124.4 kB / 488.5 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.091e-05/0.3499, allocations: 23.66 kB / 488.6 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.149e-05/0.3499, allocations: 25.02 kB / 488.6 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.35, allocations: 4 kB / 488.6 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.35, allocations: 1.406 kB / 488.6 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.35, allocations: 7.984 kB / 488.6 MB, free: 0.832 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001805/0.3502, allocations: 282 kB / 488.9 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.3502, allocations: 0 / 488.9 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001473/0.3503, allocations: 27.98 kB / 488.9 MB, free: 0.543 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001142/0.3504, allocations: 51.52 kB / 489 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/0.3505, allocations: 48 / 489 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001418/0.3519, allocations: 1.583 MB / 490.5 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.3519, allocations: 0 / 490.5 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005575/0.3525, allocations: 253.7 kB / 490.8 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.671e-05/0.3526, allocations: 99.47 kB / 490.9 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.049e-05/0.3526, allocations: 7.906 kB / 490.9 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000282/0.3529, allocations: 47.95 kB / 490.9 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.363e-05/0.353, allocations: 11.3 kB / 491 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.61e-05/0.353, allocations: 6.5 kB / 491 MB, free: 14.53 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001996/0.3532, allocations: 178 kB / 491.1 MB, free: 14.39 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004271/0.3536, allocations: 75.83 kB / 491.2 MB, free: 14.32 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.0001752/0.3538, allocations: 100.2 kB / 491.3 MB, free: 14.21 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005128/0.3543, allocations: 291.8 kB / 491.6 MB, free: 13.96 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3544, allocations: 0 / 491.6 MB, free: 13.96 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002292/0.3546, allocations: 176.2 kB / 491.8 MB, free: 13.81 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002701/0.3549, allocations: 44.42 kB / 491.8 MB, free: 13.78 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002918/0.3578, allocations: 0.8543 MB / 492.7 MB, free: 12.93 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004213/0.3582, allocations: 0.7808 MB / 493.4 MB, free: 12.13 MB / 362.7 MB Notification: Performance of SimCode: time 4.6e-07/0.3582, allocations: 0 / 493.4 MB, free: 12.13 MB / 362.7 MB Notification: Performance of Templates: time 0.007094/0.3653, allocations: 3.484 MB / 496.9 MB, free: 8.73 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/NonInvertingAmplifier/NonInvertingAmplifier.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches