Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.899/1.899, allocations: 194.9 MB / 211.1 MB, free: 8.574 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003465/0.0003466, allocations: 8 kB / 264.1 MB, free: 3.484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2831/0.2835, allocations: 44.51 MB / 308.6 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp): time 0.003724/0.2873, allocations: 2.189 MB / 310.8 MB, free: 10.57 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001498/0.2888, allocations: 0.6402 MB / 311.4 MB, free: 9.922 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001678/0.289, allocations: 4 kB / 311.4 MB, free: 9.918 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 8.046e-05/0.2891, allocations: 27.77 kB / 311.4 MB, free: 9.891 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003333/0.2894, allocations: 107.7 kB / 311.5 MB, free: 9.785 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002618/0.2897, allocations: 51.88 kB / 311.6 MB, free: 9.734 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004093/0.2901, allocations: 219.4 kB / 311.8 MB, free: 9.52 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002179/0.2904, allocations: 61.16 kB / 311.9 MB, free: 9.461 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001884/0.2906, allocations: 103.6 kB / 312 MB, free: 9.359 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000236/0.2908, allocations: 123.5 kB / 312.1 MB, free: 9.238 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.929e-05/0.2909, allocations: 12 kB / 312.1 MB, free: 9.227 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.178e-05/0.291, allocations: 16 kB / 312.1 MB, free: 9.211 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.086e-05/0.291, allocations: 47.81 kB / 312.2 MB, free: 9.164 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.667e-05/0.2911, allocations: 69.52 kB / 312.2 MB, free: 9.09 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003437/0.2915, allocations: 236.3 kB / 312.5 MB, free: 8.859 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.2915, allocations: 0 / 312.5 MB, free: 8.859 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.724e-06/0.2915, allocations: 0 / 312.5 MB, free: 8.859 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.2915, allocations: 0 / 312.5 MB, free: 8.859 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.001457/0.293, allocations: 0.5794 MB / 313 MB, free: 8.223 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.293, allocations: 8.031 kB / 313 MB, free: 8.215 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.933e-05/0.2931, allocations: 54.55 kB / 313.1 MB, free: 8.152 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.958e-05/0.2932, allocations: 27.72 kB / 313.1 MB, free: 8.125 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004142/0.2937, allocations: 267.4 kB / 313.4 MB, free: 7.82 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.552e-05/0.2937, allocations: 12.44 kB / 313.4 MB, free: 7.809 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.287e-05/0.2938, allocations: 28 kB / 313.4 MB, free: 7.781 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008299/0.2946, allocations: 227.2 kB / 313.6 MB, free: 7.551 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/0.2947, allocations: 0 / 313.6 MB, free: 7.551 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.145e-05/0.2947, allocations: 8 kB / 313.7 MB, free: 7.543 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.2947, allocations: 7.938 kB / 313.7 MB, free: 7.535 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001029/0.2958, allocations: 233.5 kB / 313.9 MB, free: 7.309 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002241/0.298, allocations: 0.8542 MB / 314.7 MB, free: 6.383 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001057/0.2991, allocations: 218.6 kB / 315 MB, free: 6.16 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.164e-05/0.2992, allocations: 7.938 kB / 315 MB, free: 6.152 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000652/0.2998, allocations: 173.9 kB / 315.1 MB, free: 5.961 MB / 250.7 MB Notification: Performance of pre-optimization done (n=13): time 2.855e-06/0.2998, allocations: 0 / 315.1 MB, free: 5.961 MB / 250.7 MB Notification: Performance of matching and sorting (n=13): time 0.003178/0.303, allocations: 0.5382 MB / 315.7 MB, free: 5.395 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.825e-05/0.3032, allocations: 102.8 kB / 315.8 MB, free: 5.27 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004656/0.3036, allocations: 264.8 kB / 316 MB, free: 5.004 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.431e-05/0.3037, allocations: 33.69 kB / 316.1 MB, free: 4.965 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/0.3039, allocations: 160 kB / 316.2 MB, free: 4.805 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.29e-05/0.304, allocations: 51.38 kB / 316.3 MB, free: 4.754 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.014e-05/0.304, allocations: 4 kB / 316.3 MB, free: 4.75 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.3041, allocations: 330.8 kB / 316.6 MB, free: 4.418 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004723/0.3046, allocations: 92.12 kB / 316.7 MB, free: 4.328 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005518/0.3052, allocations: 160 kB / 316.8 MB, free: 4.145 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005039/0.3057, allocations: 123.9 kB / 317 MB, free: 4.02 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.3058, allocations: 0 / 317 MB, free: 4.02 MB / 250.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001773/0.3075, allocations: 398.5 kB / 317.4 MB, free: 3.617 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.117e-05/0.3076, allocations: 33.7 kB / 317.4 MB, free: 3.578 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.3076, allocations: 4 kB / 317.4 MB, free: 3.574 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007667/0.3084, allocations: 92.81 kB / 317.5 MB, free: 3.48 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003877/0.3088, allocations: 47.91 kB / 317.5 MB, free: 3.434 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003735/0.3126, allocations: 1.781 MB / 319.3 MB, free: 1.504 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005161/0.3132, allocations: 43.84 kB / 319.4 MB, free: 1.461 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.177e-05/0.3132, allocations: 8 kB / 319.4 MB, free: 1.453 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002049/0.3134, allocations: 137.9 kB / 319.5 MB, free: 1.309 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.187e-05/0.3135, allocations: 23.72 kB / 319.5 MB, free: 1.285 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.318e-05/0.3136, allocations: 26.05 kB / 319.5 MB, free: 1.266 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.698e-06/0.3136, allocations: 4 kB / 319.6 MB, free: 1.262 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.3136, allocations: 3.938 kB / 319.6 MB, free: 1.258 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.3136, allocations: 192 / 319.6 MB, free: 1.258 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003766/0.314, allocations: 289.4 kB / 319.8 MB, free: 0.9258 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.314, allocations: 0 / 319.8 MB, free: 0.9258 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002592/0.3143, allocations: 43.83 kB / 319.9 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007057/0.315, allocations: 96.78 kB / 320 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.093e-05/0.3151, allocations: 0 / 320 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003388/0.3184, allocations: 1.669 MB / 321.6 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.3185, allocations: 0 / 321.6 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001571/0.3201, allocations: 330.1 kB / 322 MB, free: 14.63 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001171/0.3202, allocations: 100.8 kB / 322.1 MB, free: 14.51 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.327e-05/0.3203, allocations: 7.984 kB / 322.1 MB, free: 14.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004009/0.3207, allocations: 35.97 kB / 322.1 MB, free: 14.47 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001139/0.3208, allocations: 23.92 kB / 322.1 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.964e-05/0.3209, allocations: 4 kB / 322.1 MB, free: 14.44 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002744/0.3212, allocations: 180.5 kB / 322.3 MB, free: 14.27 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-07/0.3212, allocations: 3.938 kB / 322.3 MB, free: 14.26 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005109/0.3217, allocations: 63.91 kB / 322.4 MB, free: 14.2 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001958/0.3237, allocations: 0.8747 MB / 323.3 MB, free: 13.29 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001392/0.3251, allocations: 397.8 kB / 323.6 MB, free: 12.88 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.3251, allocations: 0 / 323.6 MB, free: 12.88 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006904/0.3258, allocations: 222.9 kB / 323.9 MB, free: 12.65 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003759/0.3262, allocations: 36.36 kB / 323.9 MB, free: 12.61 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004573/0.3308, allocations: 1.514 MB / 325.4 MB, free: 11.04 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003746/0.3312, allocations: 0.7518 MB / 326.2 MB, free: 10.25 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001923/0.3314, allocations: 25.94 kB / 326.2 MB, free: 10.23 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001691/0.3316, allocations: 67.42 kB / 326.3 MB, free: 10.16 MB / 266.7 MB Notification: Performance of SimCode: time 1.072e-06/0.3316, allocations: 3.938 kB / 326.3 MB, free: 10.16 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03757/0.3692, allocations: 5.301 MB / 331.6 MB, free: 4.895 MB / 266.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003187/0.3696, allocations: 215.7 kB / 331.8 MB, free: 4.652 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.629/2.998, allocations: 4 kB / 331.8 MB, free: 4.648 MB / 266.7 MB "" Variables in the reference:time,opAmp.out.v,opAmp.out.i Variables in the result:R1,R2,Vin,Vns,Vps,f,ground.p.i,ground.p.v,k,opAmp.V0,opAmp.Vns,opAmp.Vps,opAmp.i_s,opAmp.in_n.i,opAmp.in_n.v,opAmp.in_p.i,opAmp.in_p.v,opAmp.out.i,opAmp.out.v,opAmp.p_in,opAmp.p_out,opAmp.p_s,opAmp.useSupply,opAmp.v_in,opAmp.v_out,opAmp.vns,opAmp.vps,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,vIn.V,vIn.falling,vIn.i,vIn.n.i,vIn.n.v,vIn.nperiod,vIn.offset,vIn.p.i,vIn.p.v,vIn.period,vIn.rising,vIn.signalSource.T_falling,vIn.signalSource.T_rising,vIn.signalSource.T_start,vIn.signalSource.T_width,vIn.signalSource.amplitude,vIn.signalSource.count,vIn.signalSource.falling,vIn.signalSource.nperiod,vIn.signalSource.offset,vIn.signalSource.period,vIn.signalSource.rising,vIn.signalSource.startTime,vIn.signalSource.width,vIn.signalSource.y,vIn.startTime,vIn.v,vIn.width,vOut.n.i,vOut.n.v,vOut.p.i,vOut.p.v,vOut.v