Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002843/0.002842, allocations: 175.4 kB / 8.151 MB, free: 2.215 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.661/1.661, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001262/0.001262, allocations: 87.52 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.184e-05/1.192e-05, allocations: 0 / 314.3 MB, free: 9.035 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2383/0.2384, allocations: 47.55 MB / 361.9 MB, free: 45.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1227/0.3612, allocations: 77.04 MB / 438.9 MB, free: 9.008 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003066/0.3616, allocations: 76.45 kB / 439 MB, free: 8.934 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.02395/0.3855, allocations: 4.885 MB / 443.9 MB, free: 4.09 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.023e-05/0.3856, allocations: 16.55 kB / 443.9 MB, free: 4.074 MB / 330.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.00131/0.3869, allocations: 0.561 MB / 444.4 MB, free: 3.469 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.387, allocations: 8.031 kB / 444.4 MB, free: 3.461 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001303/0.3871, allocations: 39.53 kB / 444.5 MB, free: 3.422 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000571/0.3877, allocations: 279.1 kB / 444.8 MB, free: 3.109 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.181e-05/0.3878, allocations: 8 kB / 444.8 MB, free: 3.102 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.791e-05/0.3878, allocations: 21.78 kB / 444.8 MB, free: 3.082 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007274/0.3886, allocations: 213.3 kB / 445 MB, free: 2.875 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006412/0.3892, allocations: 220.7 kB / 445.2 MB, free: 2.652 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.3893, allocations: 4 kB / 445.2 MB, free: 2.648 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.167e-05/0.3893, allocations: 0 / 445.2 MB, free: 2.648 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.528e-05/0.3894, allocations: 8 kB / 445.2 MB, free: 2.641 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003484/0.3928, allocations: 1.152 MB / 446.4 MB, free: 1.41 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007991/0.3937, allocations: 198.9 kB / 446.6 MB, free: 1.207 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005313/0.3942, allocations: 146 kB / 446.7 MB, free: 1.062 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.095e-05/0.3943, allocations: 4 kB / 446.7 MB, free: 1.059 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.191e-05/0.3943, allocations: 34.55 kB / 446.7 MB, free: 1.016 MB / 330.7 MB Notification: Performance of pre-optimization done (n=20): time 2.315e-06/0.3944, allocations: 0 / 446.7 MB, free: 1.016 MB / 330.7 MB Notification: Performance of matching and sorting (n=20): time 0.00151/0.3959, allocations: 327.8 kB / 447.1 MB, free: 0.6836 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.208e-05/0.3959, allocations: 51.41 kB / 447.1 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003555/0.3963, allocations: 204 kB / 447.3 MB, free: 428 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.247e-05/0.3963, allocations: 25.7 kB / 447.3 MB, free: 396 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001413/0.3965, allocations: 254 kB / 447.6 MB, free: 140 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.326e-05/0.3966, allocations: 66.48 kB / 447.6 MB, free: 76 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.657e-05/0.3966, allocations: 0 / 447.6 MB, free: 76 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.3968, allocations: 330.8 kB / 448 MB, free: 15.74 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001781/0.397, allocations: 52 kB / 448 MB, free: 15.69 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002619/0.3972, allocations: 150.9 kB / 448.2 MB, free: 15.5 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002332/0.3975, allocations: 71.92 kB / 448.2 MB, free: 15.43 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.644e-06/0.3975, allocations: 7.984 kB / 448.2 MB, free: 15.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001581/0.3991, allocations: 392 kB / 448.6 MB, free: 15.03 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005098/0.3996, allocations: 1.126 MB / 449.8 MB, free: 13.82 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.427e-05/0.3997, allocations: 4 kB / 449.8 MB, free: 13.81 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004309/0.4001, allocations: 85.67 kB / 449.8 MB, free: 13.72 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004383/0.4005, allocations: 47.92 kB / 449.9 MB, free: 13.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002132/0.4027, allocations: 1.263 MB / 451.2 MB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003678/0.4031, allocations: 33.02 kB / 451.2 MB, free: 12.33 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.43e-05/0.4032, allocations: 16.06 kB / 451.2 MB, free: 12.32 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.4032, allocations: 4 kB / 451.2 MB, free: 12.31 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006613/0.4039, allocations: 215.1 kB / 451.4 MB, free: 12.1 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.178e-06/0.4039, allocations: 4.047 kB / 451.4 MB, free: 12.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002137/0.4041, allocations: 49.67 kB / 451.5 MB, free: 12.04 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004408/0.4046, allocations: 59.91 kB / 451.5 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002845/0.4074, allocations: 2.576 MB / 454.1 MB, free: 9.172 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002423/0.4077, allocations: 15.75 kB / 454.1 MB, free: 9.156 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.425e-05/0.4078, allocations: 16 kB / 454.1 MB, free: 9.141 MB / 346.7 MB 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.0001421/0.4079, allocations: 29.64 kB / 454.2 MB, free: 9.105 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001107/0.408, allocations: 31.72 kB / 454.2 MB, free: 9.074 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001245/0.4082, allocations: 29.94 kB / 454.2 MB, free: 9.051 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.4082, allocations: 0 / 454.2 MB, free: 9.051 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.4082, allocations: 0 / 454.2 MB, free: 9.051 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.4082, allocations: 3.984 kB / 454.2 MB, free: 9.047 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002038/0.4103, allocations: 0.6797 MB / 454.9 MB, free: 8.316 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.4103, allocations: 0 / 454.9 MB, free: 8.316 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002721/0.4106, allocations: 27.98 kB / 454.9 MB, free: 8.289 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003799/0.411, allocations: 81.67 kB / 455 MB, free: 8.203 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.405e-05/0.411, allocations: 3.906 kB / 455 MB, free: 8.199 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005556/0.4166, allocations: 3.035 MB / 458.1 MB, free: 4.934 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.742e-06/0.4166, allocations: 0 / 458.1 MB, free: 4.934 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001614/0.4183, allocations: 487.5 kB / 458.5 MB, free: 4.434 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000145/0.4185, allocations: 106.6 kB / 458.6 MB, free: 4.312 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.28e-05/0.4185, allocations: 0 / 458.6 MB, free: 4.312 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004395/0.419, allocations: 39.94 kB / 458.7 MB, free: 4.273 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.81e-05/0.419, allocations: 7.984 kB / 458.7 MB, free: 4.266 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-05/0.4191, allocations: 4 kB / 458.7 MB, free: 4.262 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0002436/0.4193, allocations: 168.5 kB / 458.8 MB, free: 4.098 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009222/0.4202, allocations: 135.5 kB / 459 MB, free: 3.965 MB / 346.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.0002042/0.4205, allocations: 103.2 kB / 459.1 MB, free: 3.855 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00194/0.4224, allocations: 0.5676 MB / 459.6 MB, free: 3.27 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.4225, allocations: 4.062 kB / 459.7 MB, free: 3.266 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001175/0.4236, allocations: 371.4 kB / 460 MB, free: 2.883 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005285/0.4242, allocations: 36.08 kB / 460.1 MB, free: 2.848 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001422/0.4256, allocations: 420.1 kB / 460.5 MB, free: 2.406 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005147/0.4262, allocations: 0.7978 MB / 461.3 MB, free: 1.586 MB / 346.7 MB Notification: Performance of SimCode: time 3.887e-06/0.4262, allocations: 0 / 461.3 MB, free: 1.586 MB / 346.7 MB Notification: Performance of Templates: time 0.01128/0.4375, allocations: 5.302 MB / 466.6 MB, free: 12.3 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator_res.mat","/var/lib/jenkins1/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_cpp_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,der(c.v),c.i,c.n.i,c.n.v,c.p.i,c.p.v,c.v,f,ground.p.i,ground.p.v,opAmp1.V0,opAmp1.Vns,opAmp1.Vps,opAmp1.homotopyType,opAmp1.i_s,opAmp1.in_n.i,opAmp1.in_n.v,opAmp1.in_p.i,opAmp1.in_p.v,opAmp1.out.i,opAmp1.out.v,opAmp1.p_in,opAmp1.p_out,opAmp1.p_s,opAmp1.simplifiedExpr,opAmp1.strict,opAmp1.useSupply,opAmp1.v_in,opAmp1.v_out,opAmp1.vns,opAmp1.vps,opAmp2.V0,opAmp2.Vns,opAmp2.Vps,opAmp2.homotopyType,opAmp2.i_s,opAmp2.in_n.i,opAmp2.in_n.v,opAmp2.in_p.i,opAmp2.in_p.v,opAmp2.out.i,opAmp2.out.v,opAmp2.p_in,opAmp2.p_out,opAmp2.p_s,opAmp2.simplifiedExpr,opAmp2.strict,opAmp2.useSupply,opAmp2.v_in,opAmp2.v_out,opAmp2.vns,opAmp2.vps,r.LossPower,r.R,r.R_actual,r.T,r.T_heatPort,r.T_ref,r.alpha,r.i,r.n.i,r.n.v,r.p.i,r.p.v,r.useHeatPort,r.v,r1.LossPower,r1.R,r1.R_actual,r1.T,r1.T_heatPort,r1.T_ref,r1.alpha,r1.i,r1.n.i,r1.n.v,r1.p.i,r1.p.v,r1.useHeatPort,r1.v,r2.LossPower,r2.R,r2.R_actual,r2.T,r2.T_heatPort,r2.T_ref,r2.alpha,r2.i,r2.n.i,r2.n.v,r2.p.i,r2.p.v,r2.useHeatPort,r2.v,time,vOutRectangle.n.i,vOutRectangle.n.v,vOutRectangle.p.i,vOutRectangle.p.v,vOutRectangle.v,vOutTriangle.n.i,vOutTriangle.n.v,vOutTriangle.p.i,vOutTriangle.p.v,vOutTriangle.v