Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_trunk_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.001129/0.001129, allocations: 105.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001258/0.001258, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.542/1.542, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001127/0.001127, allocations: 65.11 kB / 307.1 MB, free: 488 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1059, allocations: 50.54 MB / 357.6 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.004776/0.1108, allocations: 2.755 MB / 360.4 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001591/0.1124, allocations: 0.7129 MB / 361.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003231/0.1127, allocations: 7.938 kB / 361.1 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000214/0.113, allocations: 43.58 kB / 361.1 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003867/0.1134, allocations: 87.25 kB / 361.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003632/0.1138, allocations: 103.8 kB / 361.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005331/0.1143, allocations: 354.6 kB / 361.7 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002115/0.1145, allocations: 84.69 kB / 361.7 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002547/0.1148, allocations: 135.4 kB / 361.9 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002979/0.1151, allocations: 151.3 kB / 362 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.596e-05/0.1152, allocations: 28 kB / 362 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.311e-05/0.1153, allocations: 32 kB / 362.1 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.529e-05/0.1154, allocations: 59.75 kB / 362.1 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002181/0.1156, allocations: 151.2 kB / 362.3 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004556/0.1161, allocations: 323.1 kB / 362.6 MB, free: 8.918 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1161, allocations: 0 / 362.6 MB, free: 8.918 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1161, allocations: 0 / 362.6 MB, free: 8.918 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.775e-05/0.1161, allocations: 0 / 362.6 MB, free: 8.918 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.001392/0.1175, allocations: 0.6458 MB / 363.2 MB, free: 8.215 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.1176, allocations: 8.031 kB / 363.3 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.695e-05/0.1177, allocations: 58.72 kB / 363.3 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.339e-05/0.1178, allocations: 32.56 kB / 363.3 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003677/0.1181, allocations: 275.6 kB / 363.6 MB, free: 7.801 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.19e-05/0.1182, allocations: 16.81 kB / 363.6 MB, free: 7.781 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.508e-05/0.1182, allocations: 20.36 kB / 363.6 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006381/0.1189, allocations: 281.9 kB / 363.9 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.1189, allocations: 3.984 kB / 363.9 MB, free: 7.469 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.807e-05/0.1189, allocations: 8 kB / 363.9 MB, free: 7.461 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.1189, allocations: 8 kB / 363.9 MB, free: 7.453 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000758/0.1197, allocations: 245.5 kB / 364.2 MB, free: 7.215 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001644/0.1213, allocations: 0.9403 MB / 365.1 MB, free: 6.203 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008045/0.1222, allocations: 234.6 kB / 365.3 MB, free: 5.965 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003305/0.1225, allocations: 109 kB / 365.5 MB, free: 5.855 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.323e-05/0.1225, allocations: 7.875 kB / 365.5 MB, free: 5.848 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005218/0.1231, allocations: 185.3 kB / 365.6 MB, free: 5.648 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.203e-06/0.1231, allocations: 0 / 365.6 MB, free: 5.648 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0023/0.1254, allocations: 0.6474 MB / 366.3 MB, free: 4.973 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.046e-05/0.1255, allocations: 106.8 kB / 366.4 MB, free: 4.844 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002766/0.1258, allocations: 286.4 kB / 366.7 MB, free: 4.559 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.275e-05/0.1258, allocations: 25.7 kB / 366.7 MB, free: 4.527 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/0.1259, allocations: 179.8 kB / 366.9 MB, free: 4.348 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.953e-05/0.126, allocations: 47.44 kB / 366.9 MB, free: 4.301 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.504e-05/0.126, allocations: 45.61 kB / 367 MB, free: 4.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.1262, allocations: 330.8 kB / 367.3 MB, free: 3.918 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003591/0.1265, allocations: 103.9 kB / 367.4 MB, free: 3.816 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003992/0.127, allocations: 187.2 kB / 367.6 MB, free: 3.598 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007093/0.1277, allocations: 282.1 kB / 367.9 MB, free: 3.285 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.1277, allocations: 0 / 367.9 MB, free: 3.285 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.00125/0.1289, allocations: 447.5 kB / 368.3 MB, free: 2.832 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.877e-05/0.129, allocations: 36.2 kB / 368.3 MB, free: 2.793 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.129, allocations: 3.938 kB / 368.3 MB, free: 2.789 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003845/0.1294, allocations: 88.86 kB / 368.4 MB, free: 2.699 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002092/0.1296, allocations: 39.91 kB / 368.5 MB, free: 2.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002842/0.1325, allocations: 2.001 MB / 370.5 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003892/0.1329, allocations: 43.81 kB / 370.5 MB, free: 476 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.089e-05/0.1329, allocations: 16.06 kB / 370.5 MB, free: 460 kB / 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.0002249/0.1332, allocations: 152.9 kB / 370.7 MB, free: 300 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.212e-05/0.1332, allocations: 27.66 kB / 370.7 MB, free: 272 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.758e-05/0.1333, allocations: 29.83 kB / 370.7 MB, free: 248 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.1333, allocations: 0 / 370.7 MB, free: 248 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.1333, allocations: 0 / 370.7 MB, free: 248 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.1333, allocations: 0 / 370.7 MB, free: 248 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1742/0.3075, allocations: 287.7 kB / 371 MB, free: 20.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/0.3076, allocations: 0.75 kB / 371 MB, free: 20.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001956/0.3078, allocations: 27.11 kB / 371 MB, free: 20.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000332/0.3081, allocations: 82.66 kB / 371.1 MB, free: 20.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.05e-05/0.3082, allocations: 6.906 kB / 371.1 MB, free: 20.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0023/0.3105, allocations: 1.917 MB / 373 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3105, allocations: 0 / 373 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00112/0.3116, allocations: 357.9 kB / 373.4 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.922e-05/0.3117, allocations: 102.4 kB / 373.5 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.039e-05/0.3117, allocations: 5.656 kB / 373.5 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002621/0.312, allocations: 42.45 kB / 373.5 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.668e-05/0.3121, allocations: 16.17 kB / 373.5 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.47e-05/0.3121, allocations: 4.281 kB / 373.5 MB, free: 18.59 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002035/0.3123, allocations: 195.3 kB / 373.7 MB, free: 18.51 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3123, allocations: 0 / 373.7 MB, free: 18.51 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004282/0.3128, allocations: 69.27 kB / 373.8 MB, free: 18.51 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.001286/0.314, allocations: 0.8866 MB / 374.7 MB, free: 17.91 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001277/0.3153, allocations: 490.9 kB / 375.2 MB, free: 17.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3154, allocations: 0.875 kB / 375.2 MB, free: 17.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000478/0.3158, allocations: 230 kB / 375.4 MB, free: 17.62 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003124/0.3162, allocations: 55.53 kB / 375.5 MB, free: 17.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007267/0.3234, allocations: 3.455 MB / 378.9 MB, free: 15.87 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002288/0.3237, allocations: 0.7429 MB / 379.6 MB, free: 15.17 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001393/0.3238, allocations: 29.05 kB / 379.7 MB, free: 15.17 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001044/0.324, allocations: 73.52 kB / 379.7 MB, free: 15.11 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.324, allocations: 0 / 379.7 MB, free: 15.11 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0256/0.3496, allocations: 6.269 MB / 386 MB, free: 13.78 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.58, allocations: 5 kB / 386 MB, free: 13.77 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1)