Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator") Notification: Performance of loadModel(Modelica): time 1.843/1.843, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000356/0.0003562, allocations: 8 kB / 264 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07843/0.0788, allocations: 44.5 MB / 308.5 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3213/0.4002, allocations: 73.22 MB / 381.7 MB, free: 18.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/0.4005, allocations: 82.42 kB / 381.8 MB, free: 18.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01538/0.4159, allocations: 4.392 MB / 386.2 MB, free: 18.24 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.573e-06/0.4159, allocations: 0 / 386.2 MB, free: 18.24 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.193e-05/0.4159, allocations: 6.281 kB / 386.2 MB, free: 18.24 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.0007237/0.4167, allocations: 0.5405 MB / 386.7 MB, free: 17.8 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.4167, allocations: 9.812 kB / 386.7 MB, free: 17.8 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.481e-05/0.4168, allocations: 33.66 kB / 386.7 MB, free: 17.78 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003063/0.4171, allocations: 262.5 kB / 387 MB, free: 17.56 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.288e-05/0.4172, allocations: 19.72 kB / 387 MB, free: 17.56 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.759e-05/0.4172, allocations: 29.19 kB / 387 MB, free: 17.56 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005105/0.4178, allocations: 258.3 kB / 387.3 MB, free: 17.52 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.4178, allocations: 2.734 kB / 387.3 MB, free: 17.52 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.849e-05/0.4178, allocations: 13.62 kB / 387.3 MB, free: 17.52 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/0.4179, allocations: 10.66 kB / 387.3 MB, free: 17.51 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004479/0.4183, allocations: 202.9 kB / 387.5 MB, free: 17.51 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001933/0.4203, allocations: 1.121 MB / 388.6 MB, free: 16.96 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005318/0.4208, allocations: 201.6 kB / 388.8 MB, free: 16.93 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.648e-05/0.4209, allocations: 5.641 kB / 388.8 MB, free: 16.93 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.308e-05/0.4209, allocations: 43.73 kB / 388.9 MB, free: 16.89 MB / 314.7 MB Notification: Performance of pre-optimization done (n=19): time 2.428e-06/0.4209, allocations: 0 / 388.9 MB, free: 16.89 MB / 314.7 MB Notification: Performance of matching and sorting (n=19): time 0.002161/0.4231, allocations: 0.6604 MB / 389.6 MB, free: 16.62 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.246e-05/0.4231, allocations: 64.64 kB / 389.6 MB, free: 16.55 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002774/0.4234, allocations: 230.9 kB / 389.8 MB, free: 16.45 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.656e-05/0.4235, allocations: 31.08 kB / 389.9 MB, free: 16.42 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.039e-05/0.4236, allocations: 255.2 kB / 390.1 MB, free: 16.21 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.337e-05/0.4236, allocations: 64.64 kB / 390.2 MB, free: 16.17 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.53e-05/0.4237, allocations: 5.25 kB / 390.2 MB, free: 16.17 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.439e-05/0.4237, allocations: 328 kB / 390.5 MB, free: 15.86 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001383/0.4239, allocations: 63.2 kB / 390.6 MB, free: 15.86 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001681/0.4241, allocations: 148.5 kB / 390.7 MB, free: 15.74 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001729/0.4242, allocations: 82.39 kB / 390.8 MB, free: 15.74 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.479e-06/0.4243, allocations: 3.938 kB / 390.8 MB, free: 15.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001225/0.4255, allocations: 407.2 kB / 391.2 MB, free: 15.65 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.4255, allocations: 3.75 kB / 391.2 MB, free: 15.65 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.819e-06/0.4255, allocations: 3.938 kB / 391.2 MB, free: 15.65 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000836/0.4264, allocations: 172.8 kB / 391.4 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002405/0.4267, allocations: 52.47 kB / 391.4 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004467/0.4311, allocations: 3.283 MB / 394.7 MB, free: 12.9 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002774/0.4314, allocations: 30.81 kB / 394.7 MB, free: 12.89 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.5e-05/0.4315, allocations: 15.38 kB / 394.8 MB, free: 12.88 MB / 314.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 28 * 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 4,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000164/0.4317, allocations: 140.2 kB / 394.9 MB, free: 12.77 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.751e-05/0.4317, allocations: 27.19 kB / 394.9 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.316e-05/0.4318, allocations: 25.62 kB / 394.9 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.645e-06/0.4318, allocations: 7.875 kB / 394.9 MB, free: 12.74 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.173e-06/0.4318, allocations: 4.062 kB / 395 MB, free: 12.74 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.797e-06/0.4318, allocations: 6.344 kB / 395 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003746/0.4322, allocations: 316 kB / 395.3 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.4322, allocations: 3.938 kB / 395.3 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001972/0.4325, allocations: 25.7 kB / 395.3 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009094/0.4334, allocations: 168.2 kB / 395.5 MB, free: 12.51 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.904e-05/0.4334, allocations: 7.844 kB / 395.5 MB, free: 12.51 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004213/0.4376, allocations: 3.166 MB / 398.6 MB, free: 9.875 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.4377, allocations: 0 / 398.6 MB, free: 9.875 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00121/0.4389, allocations: 475.3 kB / 399.1 MB, free: 9.699 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.72e-05/0.439, allocations: 102.3 kB / 399.2 MB, free: 9.59 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.37e-05/0.439, allocations: 3.938 kB / 399.2 MB, free: 9.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002529/0.4393, allocations: 17.16 kB / 399.2 MB, free: 9.59 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.035e-05/0.4394, allocations: 15.11 kB / 399.2 MB, free: 9.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.811e-05/0.4394, allocations: 7.812 kB / 399.2 MB, free: 9.59 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001968/0.4396, allocations: 175.9 kB / 399.4 MB, free: 9.508 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.58e-07/0.4396, allocations: 4.062 kB / 399.4 MB, free: 9.504 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005999/0.4402, allocations: 95.72 kB / 399.5 MB, free: 9.492 MB / 314.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * 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 4,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001287/0.4404, allocations: 116.1 kB / 399.6 MB, free: 9.395 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006145/0.441, allocations: 416.9 kB / 400 MB, free: 9.156 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.542e-06/0.441, allocations: 0 / 400 MB, free: 9.156 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003385/0.4414, allocations: 312.7 kB / 400.3 MB, free: 8.93 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003364/0.4417, allocations: 33.25 kB / 400.4 MB, free: 8.93 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009992/0.4427, allocations: 0.6796 MB / 401 MB, free: 8.496 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005825/0.4433, allocations: 0.7764 MB / 401.8 MB, free: 23.78 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.126e-05/0.4434, allocations: 19.06 kB / 401.8 MB, free: 23.78 MB / 330.7 MB Notification: Performance of SimCode: time 1.303e-06/0.4434, allocations: 3.844 kB / 401.8 MB, free: 23.78 MB / 330.7 MB Notification: Performance of Templates: time 0.00717/0.4506, allocations: 5.07 MB / 406.9 MB, free: 23.56 MB / 330.7 MB "" 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.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.useSupply,opAmp1.v_in,opAmp1.v_out,opAmp1.vns,opAmp1.vps,opAmp2.V0,opAmp2.Vns,opAmp2.Vps,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.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.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.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.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