Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.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.AmplifierWithOpAmpDetailed,tolerance=2e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|opAmp.q_fp1|opAmp.q_fr1|opAmp.q_fr2|opAmp.q_fr3|opAmp.v_in|opAmp.v_source|opAmp.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed") translateModel(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed,tolerance=2e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|opAmp.q_fp1|opAmp.q_fr1|opAmp.q_fr2|opAmp.q_fr3|opAmp.v_in|opAmp.v_source|opAmp.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed") [: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.001415/0.001415, allocations: 203.7 kB / 8.539 MB, free: 1.75 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 225.5 MB / 234.4 MB, free: 3.371 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001049/0.001049, allocations: 89.48 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.454e-06/7.554e-06, allocations: 4 kB / 343.1 MB, free: 8.727 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08971/0.08973, allocations: 51.48 MB / 394.6 MB, free: 5.195 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2343/0.324, allocations: 80.89 MB / 475.5 MB, free: 11.46 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001961/0.3243, allocations: 65.88 kB / 475.6 MB, free: 11.44 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02173/0.346, allocations: 8.428 MB / 484 MB, free: 5.191 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.75e-05/0.3461, allocations: 4 kB / 484 MB, free: 5.188 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0008736/0.347, allocations: 0.6341 MB / 484.6 MB, free: 4.535 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.347, allocations: 8.031 kB / 484.7 MB, free: 4.527 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001816/0.3472, allocations: 63.42 kB / 484.7 MB, free: 4.465 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003222/0.3475, allocations: 298.5 kB / 485 MB, free: 4.164 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.3475, allocations: 12 kB / 485 MB, free: 4.152 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.72e-05/0.3476, allocations: 20.75 kB / 485 MB, free: 4.133 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003211/0.3479, allocations: 190.4 kB / 485.2 MB, free: 4.02 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003908/0.3483, allocations: 286.2 kB / 485.5 MB, free: 3.801 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.3483, allocations: 4 kB / 485.5 MB, free: 3.797 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.857e-05/0.3484, allocations: 0 / 485.5 MB, free: 3.797 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.3484, allocations: 12 kB / 485.5 MB, free: 3.785 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001619/0.35, allocations: 1.095 MB / 486.6 MB, free: 2.848 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003491/0.3504, allocations: 214 kB / 486.8 MB, free: 2.691 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003311/0.3507, allocations: 196.1 kB / 487 MB, free: 2.543 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004982/0.3512, allocations: 1.14 MB / 488.2 MB, free: 1.148 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.655e-05/0.3513, allocations: 33.98 kB / 488.2 MB, free: 1.109 MB / 346.7 MB Notification: Performance of pre-optimization done (n=27): time 2.053e-06/0.3513, allocations: 4 kB / 488.2 MB, free: 1.105 MB / 346.7 MB Notification: Performance of matching and sorting (n=27): time 0.0005477/0.3518, allocations: 252.2 kB / 488.4 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.634e-05/0.3519, allocations: 89.09 kB / 488.5 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002141/0.3521, allocations: 245.8 kB / 488.8 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.185e-05/0.3521, allocations: 25.7 kB / 488.8 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.88e-05/0.3522, allocations: 192.6 kB / 489 MB, free: 412 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.908e-05/0.3522, allocations: 101.5 kB / 489.1 MB, free: 324 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.474e-05/0.3523, allocations: 0 / 489.1 MB, free: 324 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.632e-05/0.3523, allocations: 341.3 kB / 489.4 MB, free: 15.99 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000138/0.3525, allocations: 80.69 kB / 489.5 MB, free: 15.93 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001802/0.3527, allocations: 157.1 kB / 489.6 MB, free: 15.79 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002005/0.3529, allocations: 102.9 kB / 489.7 MB, free: 15.73 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3529, allocations: 0 / 489.7 MB, free: 15.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006421/0.3535, allocations: 361.3 kB / 490.1 MB, free: 15.45 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.3536, allocations: 4 kB / 490.1 MB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.3536, allocations: 4 kB / 490.1 MB, free: 15.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002516/0.3538, allocations: 68.94 kB / 490.2 MB, free: 15.38 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003424/0.3542, allocations: 79.53 kB / 490.2 MB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001646/0.3558, allocations: 1.674 MB / 491.9 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002764/0.3561, allocations: 40.23 kB / 492 MB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.106e-05/0.3562, allocations: 14.5 kB / 492 MB, free: 13.65 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001047/0.3563, allocations: 104.9 kB / 492.1 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.867e-05/0.3564, allocations: 31.62 kB / 492.1 MB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005551/0.3569, allocations: 292.8 kB / 492.4 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.3569, allocations: 4 kB / 492.4 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-06/0.3569, allocations: 1.312 kB / 492.4 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.357, allocations: 0 / 492.4 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003982/0.3574, allocations: 346.5 kB / 492.7 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.3574, allocations: 1.875 kB / 492.7 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003748/0.3577, allocations: 59.89 kB / 492.8 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001685/0.3579, allocations: 59.45 kB / 492.9 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.444e-05/0.358, allocations: 3.562 kB / 492.9 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000407/0.3584, allocations: 0.6075 MB / 493.5 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.149e-06/0.3584, allocations: 6.391 kB / 493.5 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006251/0.359, allocations: 473.6 kB / 493.9 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.78e-05/0.3591, allocations: 108.7 kB / 494 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.481e-05/0.3592, allocations: 0 / 494 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002888/0.3595, allocations: 28.42 kB / 494.1 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.024e-05/0.3595, allocations: 19.34 kB / 494.1 MB, free: 11.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.028e-05/0.3596, allocations: 4 kB / 494.1 MB, free: 11.71 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001675/0.3597, allocations: 195.1 kB / 494.3 MB, free: 11.57 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000448/0.3602, allocations: 107.7 kB / 494.4 MB, free: 11.46 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (opAmp.v_in,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.q_fp1,opAmp.v_source,opAmp.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * 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: 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 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002122/0.3604, allocations: 127.1 kB / 494.5 MB, free: 11.33 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005794/0.361, allocations: 348.5 kB / 494.9 MB, free: 11.05 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.361, allocations: 0 / 494.9 MB, free: 11.05 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002299/0.3612, allocations: 116.6 kB / 495 MB, free: 10.97 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002491/0.3615, allocations: 24 kB / 495 MB, free: 10.96 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001108/0.3626, allocations: 0.6483 MB / 495.6 MB, free: 10.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003814/0.363, allocations: 0.8322 MB / 496.5 MB, free: 9.488 MB / 362.7 MB Notification: Performance of SimCode: time 2.7e-07/0.363, allocations: 0 / 496.5 MB, free: 9.488 MB / 362.7 MB Notification: Performance of Templates: time 0.007157/0.3702, allocations: 3.526 MB / 500 MB, free: 6.043 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/AmplifierWithOpAmpDetailed/AmplifierWithOpAmpDetailed.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,opAmp.q_fp1,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.v_in,opAmp.v_source,opAmp.x Variables in the result:constantVoltage.V,constantVoltage1.V,opAmp.Avcm_val,opAmp.Avd0,opAmp.Avd0_val,opAmp.CMRR,opAmp.Cin,opAmp.I1,opAmp.I2,opAmp.Ib,opAmp.Imaxsi,opAmp.Imaxsi_val,opAmp.Imaxso,opAmp.Imaxso_val,opAmp.Ios,opAmp.Rcm,opAmp.Rdm,opAmp.Rout,opAmp.Ts,opAmp.Vos,opAmp.fp1,opAmp.fp2,opAmp.fp3,opAmp.fp4,opAmp.fz,opAmp.q_fp1,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.sr_m,opAmp.sr_m_val,opAmp.sr_p,opAmp.sr_p_val,opAmp.v_in,opAmp.v_source,opAmp.vcm,opAmp.vcm_abs,opAmp.vcp,opAmp.vcp_abs,opAmp.x,resistor.R,resistor.T,resistor.T_ref,resistor.alpha,resistor1.R,resistor1.T,resistor1.T_ref,resistor1.alpha,resistor2.R,resistor2.T,resistor2.T_ref,resistor2.alpha,sineVoltage.V,sineVoltage.f,sineVoltage.offset,sineVoltage.phase,sineVoltage.signalSource.amplitude,sineVoltage.signalSource.f,sineVoltage.signalSource.offset,sineVoltage.signalSource.phase,sineVoltage.signalSource.startTime,sineVoltage.startTime,time