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.InvertingSchmittTrigger.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.InvertingSchmittTrigger,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0017/0.0017, allocations: 122.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.001841/0.001841, allocations: 201.2 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.51/1.51, allocations: 227.7 MB / 247.2 MB, free: 10.19 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.002482/0.002482, allocations: 67.89 kB / 358.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2972/0.2997, allocations: 50.55 MB / 409.1 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.003938/0.3037, allocations: 2.776 MB / 411.9 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001322/0.305, allocations: 0.705 MB / 412.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001356/0.3052, allocations: 4 kB / 412.6 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000155/0.3054, allocations: 39.58 kB / 412.6 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001922/0.3056, allocations: 91.25 kB / 412.7 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002908/0.3059, allocations: 99.8 kB / 412.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004138/0.3063, allocations: 354.5 kB / 413.2 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001967/0.3065, allocations: 88.69 kB / 413.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001703/0.3067, allocations: 131.4 kB / 413.4 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002057/0.3069, allocations: 151.3 kB / 413.5 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.407e-05/0.3069, allocations: 32 kB / 413.6 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.24e-05/0.307, allocations: 28 kB / 413.6 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.446e-05/0.3071, allocations: 59.83 kB / 413.7 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001626/0.3072, allocations: 159.2 kB / 413.8 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003979/0.3077, allocations: 317.8 kB / 414.1 MB, free: 12.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.3077, allocations: 7.922 kB / 414.1 MB, free: 12.31 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.659e-06/0.3077, allocations: 4 kB / 414.1 MB, free: 12.31 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.602e-06/0.3077, allocations: 0 / 414.1 MB, free: 12.31 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.0012/0.3089, allocations: 0.6532 MB / 414.8 MB, free: 11.6 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.3089, allocations: 8.031 kB / 414.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.557e-05/0.309, allocations: 54.73 kB / 414.8 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.42e-05/0.3091, allocations: 32.75 kB / 414.9 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004264/0.3095, allocations: 275.8 kB / 415.1 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.589e-05/0.3096, allocations: 24.81 kB / 415.2 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.586e-05/0.3096, allocations: 20.36 kB / 415.2 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006163/0.3102, allocations: 273.9 kB / 415.5 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.128e-06/0.3102, allocations: 0 / 415.5 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.971e-05/0.3103, allocations: 15.98 kB / 415.5 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/0.3103, allocations: 11.94 kB / 415.5 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007296/0.311, allocations: 237.6 kB / 415.7 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001546/0.3126, allocations: 0.9406 MB / 416.7 MB, free: 9.598 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008098/0.3134, allocations: 238.5 kB / 416.9 MB, free: 9.355 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003369/0.3138, allocations: 104.8 kB / 417 MB, free: 9.25 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.701e-05/0.3138, allocations: 4.219 kB / 417 MB, free: 9.246 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004646/0.3143, allocations: 180.9 kB / 417.2 MB, free: 9.051 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.453e-06/0.3143, allocations: 0 / 417.2 MB, free: 9.051 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002284/0.3166, allocations: 0.6552 MB / 417.8 MB, free: 8.367 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.695e-05/0.3166, allocations: 102.8 kB / 417.9 MB, free: 8.242 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003017/0.317, allocations: 290.4 kB / 418.2 MB, free: 7.953 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.487e-05/0.317, allocations: 25.7 kB / 418.2 MB, free: 7.922 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.3171, allocations: 184.1 kB / 418.4 MB, free: 7.738 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.167e-05/0.3172, allocations: 39.67 kB / 418.5 MB, free: 7.699 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.901e-05/0.3173, allocations: 53.66 kB / 418.5 MB, free: 7.641 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.3174, allocations: 334.8 kB / 418.8 MB, free: 7.305 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003512/0.3178, allocations: 103.9 kB / 418.9 MB, free: 7.203 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003906/0.3182, allocations: 178.2 kB / 419.1 MB, free: 6.992 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006952/0.3189, allocations: 285 kB / 419.4 MB, free: 6.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.3189, allocations: 0 / 419.4 MB, free: 6.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001264/0.3202, allocations: 451.7 kB / 419.8 MB, free: 6.223 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.368e-05/0.3202, allocations: 37.69 kB / 419.9 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.3202, allocations: 0 / 419.9 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003825/0.3206, allocations: 80.8 kB / 419.9 MB, free: 6.098 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001955/0.3208, allocations: 43.97 kB / 420 MB, free: 6.055 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002915/0.3237, allocations: 2.009 MB / 422 MB, free: 3.902 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000334/0.3241, allocations: 43.86 kB / 422 MB, free: 3.859 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.245e-05/0.3241, allocations: 12.05 kB / 422.1 MB, free: 3.848 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (21): * Single equations (assignments): 19 * 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.0001599/0.3243, allocations: 144.7 kB / 422.2 MB, free: 3.699 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.262e-05/0.3243, allocations: 39.72 kB / 422.2 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.674e-05/0.3244, allocations: 25.84 kB / 422.3 MB, free: 3.633 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.3244, allocations: 0 / 422.3 MB, free: 3.633 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.3244, allocations: 3.984 kB / 422.3 MB, free: 3.629 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.3244, allocations: 0 / 422.3 MB, free: 3.629 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002846/0.3247, allocations: 293.4 kB / 422.5 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.3247, allocations: 0 / 422.5 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001405/0.3249, allocations: 27.91 kB / 422.6 MB, free: 3.266 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002728/0.3251, allocations: 80.73 kB / 422.7 MB, free: 3.184 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.46e-05/0.3252, allocations: 3.938 kB / 422.7 MB, free: 3.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002452/0.3276, allocations: 1.92 MB / 424.6 MB, free: 1.121 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.3277, allocations: 8.047 kB / 424.6 MB, free: 1.113 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001069/0.3287, allocations: 357.5 kB / 424.9 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.42e-05/0.3288, allocations: 101 kB / 425 MB, free: 0.625 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.545e-05/0.3289, allocations: 4 kB / 425 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002442/0.3291, allocations: 39.95 kB / 425.1 MB, free: 0.582 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.362e-05/0.3292, allocations: 15.98 kB / 425.1 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.3292, allocations: 3.984 kB / 425.1 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001969/0.3294, allocations: 194 kB / 425.3 MB, free: 384 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3294, allocations: 0 / 425.3 MB, free: 384 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003928/0.3298, allocations: 71.89 kB / 425.4 MB, free: 312 kB / 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.001421/0.3313, allocations: 0.8928 MB / 426.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001327/0.3326, allocations: 489.8 kB / 426.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3326, allocations: 0 / 426.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004976/0.3331, allocations: 238.9 kB / 427 MB, free: 14.63 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003285/0.3335, allocations: 52.53 kB / 427 MB, free: 14.58 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007221/0.3407, allocations: 3.429 MB / 430.4 MB, free: 11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003587/0.3411, allocations: 0.7518 MB / 431.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000117/0.3412, allocations: 18.3 kB / 431.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000121/0.3414, allocations: 75.41 kB / 431.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3414, allocations: 0 / 431.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03223/0.3736, allocations: 6.379 MB / 437.7 MB, free: 3.977 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/12.04, allocations: 3.875 kB / 437.7 MB, free: 3.977 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_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_InvertingSchmittTrigger.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1)