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.SchmittTrigger.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.SchmittTrigger,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001687/0.001687, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002137/0.002137, allocations: 210.4 kB / 18.58 MB, free: 4.578 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.522/1.522, allocations: 227.7 MB / 247 MB, free: 10.35 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.001948/0.001948, allocations: 69.89 kB / 307.4 MB, free: 396 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1195, allocations: 50.54 MB / 357.9 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.004566/0.1241, allocations: 2.762 MB / 360.7 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001492/0.1256, allocations: 0.7128 MB / 361.4 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001573/0.1258, allocations: 8 kB / 361.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001694/0.126, allocations: 39.58 kB / 361.4 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002102/0.1262, allocations: 91.19 kB / 361.5 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003375/0.1266, allocations: 95.81 kB / 361.6 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004353/0.127, allocations: 358.5 kB / 361.9 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000208/0.1272, allocations: 84.7 kB / 362 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001762/0.1274, allocations: 131.5 kB / 362.2 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001913/0.1276, allocations: 147.3 kB / 362.3 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.3e-05/0.1277, allocations: 32 kB / 362.3 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.752e-05/0.1278, allocations: 28 kB / 362.4 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.53e-05/0.1278, allocations: 67.75 kB / 362.4 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001643/0.128, allocations: 147.2 kB / 362.6 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003522/0.1284, allocations: 319.1 kB / 362.9 MB, free: 8.812 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1284, allocations: 0 / 362.9 MB, free: 8.812 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1284, allocations: 4 kB / 362.9 MB, free: 8.809 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.848e-06/0.1284, allocations: 4 kB / 362.9 MB, free: 8.805 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.001298/0.1297, allocations: 0.6418 MB / 363.5 MB, free: 8.105 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.1298, allocations: 8.031 kB / 363.5 MB, free: 8.098 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.61e-05/0.1298, allocations: 54.73 kB / 363.6 MB, free: 8.035 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.598e-05/0.1299, allocations: 36.55 kB / 363.6 MB, free: 8 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003978/0.1303, allocations: 271.6 kB / 363.9 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.621e-05/0.1304, allocations: 16.81 kB / 363.9 MB, free: 7.676 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.834e-05/0.1304, allocations: 16.38 kB / 363.9 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007006/0.1311, allocations: 285.8 kB / 364.2 MB, free: 7.367 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.1312, allocations: 3.984 kB / 364.2 MB, free: 7.363 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.931e-05/0.1312, allocations: 8 kB / 364.2 MB, free: 7.355 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.1312, allocations: 11.98 kB / 364.2 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007941/0.132, allocations: 241.6 kB / 364.5 MB, free: 7.109 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001838/0.1339, allocations: 0.9403 MB / 365.4 MB, free: 6.098 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00093/0.1348, allocations: 246.5 kB / 365.6 MB, free: 5.848 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003504/0.1352, allocations: 105 kB / 365.7 MB, free: 5.742 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.291e-05/0.1352, allocations: 3.938 kB / 365.8 MB, free: 5.738 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006268/0.1358, allocations: 185.6 kB / 365.9 MB, free: 5.535 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 2.395e-06/0.1359, allocations: 0 / 365.9 MB, free: 5.535 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002594/0.1385, allocations: 0.6513 MB / 366.6 MB, free: 4.855 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.543e-05/0.1386, allocations: 110.8 kB / 366.7 MB, free: 4.723 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003256/0.1389, allocations: 266.4 kB / 367 MB, free: 4.457 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.28e-05/0.139, allocations: 33.7 kB / 367 MB, free: 4.418 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001365/0.1391, allocations: 167.9 kB / 367.2 MB, free: 4.25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.578e-05/0.1392, allocations: 47.39 kB / 367.2 MB, free: 4.203 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.673e-05/0.1393, allocations: 41.7 kB / 367.2 MB, free: 4.156 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.1394, allocations: 334.8 kB / 367.6 MB, free: 3.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003589/0.1398, allocations: 99.78 kB / 367.7 MB, free: 3.723 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004119/0.1402, allocations: 169.3 kB / 367.8 MB, free: 3.527 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007244/0.1409, allocations: 266.2 kB / 368.1 MB, free: 3.238 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.141, allocations: 8 kB / 368.1 MB, free: 3.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001334/0.1423, allocations: 431.5 kB / 368.5 MB, free: 2.793 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.732e-05/0.1424, allocations: 29.7 kB / 368.5 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/0.1424, allocations: 8.062 kB / 368.6 MB, free: 2.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004193/0.1428, allocations: 76.73 kB / 368.6 MB, free: 2.672 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002025/0.143, allocations: 39.97 kB / 368.7 MB, free: 2.633 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002858/0.1459, allocations: 1.955 MB / 370.6 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000351/0.1463, allocations: 51.86 kB / 370.7 MB, free: 488 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.141e-05/0.1463, allocations: 8 kB / 370.7 MB, free: 480 kB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (19): * Single equations (assignments): 17 * 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.0001838/0.1465, allocations: 140.4 kB / 370.8 MB, free: 332 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.16e-05/0.1465, allocations: 27.66 kB / 370.8 MB, free: 304 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.681e-05/0.1466, allocations: 25.83 kB / 370.9 MB, free: 284 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-06/0.1466, allocations: 4 kB / 370.9 MB, free: 280 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.1466, allocations: 0 / 370.9 MB, free: 280 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/0.1466, allocations: 0 / 370.9 MB, free: 280 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1927/0.3394, allocations: 294 kB / 371.2 MB, free: 20.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/0.3394, allocations: 1.234 kB / 371.2 MB, free: 20.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002183/0.3396, allocations: 24.62 kB / 371.2 MB, free: 20.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003702/0.34, allocations: 80.52 kB / 371.3 MB, free: 20.19 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.53e-05/0.3401, allocations: 7.141 kB / 371.3 MB, free: 20.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002285/0.3423, allocations: 1.746 MB / 373 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.3424, allocations: 3.828 kB / 373 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001219/0.3436, allocations: 362.7 kB / 373.4 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.406e-05/0.3437, allocations: 104.6 kB / 373.5 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.064e-05/0.3437, allocations: 8.328 kB / 373.5 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002511/0.344, allocations: 34.36 kB / 373.5 MB, free: 18.69 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.789e-05/0.3441, allocations: 16.83 kB / 373.5 MB, free: 18.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.446e-05/0.3441, allocations: 11.8 kB / 373.5 MB, free: 18.69 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001893/0.3443, allocations: 190.3 kB / 373.7 MB, free: 18.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3443, allocations: 0.9375 kB / 373.7 MB, free: 18.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004188/0.3447, allocations: 64.59 kB / 373.8 MB, free: 18.61 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.001356/0.3461, allocations: 0.8936 MB / 374.7 MB, free: 18.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001105/0.3472, allocations: 418.7 kB / 375.1 MB, free: 17.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3472, allocations: 0 / 375.1 MB, free: 17.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004672/0.3477, allocations: 231.2 kB / 375.3 MB, free: 17.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003282/0.348, allocations: 48.19 kB / 375.4 MB, free: 17.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00495/0.353, allocations: 2.943 MB / 378.3 MB, free: 16.06 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002484/0.3533, allocations: 0.7431 MB / 379.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001248/0.3534, allocations: 30.05 kB / 379.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001069/0.3535, allocations: 77.78 kB / 379.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3535, allocations: 0 / 379.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04006/0.3936, allocations: 6.268 MB / 385.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.8, allocations: 3.766 kB / 385.4 MB, free: 14.11 MB / 302.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1)