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.Comparator.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.Comparator,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.925/1.925, allocations: 194.8 MB / 211.1 MB, free: 7.598 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000349/0.0003492, allocations: 11.94 kB / 264.1 MB, free: 2.508 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2862/0.2866, allocations: 44.51 MB / 308.6 MB, free: 12.65 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003999/0.2906, allocations: 2.329 MB / 310.9 MB, free: 10.31 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001637/0.2923, allocations: 0.6634 MB / 311.6 MB, free: 9.637 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002445/0.2926, allocations: 8 kB / 311.6 MB, free: 9.629 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001014/0.2927, allocations: 31.75 kB / 311.6 MB, free: 9.598 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003681/0.2931, allocations: 107.6 kB / 311.7 MB, free: 9.492 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002998/0.2934, allocations: 55.88 kB / 311.8 MB, free: 9.438 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000562/0.294, allocations: 243.5 kB / 312 MB, free: 9.199 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002824/0.2943, allocations: 98.33 kB / 312.1 MB, free: 9.102 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002101/0.2945, allocations: 115.5 kB / 312.2 MB, free: 8.988 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002711/0.2948, allocations: 139.4 kB / 312.3 MB, free: 8.852 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.491e-05/0.2949, allocations: 20 kB / 312.4 MB, free: 8.832 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.187e-05/0.2949, allocations: 16 kB / 312.4 MB, free: 8.816 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.165e-05/0.295, allocations: 51.81 kB / 312.4 MB, free: 8.766 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001076/0.2951, allocations: 85.52 kB / 312.5 MB, free: 8.676 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004394/0.2956, allocations: 284.2 kB / 312.8 MB, free: 8.398 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.2956, allocations: 0 / 312.8 MB, free: 8.398 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2956, allocations: 0 / 312.8 MB, free: 8.398 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.2956, allocations: 0 / 312.8 MB, free: 8.398 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001619/0.2973, allocations: 0.6223 MB / 313.4 MB, free: 7.719 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.2973, allocations: 8.031 kB / 313.4 MB, free: 7.711 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001021/0.2974, allocations: 62.53 kB / 313.5 MB, free: 7.641 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.51e-05/0.2975, allocations: 31.62 kB / 313.5 MB, free: 7.609 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004711/0.298, allocations: 274.5 kB / 313.8 MB, free: 7.301 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.037e-05/0.2981, allocations: 20.55 kB / 313.8 MB, free: 7.281 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.371e-05/0.2981, allocations: 24 kB / 313.8 MB, free: 7.258 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009272/0.2991, allocations: 272.8 kB / 314.1 MB, free: 6.984 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.498e-05/0.2991, allocations: 3.938 kB / 314.1 MB, free: 6.98 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.008e-05/0.2992, allocations: 8 kB / 314.1 MB, free: 6.973 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.2992, allocations: 8 kB / 314.1 MB, free: 6.965 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001154/0.3003, allocations: 254.1 kB / 314.4 MB, free: 6.715 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002738/0.3031, allocations: 1.056 MB / 315.4 MB, free: 5.578 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001037/0.3042, allocations: 186.5 kB / 315.6 MB, free: 5.387 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.974e-05/0.3042, allocations: 0 / 315.6 MB, free: 5.387 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005943/0.3048, allocations: 149.2 kB / 315.7 MB, free: 5.223 MB / 250.7 MB Notification: Performance of pre-optimization done (n=10): time 3.937e-06/0.3049, allocations: 0 / 315.7 MB, free: 5.223 MB / 250.7 MB Notification: Performance of matching and sorting (n=10): time 0.001756/0.3066, allocations: 403 kB / 316.1 MB, free: 4.801 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.262e-05/0.3067, allocations: 81.11 kB / 316.2 MB, free: 4.703 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005634/0.3073, allocations: 324.4 kB / 316.5 MB, free: 4.375 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.024e-05/0.3074, allocations: 29.7 kB / 316.6 MB, free: 4.34 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002225/0.3076, allocations: 203.5 kB / 316.8 MB, free: 4.137 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.401e-05/0.3077, allocations: 27.64 kB / 316.8 MB, free: 4.109 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.524e-05/0.3077, allocations: 8 kB / 316.8 MB, free: 4.102 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.3079, allocations: 334.8 kB / 317.1 MB, free: 3.766 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004865/0.3084, allocations: 96.34 kB / 317.2 MB, free: 3.672 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005776/0.3089, allocations: 198.6 kB / 317.4 MB, free: 3.43 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005479/0.3095, allocations: 141.6 kB / 317.5 MB, free: 3.285 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.3095, allocations: 0 / 317.5 MB, free: 3.285 MB / 250.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001441/0.311, allocations: 387.7 kB / 317.9 MB, free: 2.891 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.736e-05/0.3111, allocations: 37.7 kB / 318 MB, free: 2.848 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.3111, allocations: 4 kB / 318 MB, free: 2.844 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002564/0.3114, allocations: 28.78 kB / 318 MB, free: 2.812 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005003/0.3119, allocations: 68.02 kB / 318.1 MB, free: 2.746 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001519/0.3134, allocations: 1.315 MB / 319.4 MB, free: 1.297 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005635/0.314, allocations: 51.66 kB / 319.4 MB, free: 1.246 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.375e-05/0.3141, allocations: 8 kB / 319.4 MB, free: 1.238 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (26): * Single equations (assignments): 24 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002314/0.3143, allocations: 156.7 kB / 319.6 MB, free: 1.078 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.874e-05/0.3144, allocations: 27.72 kB / 319.6 MB, free: 1.051 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.533e-05/0.3145, allocations: 29.84 kB / 319.6 MB, free: 1.02 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.3145, allocations: 0 / 319.6 MB, free: 1.02 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.3145, allocations: 4 kB / 319.6 MB, free: 1.016 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.3145, allocations: 0 / 319.6 MB, free: 1.016 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000655/0.3152, allocations: 447.1 kB / 320.1 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.3152, allocations: 3.938 kB / 320.1 MB, free: 0.5156 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002602/0.3155, allocations: 36.02 kB / 320.1 MB, free: 492 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001952/0.3157, allocations: 24.83 kB / 320.1 MB, free: 464 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.066e-05/0.3157, allocations: 4 kB / 320.2 MB, free: 460 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001393/0.3171, allocations: 1.3 MB / 321.5 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.3171, allocations: 384 / 321.5 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001104/0.3183, allocations: 270.5 kB / 321.7 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001664/0.3184, allocations: 108.8 kB / 321.8 MB, free: 14.6 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.3e-05/0.3185, allocations: 0 / 321.8 MB, free: 14.6 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003765/0.3189, allocations: 27.97 kB / 321.8 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001251/0.3191, allocations: 19.97 kB / 321.9 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.47e-05/0.3191, allocations: 12 kB / 321.9 MB, free: 14.54 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004487/0.3196, allocations: 227 kB / 322.1 MB, free: 14.32 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.41e-07/0.3196, allocations: 0 / 322.1 MB, free: 14.32 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005426/0.3201, allocations: 63.91 kB / 322.2 MB, free: 14.26 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001601/0.3217, allocations: 0.8012 MB / 323 MB, free: 13.42 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0015/0.3233, allocations: 390.7 kB / 323.3 MB, free: 13.02 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.3234, allocations: 0 / 323.3 MB, free: 13.02 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007822/0.3242, allocations: 214.6 kB / 323.6 MB, free: 12.79 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004666/0.3247, allocations: 55.7 kB / 323.6 MB, free: 12.74 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005272/0.3299, allocations: 1.691 MB / 325.3 MB, free: 10.95 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004565/0.3305, allocations: 0.7596 MB / 326.1 MB, free: 10.17 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002644/0.3308, allocations: 34.97 kB / 326.1 MB, free: 10.13 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002174/0.331, allocations: 83.41 kB / 326.2 MB, free: 10.05 MB / 266.7 MB Notification: Performance of SimCode: time 1.173e-06/0.331, allocations: 0 / 326.2 MB, free: 10.05 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0339/0.3649, allocations: 5.234 MB / 331.4 MB, free: 4.859 MB / 266.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000329/0.3653, allocations: 205.2 kB / 331.6 MB, free: 4.617 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.571/2.936, allocations: 3.938 kB / 331.6 MB, free: 4.613 MB / 266.7 MB "" Variables in the reference:time,opAmp.out.v,opAmp.out.i Variables in the result:R,Vin,Vns,Vps,Vref,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,potentiometer.LossPower,potentiometer.R,potentiometer.Rn,potentiometer.Rp,potentiometer.T,potentiometer.T_heatPort,potentiometer.T_ref,potentiometer.alpha,potentiometer.contact.i,potentiometer.contact.v,potentiometer.pin_n.i,potentiometer.pin_n.v,potentiometer.pin_p.i,potentiometer.pin_p.v,potentiometer.rConst.k,potentiometer.rConst.y,potentiometer.rConstant,potentiometer.rInt,potentiometer.useHeatPort,potentiometer.useRinput,supplyVoltage.Vns,supplyVoltage.Vps,supplyVoltage.ground.i,supplyVoltage.ground.v,supplyVoltage.negativeSupply.V,supplyVoltage.negativeSupply.i,supplyVoltage.negativeSupply.n.i,supplyVoltage.negativeSupply.n.v,supplyVoltage.negativeSupply.p.i,supplyVoltage.negativeSupply.p.v,supplyVoltage.negativeSupply.v,supplyVoltage.pin_n.i,supplyVoltage.pin_n.v,supplyVoltage.pin_p.i,supplyVoltage.pin_p.v,supplyVoltage.positiveSupply.V,supplyVoltage.positiveSupply.i,supplyVoltage.positiveSupply.n.i,supplyVoltage.positiveSupply.n.v,supplyVoltage.positiveSupply.p.i,supplyVoltage.positiveSupply.p.v,supplyVoltage.positiveSupply.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