Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001281/0.001281, allocations: 106.5 kB / 17.06 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001258/0.001258, allocations: 200 kB / 18.01 MB, free: 5.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 51.92 kB / 350.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2636/0.265, allocations: 49.44 MB / 400.3 MB, free: 8.383 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.004377/0.2694, allocations: 2.758 MB / 403 MB, free: 6.016 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001435/0.2709, allocations: 0.67 MB / 403.7 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001582/0.2711, allocations: 8 kB / 403.7 MB, free: 5.332 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001917/0.2713, allocations: 43.58 kB / 403.8 MB, free: 5.289 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002075/0.2715, allocations: 87.25 kB / 403.8 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003026/0.2718, allocations: 91.81 kB / 403.9 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004506/0.2723, allocations: 362.5 kB / 404.3 MB, free: 4.758 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002136/0.2725, allocations: 84.7 kB / 404.4 MB, free: 4.672 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000206/0.2727, allocations: 131.4 kB / 404.5 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002097/0.2729, allocations: 151.3 kB / 404.6 MB, free: 4.395 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.429e-05/0.273, allocations: 28 kB / 404.7 MB, free: 4.367 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.879e-05/0.2731, allocations: 28 kB / 404.7 MB, free: 4.34 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.381e-05/0.2732, allocations: 67.73 kB / 404.8 MB, free: 4.273 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001596/0.2733, allocations: 147.3 kB / 404.9 MB, free: 4.129 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000433/0.2738, allocations: 321.8 kB / 405.2 MB, free: 3.816 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.2738, allocations: 0 / 405.2 MB, free: 3.816 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2738, allocations: 0 / 405.2 MB, free: 3.816 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.2738, allocations: 4 kB / 405.2 MB, free: 3.812 MB / 318.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.001377/0.2752, allocations: 0.6532 MB / 405.9 MB, free: 3.105 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.418e-05/0.2753, allocations: 11.89 kB / 405.9 MB, free: 3.094 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.483e-05/0.2753, allocations: 54.73 kB / 405.9 MB, free: 3.031 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.304e-05/0.2754, allocations: 40.67 kB / 406 MB, free: 2.992 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004682/0.2759, allocations: 279.9 kB / 406.3 MB, free: 2.68 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.769e-05/0.2759, allocations: 12.81 kB / 406.3 MB, free: 2.668 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.875e-05/0.276, allocations: 20.38 kB / 406.3 MB, free: 2.648 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006574/0.2766, allocations: 281.9 kB / 406.6 MB, free: 2.359 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.2766, allocations: 0 / 406.6 MB, free: 2.359 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.458e-05/0.2767, allocations: 4 kB / 406.6 MB, free: 2.355 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.2767, allocations: 8 kB / 406.6 MB, free: 2.348 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007461/0.2774, allocations: 245.5 kB / 406.8 MB, free: 2.105 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001784/0.2792, allocations: 0.9405 MB / 407.8 MB, free: 1.094 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008571/0.2801, allocations: 250.5 kB / 408 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003328/0.2805, allocations: 96.78 kB / 408.1 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.431e-05/0.2805, allocations: 0 / 408.1 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004867/0.281, allocations: 181.8 kB / 408.3 MB, free: 0.543 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.383e-06/0.281, allocations: 4 kB / 408.3 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.002399/0.2834, allocations: 0.6546 MB / 408.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.397e-05/0.2835, allocations: 110.8 kB / 409 MB, free: 15.73 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003147/0.2838, allocations: 270.5 kB / 409.3 MB, free: 15.46 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.213e-05/0.2839, allocations: 33.92 kB / 409.3 MB, free: 15.42 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001515/0.284, allocations: 180.1 kB / 409.5 MB, free: 15.24 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.412e-05/0.2841, allocations: 55.58 kB / 409.6 MB, free: 15.18 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.249e-05/0.2842, allocations: 45.7 kB / 409.6 MB, free: 15.13 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.2843, allocations: 334.8 kB / 409.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003536/0.2847, allocations: 99.92 kB / 410 MB, free: 14.7 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004029/0.2851, allocations: 182.2 kB / 410.2 MB, free: 14.48 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007022/0.2858, allocations: 280.7 kB / 410.5 MB, free: 14.17 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.2858, allocations: 0 / 410.5 MB, free: 14.17 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001219/0.2871, allocations: 447.7 kB / 410.9 MB, free: 13.72 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.191e-05/0.2871, allocations: 37.7 kB / 411 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.2871, allocations: 11.92 kB / 411 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004159/0.2876, allocations: 72.88 kB / 411 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002078/0.2878, allocations: 51.89 kB / 411.1 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003194/0.291, allocations: 2.001 MB / 413.1 MB, free: 11.4 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003474/0.2913, allocations: 55.86 kB / 413.2 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.562e-05/0.2914, allocations: 8 kB / 413.2 MB, free: 11.34 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.0001889/0.2916, allocations: 147.4 kB / 413.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.997e-05/0.2916, allocations: 23.8 kB / 413.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.054e-05/0.2917, allocations: 25.83 kB / 413.4 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.2917, allocations: 0 / 413.4 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.87e-06/0.2917, allocations: 8 kB / 413.4 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.2917, allocations: 4.031 kB / 413.4 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003473/0.2921, allocations: 293.5 kB / 413.7 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.2921, allocations: 0 / 413.7 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001297/0.2922, allocations: 19.98 kB / 413.7 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002807/0.2925, allocations: 84.67 kB / 413.8 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.77e-05/0.2925, allocations: 8.109 kB / 413.8 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002561/0.2951, allocations: 1.923 MB / 415.7 MB, free: 8.609 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2951, allocations: 0 / 415.7 MB, free: 8.609 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001063/0.2962, allocations: 357.5 kB / 416 MB, free: 8.238 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.259e-05/0.2963, allocations: 96.97 kB / 416.1 MB, free: 8.125 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.913e-05/0.2963, allocations: 7.984 kB / 416.1 MB, free: 8.117 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002413/0.2966, allocations: 31.97 kB / 416.2 MB, free: 8.086 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.908e-05/0.2967, allocations: 23.97 kB / 416.2 MB, free: 8.062 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.699e-05/0.2967, allocations: 11.94 kB / 416.2 MB, free: 8.051 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00023/0.2969, allocations: 194 kB / 416.4 MB, free: 7.859 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2969, allocations: 0 / 416.4 MB, free: 7.859 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003974/0.2973, allocations: 71.89 kB / 416.5 MB, free: 7.789 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.00151/0.2989, allocations: 0.8968 MB / 417.4 MB, free: 6.859 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001336/0.3002, allocations: 487.7 kB / 417.8 MB, free: 6.359 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.3002, allocations: 0 / 417.8 MB, free: 6.359 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000495/0.3007, allocations: 235 kB / 418.1 MB, free: 6.117 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003281/0.3011, allocations: 56.53 kB / 418.1 MB, free: 6.062 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007282/0.3084, allocations: 3.424 MB / 421.5 MB, free: 2.492 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003947/0.3088, allocations: 0.748 MB / 422.3 MB, free: 1.719 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001097/0.3089, allocations: 30.31 kB / 422.3 MB, free: 1.691 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/0.309, allocations: 75.41 kB / 422.4 MB, free: 1.617 MB / 334.1 MB Notification: Performance of SimCode: time 3.6e-07/0.309, allocations: 0 / 422.4 MB, free: 1.617 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03366/0.3427, allocations: 6.348 MB / 428.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/11.75, allocations: 4.562 kB / 428.7 MB, free: 11.48 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1)