Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_3_2_3_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.001261/0.001261, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.001233/0.001233, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.387/1.387, allocations: 205.1 MB / 224.4 MB, free: 12.31 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001658/0.001658, allocations: 55.92 kB / 280.8 MB, free: 3.055 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.103, allocations: 46.63 MB / 327.4 MB, free: 4.355 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.004156/0.1073, allocations: 2.731 MB / 330.1 MB, free: 1.598 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001227/0.1085, allocations: 0.7098 MB / 330.8 MB, free: 0.8789 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001389/0.1087, allocations: 7.938 kB / 330.8 MB, free: 0.8711 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001451/0.1088, allocations: 39.58 kB / 330.9 MB, free: 0.832 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001798/0.109, allocations: 95.25 kB / 331 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000268/0.1093, allocations: 91.81 kB / 331.1 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003706/0.1097, allocations: 354.6 kB / 331.4 MB, free: 308 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001894/0.1099, allocations: 84.7 kB / 331.5 MB, free: 228 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001617/0.1101, allocations: 135.5 kB / 331.6 MB, free: 92 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001798/0.1102, allocations: 147.3 kB / 331.8 MB, free: 15.95 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.171e-05/0.1103, allocations: 32 kB / 331.8 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.591e-05/0.1104, allocations: 32 kB / 331.8 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.656e-05/0.1105, allocations: 67.69 kB / 331.9 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001992/0.1107, allocations: 147.2 kB / 332 MB, free: 15.67 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003033/0.111, allocations: 323.1 kB / 332.4 MB, free: 15.36 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.111, allocations: 0 / 332.4 MB, free: 15.36 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.111, allocations: 0 / 332.4 MB, free: 15.36 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.111, allocations: 0 / 332.4 MB, free: 15.36 MB / 286.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.00122/0.1122, allocations: 0.6379 MB / 333 MB, free: 14.66 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.1123, allocations: 8.031 kB / 333 MB, free: 14.65 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.778e-05/0.1124, allocations: 58.72 kB / 333.1 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.493e-05/0.1124, allocations: 28.56 kB / 333.1 MB, free: 14.56 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003176/0.1127, allocations: 287.6 kB / 333.4 MB, free: 14.24 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.147e-05/0.1128, allocations: 16.81 kB / 333.4 MB, free: 14.22 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.184e-05/0.1128, allocations: 16.38 kB / 333.4 MB, free: 14.2 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000591/0.1134, allocations: 247.3 kB / 333.6 MB, free: 13.96 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.1134, allocations: 0 / 333.6 MB, free: 13.96 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.739e-05/0.1135, allocations: 7.984 kB / 333.7 MB, free: 13.95 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.1135, allocations: 12 kB / 333.7 MB, free: 13.94 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007433/0.1142, allocations: 241.5 kB / 333.9 MB, free: 13.7 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001496/0.1157, allocations: 0.8739 MB / 334.8 MB, free: 12.76 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008681/0.1166, allocations: 246.5 kB / 335 MB, free: 12.51 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003324/0.117, allocations: 96.78 kB / 335.1 MB, free: 12.41 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.286e-05/0.117, allocations: 0 / 335.1 MB, free: 12.41 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005363/0.1175, allocations: 193.7 kB / 335.3 MB, free: 12.2 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.363e-06/0.1176, allocations: 0 / 335.3 MB, free: 12.2 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.002534/0.1201, allocations: 0.6632 MB / 336 MB, free: 11.51 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.632e-05/0.1202, allocations: 114.8 kB / 336.1 MB, free: 11.37 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003065/0.1205, allocations: 278.4 kB / 336.3 MB, free: 11.09 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.002e-05/0.1205, allocations: 33.7 kB / 336.4 MB, free: 11.05 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001291/0.1207, allocations: 175.9 kB / 336.5 MB, free: 10.88 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.134e-05/0.1207, allocations: 43.38 kB / 336.6 MB, free: 10.83 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.203e-05/0.1208, allocations: 45.7 kB / 336.6 MB, free: 10.78 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.121, allocations: 334.8 kB / 337 MB, free: 10.45 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003627/0.1213, allocations: 108.7 kB / 337.1 MB, free: 10.34 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003905/0.1217, allocations: 173.4 kB / 337.2 MB, free: 10.13 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000711/0.1225, allocations: 280.3 kB / 337.5 MB, free: 9.828 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1225, allocations: 0 / 337.5 MB, free: 9.828 MB / 286.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001256/0.1237, allocations: 455.5 kB / 338 MB, free: 9.367 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.705e-05/0.1238, allocations: 37.7 kB / 338 MB, free: 9.324 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.1238, allocations: 4.031 kB / 338 MB, free: 9.32 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003745/0.1242, allocations: 77.02 kB / 338.1 MB, free: 9.242 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002073/0.1244, allocations: 43.91 kB / 338.1 MB, free: 9.199 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003053/0.1275, allocations: 2.025 MB / 340.1 MB, free: 7.027 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003371/0.1278, allocations: 51.75 kB / 340.2 MB, free: 6.977 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.261e-05/0.1278, allocations: 4 kB / 340.2 MB, free: 6.973 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004024/0.1283, allocations: 184.1 kB / 340.4 MB, free: 6.789 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003715/0.1286, allocations: 157.5 kB / 340.5 MB, free: 6.602 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005122/0.1292, allocations: 245.2 kB / 340.8 MB, free: 6.328 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.343e-06/0.1292, allocations: 0 / 340.8 MB, free: 6.328 MB / 286.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0008155/0.13, allocations: 335 kB / 341.1 MB, free: 5.988 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.642e-05/0.13, allocations: 33.7 kB / 341.1 MB, free: 5.949 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.13, allocations: 4 kB / 341.1 MB, free: 5.945 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.633e-05/0.1301, allocations: 24.84 kB / 341.2 MB, free: 5.918 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001921/0.1303, allocations: 47.89 kB / 341.2 MB, free: 5.871 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009681/0.1313, allocations: 1.414 MB / 342.6 MB, free: 4.32 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003106/0.1316, allocations: 47.95 kB / 342.7 MB, free: 4.273 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.361e-05/0.1317, allocations: 8 kB / 342.7 MB, free: 4.266 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (20): * Single equations (assignments): 18 * 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.0001322/0.1318, allocations: 196.5 kB / 342.9 MB, free: 4.066 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.907e-05/0.1319, allocations: 23.72 kB / 342.9 MB, free: 4.043 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.624e-05/0.1319, allocations: 25.83 kB / 342.9 MB, free: 4.02 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.1319, allocations: 11.94 kB / 342.9 MB, free: 4.008 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.1319, allocations: 4 kB / 342.9 MB, free: 4.004 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.1319, allocations: 4 kB / 342.9 MB, free: 4 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002689/0.1322, allocations: 293.4 kB / 343.2 MB, free: 3.664 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.1322, allocations: 3.984 kB / 343.2 MB, free: 3.66 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001337/0.1324, allocations: 19.98 kB / 343.2 MB, free: 3.641 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002726/0.1326, allocations: 72.8 kB / 343.3 MB, free: 3.566 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.732e-05/0.1327, allocations: 8 kB / 343.3 MB, free: 3.559 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002366/0.1351, allocations: 1.915 MB / 345.2 MB, free: 1.504 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.1351, allocations: 8.094 kB / 345.2 MB, free: 1.496 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001138/0.1362, allocations: 357.5 kB / 345.6 MB, free: 1.125 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.758e-05/0.1363, allocations: 96.86 kB / 345.7 MB, free: 1.012 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.905e-05/0.1363, allocations: 4.125 kB / 345.7 MB, free: 1.008 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002644/0.1366, allocations: 39.95 kB / 345.7 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.156e-05/0.1367, allocations: 19.97 kB / 345.7 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/0.1367, allocations: 11.94 kB / 345.8 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001802/0.1369, allocations: 190 kB / 345.9 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1369, allocations: 0 / 345.9 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005553/0.1375, allocations: 131.7 kB / 346.1 MB, free: 0.625 MB / 286.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.001385/0.1389, allocations: 0.894 MB / 347 MB, free: 15.7 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001731/0.1406, allocations: 0.7593 MB / 347.7 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1406, allocations: 0 / 347.7 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004756/0.1411, allocations: 234.5 kB / 348 MB, free: 14.65 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003303/0.1414, allocations: 52.7 kB / 348 MB, free: 14.6 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007427/0.1489, allocations: 3.437 MB / 351.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003342/0.1492, allocations: 0.7483 MB / 352.2 MB, free: 10.24 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001457/0.1494, allocations: 26.28 kB / 352.2 MB, free: 10.22 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/0.1495, allocations: 75.42 kB / 352.3 MB, free: 10.14 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1495, allocations: 7.875 kB / 352.3 MB, free: 10.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04316/0.1927, allocations: 6.595 MB / 358.9 MB, free: 3.477 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.47, allocations: 15.53 kB / 358.9 MB, free: 3.461 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1)