Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.887/1.887, allocations: 194.8 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003715/0.0003715, allocations: 12 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1052, allocations: 44.51 MB / 309 MB, free: 1.043 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4226/0.5278, allocations: 73.22 MB / 382.2 MB, free: 14.88 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003174/0.5282, allocations: 85.78 kB / 382.3 MB, free: 14.88 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01846/0.5467, allocations: 4.382 MB / 386.7 MB, free: 14.27 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.185e-06/0.5468, allocations: 4 kB / 386.7 MB, free: 14.27 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.442e-05/0.5468, allocations: 5.188 kB / 386.7 MB, free: 14.27 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.001027/0.5478, allocations: 0.5422 MB / 387.2 MB, free: 13.83 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/0.5479, allocations: 11.22 kB / 387.2 MB, free: 13.83 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001286/0.548, allocations: 41.22 kB / 387.3 MB, free: 13.81 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004443/0.5485, allocations: 253.8 kB / 387.5 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.969e-05/0.5485, allocations: 22.97 kB / 387.5 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.708e-05/0.5486, allocations: 31.09 kB / 387.6 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006776/0.5493, allocations: 255.4 kB / 387.8 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.5493, allocations: 0 / 387.8 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.579e-05/0.5494, allocations: 14.25 kB / 387.8 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.757e-05/0.5494, allocations: 6.625 kB / 387.8 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005535/0.55, allocations: 205 kB / 388 MB, free: 13.54 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002719/0.5527, allocations: 1.122 MB / 389.2 MB, free: 12.99 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006956/0.5535, allocations: 201.3 kB / 389.4 MB, free: 12.96 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.635e-05/0.5535, allocations: 10.41 kB / 389.4 MB, free: 12.96 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/0.5536, allocations: 37.06 kB / 389.4 MB, free: 12.92 MB / 314.7 MB Notification: Performance of pre-optimization done (n=19): time 2.655e-06/0.5536, allocations: 0 / 389.4 MB, free: 12.92 MB / 314.7 MB Notification: Performance of matching and sorting (n=19): time 0.003489/0.5571, allocations: 0.6777 MB / 390.1 MB, free: 12.64 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.405e-05/0.5571, allocations: 51.41 kB / 390.1 MB, free: 12.58 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003569/0.5575, allocations: 257.7 kB / 390.4 MB, free: 12.47 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.77e-05/0.5576, allocations: 28.89 kB / 390.4 MB, free: 12.44 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001088/0.5577, allocations: 261.2 kB / 390.7 MB, free: 12.23 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.517e-05/0.5578, allocations: 71.66 kB / 390.7 MB, free: 12.18 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.651e-05/0.5578, allocations: 3.375 kB / 390.7 MB, free: 12.18 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.787e-05/0.5579, allocations: 324.5 kB / 391.1 MB, free: 11.87 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001582/0.558, allocations: 55.19 kB / 391.1 MB, free: 11.87 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002324/0.5583, allocations: 154.3 kB / 391.3 MB, free: 11.76 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002242/0.5585, allocations: 79 kB / 391.3 MB, free: 11.75 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.5585, allocations: 1.25 kB / 391.3 MB, free: 11.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00168/0.5602, allocations: 410 kB / 391.7 MB, free: 11.66 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.438e-05/0.5603, allocations: 4.562 kB / 391.8 MB, free: 11.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.5603, allocations: 3.969 kB / 391.8 MB, free: 11.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001363/0.5617, allocations: 173.6 kB / 391.9 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003786/0.5621, allocations: 56.31 kB / 392 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005941/0.568, allocations: 3.273 MB / 395.3 MB, free: 8.918 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004271/0.5685, allocations: 30.41 kB / 395.3 MB, free: 8.902 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.219e-05/0.5686, allocations: 19.08 kB / 395.3 MB, free: 8.898 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.0002247/0.5688, allocations: 142.4 kB / 395.4 MB, free: 8.777 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.375e-05/0.5689, allocations: 23.47 kB / 395.5 MB, free: 8.766 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.874e-05/0.569, allocations: 31.12 kB / 395.5 MB, free: 8.762 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-06/0.569, allocations: 7.938 kB / 395.5 MB, free: 8.754 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.569, allocations: 0 / 395.5 MB, free: 8.754 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.569, allocations: 3.906 kB / 395.5 MB, free: 8.754 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004417/0.5694, allocations: 317.4 kB / 395.8 MB, free: 8.559 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.5695, allocations: 192 / 395.8 MB, free: 8.559 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002597/0.5697, allocations: 32.27 kB / 395.8 MB, free: 8.551 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001322/0.5711, allocations: 171 kB / 396 MB, free: 8.527 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.188e-05/0.5711, allocations: 3.906 kB / 396 MB, free: 8.527 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005472/0.5766, allocations: 3.156 MB / 399.2 MB, free: 5.902 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.5767, allocations: 0 / 399.2 MB, free: 5.902 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001654/0.5783, allocations: 483.1 kB / 399.6 MB, free: 5.723 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001357/0.5785, allocations: 104.9 kB / 399.7 MB, free: 5.613 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.627e-05/0.5786, allocations: 3.438 kB / 399.8 MB, free: 5.613 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002943/0.5789, allocations: 21.95 kB / 399.8 MB, free: 5.609 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.705e-05/0.579, allocations: 13.47 kB / 399.8 MB, free: 5.609 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.1e-05/0.579, allocations: 10.89 kB / 399.8 MB, free: 5.605 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002287/0.5792, allocations: 179.9 kB / 400 MB, free: 5.523 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.5792, allocations: 3.938 kB / 400 MB, free: 5.52 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006324/0.5799, allocations: 93.56 kB / 400.1 MB, free: 5.508 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.0001657/0.5801, allocations: 109.2 kB / 400.2 MB, free: 5.414 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000816/0.5809, allocations: 409.6 kB / 400.6 MB, free: 5.176 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.5809, allocations: 0.75 kB / 400.6 MB, free: 5.176 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000389/0.5813, allocations: 322.1 kB / 400.9 MB, free: 4.945 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00042/0.5818, allocations: 31.64 kB / 400.9 MB, free: 4.941 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001322/0.5831, allocations: 0.6771 MB / 401.6 MB, free: 4.516 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005427/0.5837, allocations: 0.7766 MB / 402.4 MB, free: 19.8 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000106/0.5838, allocations: 22.69 kB / 402.4 MB, free: 19.8 MB / 330.7 MB Notification: Performance of SimCode: time 1.222e-06/0.5838, allocations: 3.938 kB / 402.4 MB, free: 19.8 MB / 330.7 MB Notification: Performance of Templates: time 0.009783/0.5936, allocations: 5.069 MB / 407.5 MB, free: 19.57 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