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.001067/0.001067, allocations: 110.3 kB / 16.92 MB, free: 5.855 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.001141/0.001141, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.366/1.366, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00168/0.00168, allocations: 46.73 kB / 300.7 MB, free: 5.746 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1242, allocations: 49.45 MB / 350.2 MB, free: 4.289 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.004037/0.1283, allocations: 2.742 MB / 352.9 MB, free: 1.523 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001252/0.1296, allocations: 0.6739 MB / 353.6 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001957/0.1298, allocations: 4 kB / 353.6 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001673/0.13, allocations: 43.58 kB / 353.6 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002518/0.1303, allocations: 99.17 kB / 353.7 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003058/0.1306, allocations: 87.89 kB / 353.8 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004042/0.131, allocations: 358.5 kB / 354.2 MB, free: 268 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001947/0.1312, allocations: 88.56 kB / 354.3 MB, free: 176 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000181/0.1314, allocations: 131.5 kB / 354.4 MB, free: 44 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002219/0.1316, allocations: 155.5 kB / 354.5 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.462e-05/0.1317, allocations: 31.94 kB / 354.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.292e-05/0.1318, allocations: 28 kB / 354.6 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.842e-05/0.1318, allocations: 67.7 kB / 354.7 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001719/0.132, allocations: 135.3 kB / 354.8 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003324/0.1323, allocations: 327 kB / 355.1 MB, free: 15.31 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1324, allocations: 0 / 355.1 MB, free: 15.31 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.915e-06/0.1324, allocations: 0 / 355.1 MB, free: 15.31 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.506e-05/0.1324, allocations: 3.938 kB / 355.1 MB, free: 15.31 MB / 302.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.001252/0.1337, allocations: 0.634 MB / 355.8 MB, free: 14.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.1337, allocations: 8.031 kB / 355.8 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.416e-05/0.1338, allocations: 66.66 kB / 355.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.829e-05/0.1338, allocations: 32.56 kB / 355.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003266/0.1342, allocations: 275.6 kB / 356.1 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.905e-05/0.1342, allocations: 16.8 kB / 356.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.663e-05/0.1342, allocations: 24.38 kB / 356.2 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006095/0.1349, allocations: 277.9 kB / 356.4 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.1349, allocations: 3.984 kB / 356.4 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.053e-05/0.1349, allocations: 11.98 kB / 356.5 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.1349, allocations: 4 kB / 356.5 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007565/0.1357, allocations: 241.6 kB / 356.7 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001767/0.1375, allocations: 0.9481 MB / 357.6 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009415/0.1384, allocations: 242.5 kB / 357.9 MB, free: 12.35 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003358/0.1388, allocations: 104.8 kB / 358 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.915e-05/0.1388, allocations: 4 kB / 358 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005319/0.1394, allocations: 188.4 kB / 358.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 2.003e-06/0.1394, allocations: 4 kB / 358.2 MB, free: 12.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002382/0.1418, allocations: 0.6395 MB / 358.8 MB, free: 11.36 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.104e-05/0.1418, allocations: 118.8 kB / 358.9 MB, free: 11.22 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003012/0.1421, allocations: 274.4 kB / 359.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.103e-05/0.1422, allocations: 33.7 kB / 359.2 MB, free: 10.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000132/0.1423, allocations: 175.8 kB / 359.4 MB, free: 10.74 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.222e-05/0.1424, allocations: 39.45 kB / 359.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/0.1425, allocations: 49.61 kB / 359.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.1426, allocations: 335 kB / 359.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003654/0.143, allocations: 99.92 kB / 359.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003954/0.1434, allocations: 182.2 kB / 360.1 MB, free: 9.996 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007032/0.1441, allocations: 284.9 kB / 360.4 MB, free: 9.684 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.1441, allocations: 4 kB / 360.4 MB, free: 9.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001221/0.1454, allocations: 443.6 kB / 360.8 MB, free: 9.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.752e-05/0.1454, allocations: 33.7 kB / 360.8 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.1454, allocations: 4 kB / 360.8 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003854/0.1458, allocations: 80.8 kB / 360.9 MB, free: 9.105 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002146/0.146, allocations: 43.97 kB / 361 MB, free: 9.062 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002786/0.1488, allocations: 2.009 MB / 363 MB, free: 6.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003382/0.1492, allocations: 59.89 kB / 363 MB, free: 6.852 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.288e-05/0.1492, allocations: 8 kB / 363 MB, free: 6.844 MB / 302.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.0001375/0.1494, allocations: 145.9 kB / 363.2 MB, free: 6.691 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.185e-05/0.1494, allocations: 27.66 kB / 363.2 MB, free: 6.664 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.878e-05/0.1495, allocations: 21.83 kB / 363.2 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.1495, allocations: 4 kB / 363.2 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-06/0.1495, allocations: 0 / 363.2 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.1495, allocations: 0 / 363.2 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002465/0.1498, allocations: 289.4 kB / 363.5 MB, free: 6.305 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.1498, allocations: 7.984 kB / 363.5 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001399/0.1499, allocations: 23.92 kB / 363.6 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002883/0.1502, allocations: 80.73 kB / 363.6 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/0.1502, allocations: 0 / 363.6 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002283/0.1525, allocations: 1.923 MB / 365.6 MB, free: 4.133 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/0.1525, allocations: 4 kB / 365.6 MB, free: 4.129 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/0.1536, allocations: 364.9 kB / 365.9 MB, free: 3.754 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.372e-05/0.1537, allocations: 96.77 kB / 366 MB, free: 3.641 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.088e-05/0.1537, allocations: 8 kB / 366 MB, free: 3.633 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000266/0.154, allocations: 31.95 kB / 366.1 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.117e-05/0.1541, allocations: 19.97 kB / 366.1 MB, free: 3.582 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.279e-05/0.1541, allocations: 8 kB / 366.1 MB, free: 3.574 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000173/0.1543, allocations: 190 kB / 366.3 MB, free: 3.391 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1543, allocations: 0 / 366.3 MB, free: 3.391 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000515/0.1548, allocations: 75.84 kB / 366.3 MB, free: 3.316 MB / 302.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.001342/0.1562, allocations: 0.8978 MB / 367.2 MB, free: 2.383 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001285/0.1575, allocations: 493.7 kB / 367.7 MB, free: 1.875 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1575, allocations: 0 / 367.7 MB, free: 1.875 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004787/0.158, allocations: 222.6 kB / 367.9 MB, free: 1.645 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003374/0.1583, allocations: 60.08 kB / 368 MB, free: 1.59 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1402/0.2986, allocations: 3.422 MB / 371.4 MB, free: 24.29 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001617/0.2988, allocations: 0.7456 MB / 372.2 MB, free: 23.59 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001273/0.2989, allocations: 24.14 kB / 372.2 MB, free: 23.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001013/0.299, allocations: 73.89 kB / 372.3 MB, free: 23.58 MB / 302.1 MB Notification: Performance of SimCode: time 5.82e-07/0.299, allocations: 0 / 372.3 MB, free: 23.58 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02735/0.3264, allocations: 6.236 MB / 378.5 MB, free: 22.94 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.47, allocations: 6.125 kB / 378.5 MB, free: 22.94 MB / 302.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)