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.0009483/0.0009483, allocations: 90.19 kB / 16.31 MB, free: 5.613 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.001274/0.001274, allocations: 183.6 kB / 17.21 MB, free: 5.527 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.432/1.432, allocations: 223.3 MB / 241.2 MB, free: 14.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000267/0.000267, allocations: 9.5 kB / 300.9 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1039, allocations: 50.42 MB / 351.4 MB, free: 3.668 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.002879/0.1068, allocations: 2.336 MB / 353.7 MB, free: 1.316 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001174/0.108, allocations: 0.6431 MB / 354.3 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001311/0.1082, allocations: 4 kB / 354.3 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001402/0.1083, allocations: 27.77 kB / 354.4 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001794/0.1085, allocations: 79.38 kB / 354.5 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000248/0.1088, allocations: 59.92 kB / 354.5 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003302/0.1091, allocations: 318.6 kB / 354.8 MB, free: 192 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001777/0.1093, allocations: 69.09 kB / 354.9 MB, free: 120 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001475/0.1094, allocations: 119.5 kB / 355 MB, free: 0 / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001806/0.1096, allocations: 123.5 kB / 355.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.11e-05/0.1097, allocations: 16 kB / 355.1 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.907e-05/0.1097, allocations: 16 kB / 355.2 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.669e-05/0.1098, allocations: 51.75 kB / 355.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.465e-05/0.1099, allocations: 77.52 kB / 355.3 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000224/0.1101, allocations: 231.6 kB / 355.5 MB, free: 15.49 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1101, allocations: 0 / 355.5 MB, free: 15.49 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1101, allocations: 0 / 355.5 MB, free: 15.49 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.1101, allocations: 0 / 355.5 MB, free: 15.49 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.001116/0.1113, allocations: 0.6223 MB / 356.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.1113, allocations: 8.031 kB / 356.1 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.284e-05/0.1114, allocations: 54.55 kB / 356.2 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.907e-05/0.1114, allocations: 23.72 kB / 356.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003141/0.1118, allocations: 270.5 kB / 356.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.784e-05/0.1118, allocations: 16.44 kB / 356.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.948e-05/0.1118, allocations: 20 kB / 356.5 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006179/0.1124, allocations: 297.7 kB / 356.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.1125, allocations: 0 / 356.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.509e-05/0.1125, allocations: 8 kB / 356.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.1125, allocations: 8 kB / 356.8 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006832/0.1132, allocations: 265.6 kB / 357.1 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001552/0.1148, allocations: 0.9792 MB / 358.1 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007916/0.1156, allocations: 270.6 kB / 358.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003157/0.1159, allocations: 116.8 kB / 358.4 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.863e-05/0.1159, allocations: 4 kB / 358.4 MB, free: 12.35 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000483/0.1164, allocations: 189.8 kB / 358.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 3.076e-06/0.1164, allocations: 7.984 kB / 358.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002141/0.1186, allocations: 0.7371 MB / 359.4 MB, free: 11.37 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.861e-05/0.1187, allocations: 102.8 kB / 359.5 MB, free: 11.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002855/0.119, allocations: 274.5 kB / 359.7 MB, free: 10.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.432e-05/0.119, allocations: 29.7 kB / 359.8 MB, free: 10.94 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001271/0.1191, allocations: 179.8 kB / 359.9 MB, free: 10.76 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.898e-05/0.1192, allocations: 47.39 kB / 360 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.245e-05/0.1192, allocations: 4 kB / 360 MB, free: 10.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.1193, allocations: 330.8 kB / 360.3 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003158/0.1197, allocations: 115.9 kB / 360.4 MB, free: 10.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003582/0.12, allocations: 198.2 kB / 360.6 MB, free: 10.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003362/0.1204, allocations: 145.6 kB / 360.8 MB, free: 9.887 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.1204, allocations: 3.953 kB / 360.8 MB, free: 9.883 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001079/0.1215, allocations: 487.6 kB / 361.2 MB, free: 9.391 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.736e-05/0.1215, allocations: 29.7 kB / 361.3 MB, free: 9.355 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.904e-06/0.1215, allocations: 4 kB / 361.3 MB, free: 9.352 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003521/0.1219, allocations: 88.86 kB / 361.4 MB, free: 9.262 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001941/0.1221, allocations: 51.91 kB / 361.4 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002448/0.1246, allocations: 1.85 MB / 363.3 MB, free: 7.223 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002941/0.1249, allocations: 55.8 kB / 363.3 MB, free: 7.168 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.322e-05/0.1249, allocations: 12.22 kB / 363.3 MB, free: 7.156 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 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001585/0.1251, allocations: 141.8 kB / 363.5 MB, free: 7.008 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.439e-05/0.1251, allocations: 31.61 kB / 363.5 MB, free: 6.977 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.092e-05/0.1252, allocations: 25.83 kB / 363.5 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.1252, allocations: 0 / 363.5 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.1252, allocations: 4 kB / 363.5 MB, free: 6.945 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.1252, allocations: 0 / 363.5 MB, free: 6.945 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000267/0.1255, allocations: 297.3 kB / 363.8 MB, free: 6.605 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.1255, allocations: 0 / 363.8 MB, free: 6.605 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001291/0.1256, allocations: 31.97 kB / 363.9 MB, free: 6.574 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002385/0.1258, allocations: 76.81 kB / 363.9 MB, free: 6.496 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.811e-05/0.1259, allocations: 11.94 kB / 363.9 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002017/0.1279, allocations: 1.764 MB / 365.7 MB, free: 4.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.1279, allocations: 64 / 365.7 MB, free: 4.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009214/0.1288, allocations: 396.5 kB / 366.1 MB, free: 4.184 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.706e-05/0.1289, allocations: 108.8 kB / 366.2 MB, free: 4.059 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.283e-05/0.129, allocations: 3.938 kB / 366.2 MB, free: 4.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002247/0.1292, allocations: 47.95 kB / 366.3 MB, free: 4.008 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.274e-05/0.1293, allocations: 19.97 kB / 366.3 MB, free: 3.988 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.374e-05/0.1293, allocations: 7.953 kB / 366.3 MB, free: 3.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001864/0.1295, allocations: 194 kB / 366.5 MB, free: 3.793 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1295, allocations: 4 kB / 366.5 MB, free: 3.789 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003973/0.1299, allocations: 71.84 kB / 366.5 MB, free: 3.719 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001256/0.1312, allocations: 0.9253 MB / 367.5 MB, free: 2.758 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001124/0.1323, allocations: 0.5134 MB / 368 MB, free: 2.219 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.1323, allocations: 0 / 368 MB, free: 2.219 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000437/0.1328, allocations: 243 kB / 368.2 MB, free: 1.969 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003111/0.1331, allocations: 41.56 kB / 368.3 MB, free: 1.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2051/0.3382, allocations: 2.212 MB / 370.5 MB, free: 24.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002972/0.3385, allocations: 0.7489 MB / 371.2 MB, free: 23.48 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000181/0.3387, allocations: 24.73 kB / 371.2 MB, free: 23.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001616/0.3389, allocations: 72.8 kB / 371.3 MB, free: 23.47 MB / 302.1 MB Notification: Performance of SimCode: time 1.323e-06/0.3389, allocations: 0.8438 kB / 371.3 MB, free: 23.47 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02648/0.3653, allocations: 5.62 MB / 376.9 MB, free: 23.24 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000195/0.3656, allocations: 237.7 kB / 377.2 MB, free: 23 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.962/2.327, allocations: 1.219 kB / 377.2 MB, free: 23 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat does not exist to compare? outputFormat=mat