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.001292/0.001292, allocations: 107.9 kB / 17.63 MB, free: 5.527 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001323/0.001323, allocations: 210.4 kB / 18.58 MB, free: 4.582 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.574/1.574, allocations: 227.7 MB / 247.1 MB, free: 10.34 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.001924/0.001924, allocations: 68.95 kB / 307.3 MB, free: 412 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1152, allocations: 50.54 MB / 357.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.00417/0.1195, allocations: 2.773 MB / 360.7 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00129/0.1208, allocations: 0.7128 MB / 361.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000129/0.1209, allocations: 8 kB / 361.4 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001633/0.1211, allocations: 39.58 kB / 361.4 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000271/0.1214, allocations: 87.2 kB / 361.5 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003573/0.1218, allocations: 99.86 kB / 361.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004379/0.1222, allocations: 354.5 kB / 361.9 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002047/0.1224, allocations: 94.31 kB / 362 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001727/0.1226, allocations: 131.5 kB / 362.2 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002024/0.1228, allocations: 159.2 kB / 362.3 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.561e-05/0.1229, allocations: 28 kB / 362.3 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.382e-05/0.1229, allocations: 28 kB / 362.4 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.239e-05/0.123, allocations: 63.77 kB / 362.4 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001572/0.1232, allocations: 143.3 kB / 362.6 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003474/0.1235, allocations: 323.1 kB / 362.9 MB, free: 8.809 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.1236, allocations: 3.938 kB / 362.9 MB, free: 8.805 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.1236, allocations: 0 / 362.9 MB, free: 8.805 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.1236, allocations: 4 kB / 362.9 MB, free: 8.801 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.001266/0.1248, allocations: 0.6418 MB / 363.5 MB, free: 8.102 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.1249, allocations: 12.03 kB / 363.6 MB, free: 8.09 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.267e-05/0.125, allocations: 50.73 kB / 363.6 MB, free: 8.031 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.958e-05/0.125, allocations: 32.56 kB / 363.6 MB, free: 8 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003513/0.1254, allocations: 275.6 kB / 363.9 MB, free: 7.691 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.301e-05/0.1254, allocations: 20.81 kB / 363.9 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.26e-05/0.1255, allocations: 16.38 kB / 363.9 MB, free: 7.652 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006529/0.1261, allocations: 281.8 kB / 364.2 MB, free: 7.363 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.1262, allocations: 4 kB / 364.2 MB, free: 7.359 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.605e-05/0.1262, allocations: 8 kB / 364.2 MB, free: 7.352 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-06/0.1262, allocations: 4 kB / 364.2 MB, free: 7.348 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007641/0.127, allocations: 245.6 kB / 364.5 MB, free: 7.109 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001615/0.1286, allocations: 0.9403 MB / 365.4 MB, free: 6.098 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008626/0.1295, allocations: 238.5 kB / 365.6 MB, free: 5.855 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003443/0.1298, allocations: 104.8 kB / 365.7 MB, free: 5.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.438e-05/0.1299, allocations: 4.219 kB / 365.8 MB, free: 5.746 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005329/0.1304, allocations: 189.6 kB / 365.9 MB, free: 5.539 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.814e-06/0.1304, allocations: 0 / 365.9 MB, free: 5.539 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002461/0.1329, allocations: 0.6513 MB / 366.6 MB, free: 4.859 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.095e-05/0.133, allocations: 106.8 kB / 366.7 MB, free: 4.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000472/0.1335, allocations: 278.4 kB / 367 MB, free: 4.453 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.06e-05/0.1335, allocations: 29.7 kB / 367 MB, free: 4.418 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001693/0.1337, allocations: 183.8 kB / 367.2 MB, free: 4.234 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.167e-05/0.1337, allocations: 35.45 kB / 367.2 MB, free: 4.199 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001015/0.1338, allocations: 49.61 kB / 367.3 MB, free: 4.145 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.134, allocations: 342.8 kB / 367.6 MB, free: 3.801 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003575/0.1344, allocations: 91.92 kB / 367.7 MB, free: 3.711 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004165/0.1348, allocations: 178.2 kB / 367.9 MB, free: 3.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007264/0.1355, allocations: 284.2 kB / 368.1 MB, free: 3.188 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1355, allocations: 4 kB / 368.1 MB, free: 3.184 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001271/0.1368, allocations: 451.5 kB / 368.6 MB, free: 2.727 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.263e-05/0.1369, allocations: 29.7 kB / 368.6 MB, free: 2.691 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.1369, allocations: 4 kB / 368.6 MB, free: 2.688 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004119/0.1373, allocations: 88.73 kB / 368.7 MB, free: 2.598 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002056/0.1375, allocations: 39.97 kB / 368.7 MB, free: 2.559 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003072/0.1406, allocations: 2.009 MB / 370.7 MB, free: 408 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004249/0.1411, allocations: 55.89 kB / 370.8 MB, free: 352 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.297e-05/0.1411, allocations: 12 kB / 370.8 MB, free: 340 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.0001859/0.1413, allocations: 133.8 kB / 370.9 MB, free: 196 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.623e-05/0.1414, allocations: 27.66 kB / 371 MB, free: 168 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.126e-05/0.1415, allocations: 25.83 kB / 371 MB, free: 148 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.1415, allocations: 4 kB / 371 MB, free: 144 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/0.1415, allocations: 0 / 371 MB, free: 144 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.1415, allocations: 0 / 371 MB, free: 144 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2064/0.3479, allocations: 293.9 kB / 371.3 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.3479, allocations: 3.031 kB / 371.3 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001926/0.3481, allocations: 22.42 kB / 371.3 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003361/0.3485, allocations: 78.52 kB / 371.4 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.96e-05/0.3485, allocations: 8.969 kB / 371.4 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002387/0.3509, allocations: 1.912 MB / 373.3 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3509, allocations: 0.5625 kB / 373.3 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001176/0.3521, allocations: 362 kB / 373.7 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.181e-05/0.3522, allocations: 105.1 kB / 373.8 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.125e-05/0.3522, allocations: 6.375 kB / 373.8 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002689/0.3525, allocations: 31.28 kB / 373.8 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.183e-05/0.3526, allocations: 20.12 kB / 373.8 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.685e-05/0.3526, allocations: 8.781 kB / 373.8 MB, free: 18.01 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002272/0.3528, allocations: 193.4 kB / 374 MB, free: 17.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3528, allocations: 0 / 374 MB, free: 17.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004903/0.3533, allocations: 70.94 kB / 374.1 MB, free: 17.93 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.001315/0.3547, allocations: 0.8945 MB / 375 MB, free: 17.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001305/0.356, allocations: 486.8 kB / 375.5 MB, free: 17.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.356, allocations: 0.6875 kB / 375.5 MB, free: 17.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004744/0.3565, allocations: 232 kB / 375.7 MB, free: 17.05 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004152/0.3569, allocations: 50.69 kB / 375.7 MB, free: 17.05 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007124/0.364, allocations: 3.458 MB / 379.2 MB, free: 15.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001873/0.3643, allocations: 0.7445 MB / 379.9 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001369/0.3644, allocations: 20.42 kB / 380 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001062/0.3645, allocations: 82.16 kB / 380 MB, free: 14.77 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3645, allocations: 0 / 380 MB, free: 14.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03566/0.4002, allocations: 6.266 MB / 386.3 MB, free: 13.42 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.73, allocations: 1.469 kB / 386.3 MB, free: 13.42 MB / 302.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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)