Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.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.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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.0009591/0.0009591, allocations: 182 kB / 8.131 MB, free: 2.16 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.201/1.201, allocations: 221.4 MB / 229.9 MB, free: 3.008 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.0008692/0.0008691, allocations: 93.56 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.478e-06/9.508e-06, allocations: 0 / 336.5 MB, free: 9.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2039/0.2039, allocations: 50.4 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09184/0.2958, allocations: 80.08 MB / 467 MB, free: 6.711 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002284/0.2961, allocations: 73.08 kB / 467.1 MB, free: 6.641 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02439/0.3205, allocations: 8.332 MB / 475.4 MB, free: 14.33 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.652e-05/0.3206, allocations: 8 kB / 475.4 MB, free: 14.32 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0009707/0.3215, allocations: 0.6346 MB / 476 MB, free: 13.64 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.3216, allocations: 8.031 kB / 476 MB, free: 13.64 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.551e-05/0.3217, allocations: 53 kB / 476.1 MB, free: 13.59 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003664/0.322, allocations: 289.8 kB / 476.4 MB, free: 13.26 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.3221, allocations: 15.94 kB / 476.4 MB, free: 13.25 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.294e-05/0.3221, allocations: 20 kB / 476.4 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004026/0.3225, allocations: 193.3 kB / 476.6 MB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004627/0.323, allocations: 283.8 kB / 476.9 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.323, allocations: 0 / 476.9 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.994e-05/0.3231, allocations: 4.938 kB / 476.9 MB, free: 12.74 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.711e-05/0.3231, allocations: 8 kB / 476.9 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001882/0.325, allocations: 1.103 MB / 478 MB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004144/0.3254, allocations: 219.5 kB / 478.2 MB, free: 11.33 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003775/0.3258, allocations: 185.3 kB / 478.4 MB, free: 11.15 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007523/0.3266, allocations: 1.133 MB / 479.5 MB, free: 9.758 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.448e-05/0.3266, allocations: 42.7 kB / 479.6 MB, free: 9.707 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 1.713e-06/0.3266, allocations: 0 / 479.6 MB, free: 9.707 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.000608/0.3272, allocations: 260.8 kB / 479.8 MB, free: 9.445 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.391e-05/0.3273, allocations: 89.09 kB / 479.9 MB, free: 9.34 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002724/0.3275, allocations: 239.5 kB / 480.1 MB, free: 9.102 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.598e-05/0.3276, allocations: 27.67 kB / 480.2 MB, free: 9.07 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.3277, allocations: 195.9 kB / 480.4 MB, free: 8.875 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.38e-05/0.3278, allocations: 94.56 kB / 480.5 MB, free: 8.781 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.471e-05/0.3278, allocations: 0 / 480.5 MB, free: 8.781 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.3279, allocations: 342.8 kB / 480.8 MB, free: 8.438 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001481/0.3281, allocations: 84.75 kB / 480.9 MB, free: 8.352 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000192/0.3283, allocations: 149.7 kB / 481 MB, free: 8.176 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000215/0.3285, allocations: 114.5 kB / 481.1 MB, free: 8.066 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3285, allocations: 3.938 kB / 481.1 MB, free: 8.062 MB / 362.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006442/0.3291, allocations: 345.9 kB / 481.5 MB, free: 7.715 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.3292, allocations: 8 kB / 481.5 MB, free: 7.707 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.3292, allocations: 0 / 481.5 MB, free: 7.707 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002467/0.3294, allocations: 68.75 kB / 481.5 MB, free: 7.637 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003641/0.3298, allocations: 84.7 kB / 481.6 MB, free: 7.555 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001704/0.3315, allocations: 1.675 MB / 483.3 MB, free: 5.766 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002693/0.3318, allocations: 39.64 kB / 483.3 MB, free: 5.727 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.862e-05/0.3319, allocations: 16.19 kB / 483.4 MB, free: 5.711 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.0001089/0.332, allocations: 109 kB / 483.5 MB, free: 5.598 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.543e-05/0.332, allocations: 35.56 kB / 483.5 MB, free: 5.562 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005672/0.3326, allocations: 297.2 kB / 483.8 MB, free: 5.27 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.3326, allocations: 4 kB / 483.8 MB, free: 5.266 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-06/0.3326, allocations: 0 / 483.8 MB, free: 5.266 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.3326, allocations: 0 / 483.8 MB, free: 5.266 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004471/0.3331, allocations: 345.7 kB / 484.1 MB, free: 4.891 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3331, allocations: 0 / 484.1 MB, free: 4.891 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003771/0.3335, allocations: 59.95 kB / 484.2 MB, free: 4.832 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001724/0.3337, allocations: 56.83 kB / 484.2 MB, free: 4.773 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.166e-05/0.3337, allocations: 0 / 484.2 MB, free: 4.773 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004254/0.3341, allocations: 0.6186 MB / 484.9 MB, free: 4.129 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.3341, allocations: 0 / 484.9 MB, free: 4.129 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006636/0.3348, allocations: 468.5 kB / 485.3 MB, free: 3.648 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.681e-05/0.3349, allocations: 112.7 kB / 485.4 MB, free: 3.52 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.243e-05/0.335, allocations: 0 / 485.4 MB, free: 3.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003205/0.3353, allocations: 24.05 kB / 485.5 MB, free: 3.496 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.716e-05/0.3354, allocations: 19.97 kB / 485.5 MB, free: 3.477 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.013e-05/0.3354, allocations: 4 kB / 485.5 MB, free: 3.473 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001693/0.3356, allocations: 199 kB / 485.7 MB, free: 3.277 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004627/0.336, allocations: 107.7 kB / 485.8 MB, free: 3.172 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.0002111/0.3362, allocations: 119.3 kB / 485.9 MB, free: 3.047 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006143/0.3369, allocations: 349.5 kB / 486.2 MB, free: 2.695 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.3369, allocations: 0 / 486.2 MB, free: 2.695 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000251/0.3371, allocations: 116.4 kB / 486.3 MB, free: 2.582 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002421/0.3374, allocations: 31.58 kB / 486.4 MB, free: 2.555 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001079/0.3385, allocations: 0.6526 MB / 487 MB, free: 1.867 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000402/0.3389, allocations: 0.8275 MB / 487.9 MB, free: 1.016 MB / 362.7 MB Notification: Performance of SimCode: time 2.7e-07/0.3389, allocations: 0 / 487.9 MB, free: 1.016 MB / 362.7 MB Notification: Performance of Templates: time 0.007157/0.3461, allocations: 3.523 MB / 491.4 MB, free: 13.54 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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