Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|c.v|opAmp1.out.v|opAmp1.out.i|opAmp2.out.v|opAmp2.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|c.v|opAmp1.out.v|opAmp1.out.i|opAmp2.out.v|opAmp2.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator") [: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 3.2.3+maint.om/package.mo): time 0.0009813/0.0009813, allocations: 179.7 kB / 8.48 MB, free: 1.871 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.137/1.137, allocations: 205.2 MB / 214.1 MB, free: 5.16 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008566/0.0008568, allocations: 94.23 kB / 262.1 MB, free: 5.188 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.744e-06/7.774e-06, allocations: 4 kB / 315 MB, free: 41.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07747/0.07749, allocations: 47.57 MB / 362.6 MB, free: 9.945 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2509/0.3285, allocations: 77.04 MB / 439.6 MB, free: 10.71 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000215/0.3287, allocations: 80.62 kB / 439.7 MB, free: 10.71 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.01327/0.342, allocations: 4.881 MB / 444.5 MB, free: 10.35 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.103e-05/0.3421, allocations: 8.562 kB / 444.6 MB, free: 10.34 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.0007651/0.3428, allocations: 0.5582 MB / 445.1 MB, free: 9.922 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.3429, allocations: 8.391 kB / 445.1 MB, free: 9.922 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.318e-05/0.343, allocations: 38.78 kB / 445.2 MB, free: 9.902 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003487/0.3433, allocations: 284.4 kB / 445.4 MB, free: 9.672 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.405e-05/0.3434, allocations: 7.812 kB / 445.4 MB, free: 9.672 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.908e-05/0.3434, allocations: 19.5 kB / 445.5 MB, free: 9.672 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003591/0.3438, allocations: 214.5 kB / 445.7 MB, free: 9.668 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003617/0.3441, allocations: 222.1 kB / 445.9 MB, free: 9.625 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.3442, allocations: 3.938 kB / 445.9 MB, free: 9.621 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.85e-05/0.3442, allocations: 0 / 445.9 MB, free: 9.621 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.3442, allocations: 8.375 kB / 445.9 MB, free: 9.621 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001899/0.3461, allocations: 1.156 MB / 447.1 MB, free: 9.074 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004316/0.3466, allocations: 200.4 kB / 447.3 MB, free: 9.035 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000254/0.3468, allocations: 144.9 kB / 447.4 MB, free: 9.004 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.052e-05/0.3469, allocations: 3.906 kB / 447.4 MB, free: 9.004 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.653e-05/0.3469, allocations: 38.12 kB / 447.4 MB, free: 8.961 MB / 314.7 MB Notification: Performance of pre-optimization done (n=20): time 1.202e-06/0.3469, allocations: 0 / 447.4 MB, free: 8.961 MB / 314.7 MB Notification: Performance of matching and sorting (n=20): time 0.0007877/0.3477, allocations: 319.8 kB / 447.8 MB, free: 8.844 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.896e-05/0.3477, allocations: 51.41 kB / 447.8 MB, free: 8.781 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001701/0.3479, allocations: 209.9 kB / 448 MB, free: 8.672 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.755e-05/0.3479, allocations: 29.64 kB / 448 MB, free: 8.637 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.747e-05/0.348, allocations: 192 kB / 448.2 MB, free: 8.477 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.444e-05/0.348, allocations: 65.72 kB / 448.3 MB, free: 8.426 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.798e-06/0.348, allocations: 0 / 448.3 MB, free: 8.426 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.541e-05/0.3481, allocations: 337.2 kB / 448.6 MB, free: 8.105 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.649e-05/0.3482, allocations: 59.7 kB / 448.7 MB, free: 8.102 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001181/0.3483, allocations: 146 kB / 448.8 MB, free: 7.988 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001077/0.3484, allocations: 76.05 kB / 448.9 MB, free: 7.973 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.3484, allocations: 3.844 kB / 448.9 MB, free: 7.973 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007183/0.3492, allocations: 403.1 kB / 449.3 MB, free: 7.832 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001838/0.3494, allocations: 1.126 MB / 450.4 MB, free: 6.648 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.3494, allocations: 3.812 kB / 450.4 MB, free: 6.648 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000267/0.3496, allocations: 86.7 kB / 450.5 MB, free: 6.617 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001786/0.3498, allocations: 57.7 kB / 450.6 MB, free: 6.602 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000943/0.3508, allocations: 1.257 MB / 451.8 MB, free: 5.508 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002301/0.351, allocations: 42.64 kB / 451.9 MB, free: 5.484 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.951e-05/0.351, allocations: 18.69 kB / 451.9 MB, free: 5.48 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.29e-06/0.3511, allocations: 3.844 kB / 451.9 MB, free: 5.48 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002988/0.3514, allocations: 216.2 kB / 452.1 MB, free: 5.422 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.665e-06/0.3514, allocations: 0 / 452.1 MB, free: 5.422 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.242e-05/0.3515, allocations: 47.11 kB / 452.1 MB, free: 5.398 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001866/0.3517, allocations: 61.88 kB / 452.2 MB, free: 5.387 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001393/0.3531, allocations: 2.581 MB / 454.8 MB, free: 18.83 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001333/0.3532, allocations: 15.59 kB / 454.8 MB, free: 18.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.368e-05/0.3532, allocations: 11.41 kB / 454.8 MB, free: 18.82 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: opAmp2.simplifiedExpr:VARIABLE(unit = "V" protected = true ) "Simplified expression for homotopy-based initialization" 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 27 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001259/0.3534, allocations: 124 kB / 454.9 MB, free: 18.7 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.601e-05/0.3534, allocations: 27.34 kB / 455 MB, free: 18.68 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.854e-05/0.3535, allocations: 24.22 kB / 455 MB, free: 18.67 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.3535, allocations: 3.969 kB / 455 MB, free: 18.67 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.3535, allocations: 4.062 kB / 455 MB, free: 18.67 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.409e-06/0.3535, allocations: 0 / 455 MB, free: 18.67 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009871/0.3545, allocations: 0.6697 MB / 455.7 MB, free: 18.27 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.3545, allocations: 3.844 kB / 455.7 MB, free: 18.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001282/0.3546, allocations: 29.95 kB / 455.7 MB, free: 18.26 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001703/0.3548, allocations: 76.5 kB / 455.8 MB, free: 18.23 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/0.3548, allocations: 3.984 kB / 455.8 MB, free: 18.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002719/0.3576, allocations: 3.031 MB / 458.8 MB, free: 15.59 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.3576, allocations: 0 / 458.8 MB, free: 15.59 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007225/0.3583, allocations: 487.6 kB / 459.3 MB, free: 15.37 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.437e-05/0.3584, allocations: 100.4 kB / 459.4 MB, free: 15.26 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.42e-05/0.3585, allocations: 7.562 kB / 459.4 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002221/0.3587, allocations: 27.31 kB / 459.4 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.416e-05/0.3587, allocations: 15.73 kB / 459.4 MB, free: 15.23 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.305e-05/0.3587, allocations: 11.81 kB / 459.4 MB, free: 15.23 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001185/0.3589, allocations: 164 kB / 459.6 MB, free: 15.14 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006328/0.3595, allocations: 139.7 kB / 459.7 MB, free: 15.12 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (c.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001554/0.3597, allocations: 106.5 kB / 459.8 MB, free: 15.02 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009564/0.3606, allocations: 0.5697 MB / 460.4 MB, free: 14.75 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3606, allocations: 3.781 kB / 460.4 MB, free: 14.75 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005652/0.3612, allocations: 370.8 kB / 460.8 MB, free: 14.52 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002909/0.3615, allocations: 35.95 kB / 460.8 MB, free: 14.5 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007595/0.3623, allocations: 399 kB / 461.2 MB, free: 14.28 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003343/0.3626, allocations: 0.7905 MB / 462 MB, free: 13.53 MB / 330.7 MB Notification: Performance of SimCode: time 2.81e-07/0.3626, allocations: 0 / 462 MB, free: 13.53 MB / 330.7 MB Notification: Performance of Templates: time 0.006873/0.3695, allocations: 4.121 MB / 466.1 MB, free: 11.54 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/SignalGenerator/SignalGenerator.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,c.v,opAmp1.out.v,opAmp1.out.i,opAmp2.out.v,opAmp2.out.i Variables in the result:C,R,R1,R2,VAmp,Vns,Vps,c.C,c.v,f,opAmp1.V0,opAmp1.Vns,opAmp1.Vps,opAmp1.homotopyType,opAmp1.out.i,opAmp1.out.v,opAmp1.strict,opAmp1.useSupply,opAmp2.V0,opAmp2.Vns,opAmp2.Vps,opAmp2.homotopyType,opAmp2.out.i,opAmp2.out.v,opAmp2.strict,opAmp2.useSupply,r.R,r.T,r.T_ref,r.alpha,r1.R,r1.T,r1.T_ref,r1.alpha,r2.R,r2.T,r2.T_ref,r2.alpha,time,vOutRectangle.v,vOutTriangle.v