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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001467/0.001466, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.137/2.137, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001071/0.001071, allocations: 92.83 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.245e-05/2.243e-05, allocations: 4 kB / 314.8 MB, free: 9.141 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3357/0.3358, allocations: 47.56 MB / 362.3 MB, free: 45.86 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1248/0.4607, allocations: 77.12 MB / 439.5 MB, free: 9.195 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002998/0.461, allocations: 83.75 kB / 439.5 MB, free: 9.117 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02299/0.484, allocations: 5.133 MB / 444.7 MB, free: 4.02 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4841, allocations: 0 / 444.7 MB, free: 4.02 MB / 331.1 MB Notification: Performance of Transformations before backend: time 3.194e-05/0.4841, allocations: 12 kB / 444.7 MB, free: 4.008 MB / 331.1 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.001244/0.4854, allocations: 0.5523 MB / 445.2 MB, free: 3.414 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.4854, allocations: 8.031 kB / 445.2 MB, free: 3.406 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000115/0.4856, allocations: 39.53 kB / 445.3 MB, free: 3.367 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005287/0.4861, allocations: 289.5 kB / 445.6 MB, free: 3.047 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.307e-05/0.4861, allocations: 11.95 kB / 445.6 MB, free: 3.035 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.214e-05/0.4862, allocations: 17.56 kB / 445.6 MB, free: 3.02 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006349/0.4869, allocations: 209.5 kB / 445.8 MB, free: 2.812 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006094/0.4875, allocations: 222.2 kB / 446 MB, free: 2.59 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.4875, allocations: 0 / 446 MB, free: 2.59 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.782e-05/0.4876, allocations: 0 / 446 MB, free: 2.59 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.358e-05/0.4876, allocations: 8 kB / 446 MB, free: 2.582 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003172/0.4908, allocations: 1.144 MB / 447.2 MB, free: 1.359 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007642/0.4916, allocations: 222.9 kB / 447.4 MB, free: 1.133 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004778/0.4921, allocations: 133.7 kB / 447.5 MB, free: 1 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.719e-05/0.4921, allocations: 4 kB / 447.5 MB, free: 0.9961 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.375e-05/0.4922, allocations: 34.86 kB / 447.6 MB, free: 0.9531 MB / 331.1 MB Notification: Performance of pre-optimization done (n=20): time 3.256e-06/0.4922, allocations: 0 / 447.6 MB, free: 0.9531 MB / 331.1 MB Notification: Performance of matching and sorting (n=20): time 0.001346/0.4936, allocations: 302.9 kB / 447.9 MB, free: 0.6445 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.943e-05/0.4936, allocations: 60.53 kB / 447.9 MB, free: 0.5742 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003302/0.494, allocations: 204.4 kB / 448.1 MB, free: 376 kB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 3.459e-05/0.494, allocations: 29.7 kB / 448.1 MB, free: 340 kB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001775/0.4942, allocations: 266 kB / 448.4 MB, free: 72 kB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.162e-05/0.4943, allocations: 67 kB / 448.5 MB, free: 4 kB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.568e-05/0.4943, allocations: 0 / 448.5 MB, free: 4 kB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.4945, allocations: 326.8 kB / 448.8 MB, free: 15.68 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002015/0.4947, allocations: 59.94 kB / 448.8 MB, free: 15.62 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002594/0.495, allocations: 150.9 kB / 449 MB, free: 15.43 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002238/0.4952, allocations: 75.91 kB / 449.1 MB, free: 15.36 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.105e-06/0.4953, allocations: 4 kB / 449.1 MB, free: 15.35 MB / 347.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001457/0.4967, allocations: 380.7 kB / 449.4 MB, free: 14.97 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005767/0.4973, allocations: 1.129 MB / 450.6 MB, free: 13.75 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.376e-05/0.4974, allocations: 7.984 kB / 450.6 MB, free: 13.75 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004594/0.4978, allocations: 95.11 kB / 450.7 MB, free: 13.65 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003783/0.4982, allocations: 51.91 kB / 450.7 MB, free: 13.6 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001789/0.5, allocations: 1.217 MB / 451.9 MB, free: 12.33 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004277/0.5005, allocations: 47.58 kB / 452 MB, free: 12.29 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.491e-05/0.5006, allocations: 16 kB / 452 MB, free: 12.27 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.5006, allocations: 4 kB / 452 MB, free: 12.27 MB / 347.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006147/0.5012, allocations: 210.6 kB / 452.2 MB, free: 12.05 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.5012, allocations: 4 kB / 452.2 MB, free: 12.05 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000197/0.5014, allocations: 50.81 kB / 452.3 MB, free: 12 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003778/0.5018, allocations: 55.92 kB / 452.3 MB, free: 11.94 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002571/0.5044, allocations: 2.595 MB / 454.9 MB, free: 9.121 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002132/0.5047, allocations: 19.7 kB / 454.9 MB, free: 9.102 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.698e-05/0.5047, allocations: 15.94 kB / 454.9 MB, free: 9.086 MB / 347.1 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.000223/0.5049, allocations: 112.1 kB / 455.1 MB, free: 8.973 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.998e-05/0.5051, allocations: 19.81 kB / 455.1 MB, free: 8.953 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.312e-05/0.5051, allocations: 25.95 kB / 455.1 MB, free: 8.93 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.5052, allocations: 8.062 kB / 455.1 MB, free: 8.922 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.5052, allocations: 0 / 455.1 MB, free: 8.922 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/0.5052, allocations: 3.953 kB / 455.1 MB, free: 8.918 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001896/0.5071, allocations: 0.6666 MB / 455.8 MB, free: 8.203 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.5071, allocations: 4 kB / 455.8 MB, free: 8.199 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002377/0.5074, allocations: 27.92 kB / 455.8 MB, free: 8.172 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003358/0.5077, allocations: 77.69 kB / 455.9 MB, free: 8.09 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.766e-05/0.5078, allocations: 1.594 kB / 455.9 MB, free: 8.09 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004654/0.5124, allocations: 3.012 MB / 458.9 MB, free: 4.852 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.351e-06/0.5125, allocations: 0 / 458.9 MB, free: 4.852 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001436/0.5139, allocations: 481.2 kB / 459.4 MB, free: 4.355 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001062/0.514, allocations: 96.8 kB / 459.5 MB, free: 4.242 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.231e-05/0.5141, allocations: 4 kB / 459.5 MB, free: 4.238 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003802/0.5145, allocations: 23.97 kB / 459.5 MB, free: 4.215 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.784e-05/0.5146, allocations: 19.97 kB / 459.5 MB, free: 4.195 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.307e-05/0.5147, allocations: 11.95 kB / 459.5 MB, free: 4.184 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0002222/0.5149, allocations: 164.6 kB / 459.7 MB, free: 4.023 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5149, allocations: 0 / 459.7 MB, free: 4.023 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0009473/0.5159, allocations: 139.5 kB / 459.8 MB, free: 3.887 MB / 347.1 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.0001982/0.5161, allocations: 103.2 kB / 459.9 MB, free: 3.777 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.001766/0.5178, allocations: 0.5715 MB / 460.5 MB, free: 3.188 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 1.048e-05/0.5179, allocations: 4 kB / 460.5 MB, free: 3.184 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001098/0.519, allocations: 380 kB / 460.9 MB, free: 2.793 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000461/0.5195, allocations: 40.58 kB / 460.9 MB, free: 2.754 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001186/0.5207, allocations: 414.9 kB / 461.3 MB, free: 2.32 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004209/0.5211, allocations: 0.7755 MB / 462.1 MB, free: 1.516 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.893e-05/0.5212, allocations: 19.44 kB / 462.1 MB, free: 1.5 MB / 347.1 MB Notification: Performance of SimCode: time 1.122e-06/0.5212, allocations: 0 / 462.1 MB, free: 1.5 MB / 347.1 MB Notification: Performance of Templates: time 0.01177/0.533, allocations: 5.241 MB / 467.3 MB, free: 12.28 MB / 363.1 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