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.SchmittTrigger.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.SchmittTrigger,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.021/2.021, allocations: 194.9 MB / 211.1 MB, free: 8.543 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004798/0.00048, allocations: 8 kB / 264.1 MB, free: 3.453 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2928/0.2934, allocations: 44.51 MB / 308.6 MB, free: 12.74 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.003689/0.2971, allocations: 2.197 MB / 310.8 MB, free: 10.54 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001571/0.2987, allocations: 0.6441 MB / 311.4 MB, free: 9.883 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001534/0.2989, allocations: 4 kB / 311.4 MB, free: 9.879 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 8.245e-05/0.299, allocations: 31.75 kB / 311.5 MB, free: 9.848 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003234/0.2993, allocations: 95.72 kB / 311.5 MB, free: 9.754 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002635/0.2996, allocations: 55.8 kB / 311.6 MB, free: 9.699 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004057/0.3, allocations: 219.4 kB / 311.8 MB, free: 9.484 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002025/0.3003, allocations: 69.14 kB / 311.9 MB, free: 9.418 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001819/0.3005, allocations: 103.6 kB / 312 MB, free: 9.316 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002404/0.3007, allocations: 127.4 kB / 312.1 MB, free: 9.191 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.232e-05/0.3008, allocations: 16 kB / 312.1 MB, free: 9.176 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.127e-05/0.3009, allocations: 12 kB / 312.1 MB, free: 9.164 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.952e-05/0.3009, allocations: 47.81 kB / 312.2 MB, free: 9.117 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.142e-05/0.301, allocations: 69.58 kB / 312.3 MB, free: 9.043 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003376/0.3014, allocations: 228.3 kB / 312.5 MB, free: 8.82 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.3014, allocations: 0 / 312.5 MB, free: 8.82 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3014, allocations: 0 / 312.5 MB, free: 8.82 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.679e-06/0.3014, allocations: 4 kB / 312.5 MB, free: 8.816 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.001484/0.3029, allocations: 0.5833 MB / 313.1 MB, free: 8.176 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.303, allocations: 8.031 kB / 313.1 MB, free: 8.168 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.683e-05/0.3031, allocations: 58.53 kB / 313.1 MB, free: 8.102 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.489e-05/0.3032, allocations: 27.72 kB / 313.2 MB, free: 8.074 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004331/0.3036, allocations: 266.5 kB / 313.4 MB, free: 7.773 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.628e-05/0.3037, allocations: 12.44 kB / 313.4 MB, free: 7.762 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.598e-05/0.3037, allocations: 24 kB / 313.5 MB, free: 7.738 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008584/0.3046, allocations: 231.2 kB / 313.7 MB, free: 7.504 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.3046, allocations: 0 / 313.7 MB, free: 7.504 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.723e-05/0.3047, allocations: 11.94 kB / 313.7 MB, free: 7.492 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.988e-06/0.3047, allocations: 4 kB / 313.7 MB, free: 7.488 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001057/0.3058, allocations: 229.6 kB / 313.9 MB, free: 7.266 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002308/0.3081, allocations: 0.8659 MB / 314.8 MB, free: 6.328 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001069/0.3092, allocations: 218.5 kB / 315 MB, free: 6.105 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.005e-05/0.3092, allocations: 4 kB / 315 MB, free: 6.102 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006739/0.3099, allocations: 173.8 kB / 315.2 MB, free: 5.91 MB / 250.7 MB Notification: Performance of pre-optimization done (n=13): time 2.976e-06/0.3099, allocations: 0 / 315.2 MB, free: 5.91 MB / 250.7 MB Notification: Performance of matching and sorting (n=13): time 0.003345/0.3133, allocations: 0.5537 MB / 315.7 MB, free: 5.328 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.891e-05/0.3134, allocations: 114.8 kB / 315.8 MB, free: 5.191 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004022/0.3138, allocations: 253 kB / 316.1 MB, free: 4.938 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.143e-05/0.3139, allocations: 33.7 kB / 316.1 MB, free: 4.898 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001574/0.3141, allocations: 167.9 kB / 316.3 MB, free: 4.73 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.238e-05/0.3141, allocations: 43.45 kB / 316.3 MB, free: 4.688 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.67e-05/0.3142, allocations: 0 / 316.3 MB, free: 4.688 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.3143, allocations: 334.8 kB / 316.6 MB, free: 4.352 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004711/0.3148, allocations: 92.12 kB / 316.7 MB, free: 4.262 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005465/0.3154, allocations: 152 kB / 316.9 MB, free: 4.086 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005237/0.3159, allocations: 133.5 kB / 317 MB, free: 3.949 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-06/0.3159, allocations: 0 / 317 MB, free: 3.949 MB / 250.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001847/0.3178, allocations: 399.7 kB / 317.4 MB, free: 3.543 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.138e-05/0.3179, allocations: 35.27 kB / 317.4 MB, free: 3.504 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.3179, allocations: 0 / 317.4 MB, free: 3.504 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008312/0.3187, allocations: 96.81 kB / 317.5 MB, free: 3.406 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003518/0.3191, allocations: 43.97 kB / 317.6 MB, free: 3.363 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00405/0.3232, allocations: 1.793 MB / 319.4 MB, free: 1.422 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005431/0.3237, allocations: 51.78 kB / 319.4 MB, free: 1.371 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.18e-05/0.3238, allocations: 8 kB / 319.4 MB, free: 1.363 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.0002196/0.324, allocations: 145.9 kB / 319.6 MB, free: 1.211 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.666e-05/0.3241, allocations: 19.81 kB / 319.6 MB, free: 1.191 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.273e-05/0.3242, allocations: 21.78 kB / 319.6 MB, free: 1.176 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.3242, allocations: 0 / 319.6 MB, free: 1.176 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.3242, allocations: 4 kB / 319.6 MB, free: 1.172 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/0.3242, allocations: 3.984 kB / 319.6 MB, free: 1.168 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003991/0.3246, allocations: 293.3 kB / 319.9 MB, free: 0.832 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.3246, allocations: 3.984 kB / 319.9 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002496/0.3249, allocations: 23.98 kB / 319.9 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007296/0.3256, allocations: 92.78 kB / 320 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.481e-05/0.3257, allocations: 11.98 kB / 320 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00344/0.3291, allocations: 1.665 MB / 321.7 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.3292, allocations: 3.984 kB / 321.7 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001643/0.3308, allocations: 337.5 kB / 322 MB, free: 14.54 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001045/0.3309, allocations: 92.86 kB / 322.1 MB, free: 14.43 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.807e-05/0.331, allocations: 12 kB / 322.1 MB, free: 14.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003946/0.3314, allocations: 27.97 kB / 322.2 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000112/0.3315, allocations: 27.91 kB / 322.2 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.044e-05/0.3316, allocations: 4 kB / 322.2 MB, free: 14.36 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002751/0.3319, allocations: 184.4 kB / 322.4 MB, free: 14.18 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.3319, allocations: 4 kB / 322.4 MB, free: 14.17 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005104/0.3324, allocations: 75.84 kB / 322.5 MB, free: 14.1 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.002042/0.3344, allocations: 0.8751 MB / 323.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001371/0.3358, allocations: 386.2 kB / 323.7 MB, free: 12.79 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.3359, allocations: 4.062 kB / 323.7 MB, free: 12.79 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006788/0.3366, allocations: 234.5 kB / 323.9 MB, free: 12.54 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003793/0.337, allocations: 36.42 kB / 324 MB, free: 12.51 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004669/0.3416, allocations: 1.522 MB / 325.5 MB, free: 10.92 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003968/0.3421, allocations: 0.7557 MB / 326.3 MB, free: 10.13 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000211/0.3423, allocations: 21.94 kB / 326.3 MB, free: 10.11 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001713/0.3425, allocations: 71.42 kB / 326.3 MB, free: 10.04 MB / 266.7 MB Notification: Performance of SimCode: time 9.82e-07/0.3425, allocations: 0 / 326.3 MB, free: 10.04 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03061/0.3731, allocations: 5.331 MB / 331.7 MB, free: 4.75 MB / 266.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003261/0.3735, allocations: 217.9 kB / 331.9 MB, free: 4.508 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.426/2.799, allocations: 4 kB / 331.9 MB, free: 4.504 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,vHys,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