Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001594/0.001594, allocations: 118.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001801/0.001801, allocations: 198 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.489/1.489, allocations: 227.7 MB / 247.2 MB, free: 10.18 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002653/0.002653, allocations: 59.91 kB / 358.6 MB, free: 13.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3/0.3026, allocations: 50.54 MB / 409.1 MB, free: 1.332 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.003999/0.3067, allocations: 2.78 MB / 411.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001279/0.308, allocations: 0.705 MB / 412.6 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001286/0.3081, allocations: 4 kB / 412.6 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001479/0.3083, allocations: 47.56 kB / 412.6 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001895/0.3085, allocations: 87.27 kB / 412.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002773/0.3088, allocations: 95.81 kB / 412.8 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004036/0.3092, allocations: 362.5 kB / 413.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001814/0.3094, allocations: 80.7 kB / 413.3 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001783/0.3096, allocations: 135.4 kB / 413.4 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001946/0.3098, allocations: 159.3 kB / 413.5 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.257e-05/0.3098, allocations: 28 kB / 413.6 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.495e-05/0.3099, allocations: 32 kB / 413.6 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.76e-05/0.31, allocations: 51.83 kB / 413.7 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001524/0.3101, allocations: 155.2 kB / 413.8 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003701/0.3105, allocations: 321.8 kB / 414.1 MB, free: 12.3 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.3105, allocations: 0 / 414.1 MB, free: 12.3 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.3105, allocations: 0 / 414.1 MB, free: 12.3 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.015e-05/0.3105, allocations: 0 / 414.1 MB, free: 12.3 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001219/0.3118, allocations: 0.6494 MB / 414.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.3118, allocations: 8.031 kB / 414.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.807e-05/0.3119, allocations: 62.67 kB / 414.8 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.592e-05/0.3119, allocations: 32.75 kB / 414.9 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003938/0.3123, allocations: 283.8 kB / 415.1 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.3124, allocations: 12.81 kB / 415.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.217e-05/0.3124, allocations: 20.38 kB / 415.2 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006333/0.3131, allocations: 285.9 kB / 415.5 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.3131, allocations: 0 / 415.5 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.312e-05/0.3131, allocations: 4 kB / 415.5 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.777e-06/0.3131, allocations: 8 kB / 415.5 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007487/0.3139, allocations: 245.5 kB / 415.7 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001542/0.3154, allocations: 0.9366 MB / 416.6 MB, free: 9.586 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008181/0.3163, allocations: 242.5 kB / 416.9 MB, free: 9.34 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003282/0.3166, allocations: 100.8 kB / 417 MB, free: 9.238 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.605e-05/0.3166, allocations: 224 / 417 MB, free: 9.238 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004852/0.3171, allocations: 191.7 kB / 417.2 MB, free: 9.031 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.203e-06/0.3171, allocations: 0 / 417.2 MB, free: 9.031 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002331/0.3195, allocations: 0.6513 MB / 417.8 MB, free: 8.352 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.644e-05/0.3196, allocations: 106.8 kB / 417.9 MB, free: 8.223 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002955/0.3199, allocations: 266.5 kB / 418.2 MB, free: 7.957 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.59e-05/0.3199, allocations: 33.7 kB / 418.2 MB, free: 7.918 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001312/0.32, allocations: 192 kB / 418.4 MB, free: 7.727 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.554e-05/0.3201, allocations: 39.62 kB / 418.4 MB, free: 7.688 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.529e-05/0.3202, allocations: 49.66 kB / 418.5 MB, free: 7.633 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.3203, allocations: 330.8 kB / 418.8 MB, free: 7.301 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003458/0.3207, allocations: 99.91 kB / 418.9 MB, free: 7.203 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003806/0.3211, allocations: 160.5 kB / 419.1 MB, free: 7.016 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007092/0.3218, allocations: 279.8 kB / 419.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.175e-06/0.3218, allocations: 0 / 419.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001215/0.323, allocations: 435.7 kB / 419.8 MB, free: 6.273 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.958e-05/0.3231, allocations: 33.7 kB / 419.8 MB, free: 6.234 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.3231, allocations: 0 / 419.8 MB, free: 6.234 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000371/0.3235, allocations: 80.8 kB / 419.9 MB, free: 6.152 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001924/0.3237, allocations: 43.94 kB / 419.9 MB, free: 6.109 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002666/0.3264, allocations: 1.951 MB / 421.9 MB, free: 4.016 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003149/0.3267, allocations: 51.94 kB / 421.9 MB, free: 3.965 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.3267, allocations: 8 kB / 421.9 MB, free: 3.957 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001549/0.3269, allocations: 137.8 kB / 422.1 MB, free: 3.812 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.687e-05/0.3269, allocations: 27.8 kB / 422.1 MB, free: 3.785 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.853e-05/0.327, allocations: 25.83 kB / 422.1 MB, free: 3.758 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.327, allocations: 0 / 422.1 MB, free: 3.758 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.327, allocations: 0 / 422.1 MB, free: 3.758 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.421e-06/0.327, allocations: 3.984 kB / 422.1 MB, free: 3.754 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002839/0.3273, allocations: 301.4 kB / 422.4 MB, free: 3.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.3273, allocations: 4 kB / 422.4 MB, free: 3.406 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001389/0.3274, allocations: 28.09 kB / 422.4 MB, free: 3.379 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002763/0.3277, allocations: 76.73 kB / 422.5 MB, free: 3.301 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.3278, allocations: 4 kB / 422.5 MB, free: 3.297 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002326/0.3301, allocations: 1.746 MB / 424.3 MB, free: 1.41 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.3301, allocations: 4.031 kB / 424.3 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/0.3312, allocations: 368.1 kB / 424.6 MB, free: 1.027 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.921e-05/0.3313, allocations: 108.8 kB / 424.7 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.488e-05/0.3313, allocations: 0 / 424.7 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000238/0.3316, allocations: 36.14 kB / 424.8 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.592e-05/0.3317, allocations: 19.97 kB / 424.8 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.767e-05/0.3317, allocations: 8 kB / 424.8 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000196/0.3319, allocations: 197.9 kB / 425 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3319, allocations: 0 / 425 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003775/0.3323, allocations: 71.89 kB / 425.1 MB, free: 0.5781 MB / 334.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001443/0.3337, allocations: 0.894 MB / 426 MB, free: 15.65 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001004/0.3347, allocations: 409.9 kB / 426.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.3348, allocations: 0 / 426.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004666/0.3352, allocations: 233.2 kB / 426.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003057/0.3355, allocations: 46.03 kB / 426.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00507/0.3406, allocations: 2.933 MB / 429.6 MB, free: 11.87 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003601/0.341, allocations: 0.7479 MB / 430.3 MB, free: 11.1 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001148/0.3411, allocations: 22.3 kB / 430.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001261/0.3413, allocations: 79.41 kB / 430.4 MB, free: 11 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3413, allocations: 0 / 430.4 MB, free: 11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03324/0.3745, allocations: 6.373 MB / 436.8 MB, free: 4.844 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.81, allocations: 7.25 kB / 436.8 MB, free: 4.84 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1)