Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.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.SchmittTrigger,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001067/0.001067, allocations: 90.61 kB / 16.3 MB, free: 6.133 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.00105/0.00105, allocations: 187.6 kB / 17.2 MB, free: 6.016 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.441/1.441, allocations: 223.2 MB / 241.1 MB, free: 308 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002757/0.0002758, allocations: 8 kB / 300.8 MB, free: 6.344 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1007, allocations: 50.42 MB / 351.3 MB, free: 3.918 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.002792/0.1035, allocations: 2.235 MB / 353.5 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001122/0.1047, allocations: 0.6628 MB / 354.2 MB, free: 1 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001075/0.1048, allocations: 7.938 kB / 354.2 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.17e-05/0.1048, allocations: 23.77 kB / 354.2 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002027/0.1051, allocations: 103.7 kB / 354.3 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002077/0.1053, allocations: 67.86 kB / 354.3 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002869/0.1056, allocations: 227.5 kB / 354.6 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001522/0.1057, allocations: 69 kB / 354.6 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001232/0.1059, allocations: 111.5 kB / 354.7 MB, free: 408 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001598/0.106, allocations: 127.5 kB / 354.9 MB, free: 280 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.561e-05/0.1061, allocations: 16 kB / 354.9 MB, free: 264 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.456e-05/0.1061, allocations: 12 kB / 354.9 MB, free: 252 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.049e-05/0.1062, allocations: 51.75 kB / 355 MB, free: 200 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.448e-05/0.1062, allocations: 77.58 kB / 355 MB, free: 116 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002223/0.1065, allocations: 235.7 kB / 355.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.1065, allocations: 0 / 355.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1065, allocations: 3.938 kB / 355.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.1065, allocations: 0 / 355.3 MB, free: 15.88 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.001062/0.1076, allocations: 0.6145 MB / 355.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/0.1076, allocations: 12.03 kB / 355.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.197e-05/0.1077, allocations: 54.55 kB / 355.9 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.219e-05/0.1077, allocations: 23.72 kB / 356 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002978/0.108, allocations: 274.3 kB / 356.2 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.846e-05/0.1081, allocations: 16.44 kB / 356.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.126e-05/0.1081, allocations: 16 kB / 356.3 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006211/0.1087, allocations: 285.8 kB / 356.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.1088, allocations: 0 / 356.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.063e-05/0.1088, allocations: 15.95 kB / 356.6 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.1088, allocations: 4 kB / 356.6 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007694/0.1096, allocations: 277.5 kB / 356.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001564/0.1112, allocations: 0.9715 MB / 357.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008285/0.112, allocations: 274.6 kB / 358.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.235e-05/0.112, allocations: 4 kB / 358.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005097/0.1125, allocations: 185.8 kB / 358.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.343e-06/0.1126, allocations: 3.938 kB / 358.3 MB, free: 12.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002473/0.115, allocations: 0.7334 MB / 359 MB, free: 11.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.725e-05/0.1151, allocations: 106.8 kB / 359.1 MB, free: 11.76 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000285/0.1154, allocations: 266.5 kB / 359.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.918e-05/0.1155, allocations: 33.7 kB / 359.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001293/0.1156, allocations: 175.9 kB / 359.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.67e-05/0.1156, allocations: 43.39 kB / 359.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.234e-05/0.1157, allocations: 4 kB / 359.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.1158, allocations: 330.8 kB / 359.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000336/0.1162, allocations: 115.9 kB / 360 MB, free: 10.79 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003778/0.1165, allocations: 184.3 kB / 360.2 MB, free: 10.58 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003613/0.1169, allocations: 145.7 kB / 360.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1169, allocations: 4 kB / 360.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001198/0.1181, allocations: 467.6 kB / 360.8 MB, free: 9.957 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.967e-05/0.1182, allocations: 37.75 kB / 360.9 MB, free: 9.914 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.1182, allocations: 4 kB / 360.9 MB, free: 9.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003662/0.1186, allocations: 80.75 kB / 360.9 MB, free: 9.828 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002082/0.1188, allocations: 47.95 kB / 361 MB, free: 9.781 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002693/0.1215, allocations: 1.826 MB / 362.8 MB, free: 7.816 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004204/0.1219, allocations: 55.81 kB / 362.9 MB, free: 7.762 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.864e-05/0.122, allocations: 15.94 kB / 362.9 MB, free: 7.746 MB / 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 ($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 (19): * Single equations (assignments): 17 * 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.0001925/0.1222, allocations: 133.8 kB / 363 MB, free: 7.605 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.112e-05/0.1223, allocations: 23.72 kB / 363 MB, free: 7.582 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.638e-05/0.1223, allocations: 21.84 kB / 363.1 MB, free: 7.559 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.733e-06/0.1223, allocations: 11.94 kB / 363.1 MB, free: 7.547 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.1223, allocations: 4 kB / 363.1 MB, free: 7.543 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.1224, allocations: 0 / 363.1 MB, free: 7.543 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003172/0.1227, allocations: 289.4 kB / 363.4 MB, free: 7.211 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1227, allocations: 0 / 363.4 MB, free: 7.211 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001411/0.1228, allocations: 35.91 kB / 363.4 MB, free: 7.176 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002628/0.1231, allocations: 80.8 kB / 363.5 MB, free: 7.094 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.494e-05/0.1231, allocations: 4 kB / 363.5 MB, free: 7.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002186/0.1253, allocations: 1.706 MB / 365.2 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.1253, allocations: 32 / 365.2 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001078/0.1264, allocations: 396.4 kB / 365.6 MB, free: 4.848 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.186e-05/0.1265, allocations: 96.91 kB / 365.7 MB, free: 4.734 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.575e-05/0.1265, allocations: 4 kB / 365.7 MB, free: 4.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002496/0.1268, allocations: 47.95 kB / 365.7 MB, free: 4.684 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.258e-05/0.1269, allocations: 19.97 kB / 365.7 MB, free: 4.664 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.028e-05/0.1269, allocations: 3.938 kB / 365.7 MB, free: 4.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001821/0.1271, allocations: 190 kB / 365.9 MB, free: 4.477 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1271, allocations: 3.938 kB / 365.9 MB, free: 4.473 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003555/0.1275, allocations: 75.84 kB / 366 MB, free: 4.398 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.001405/0.1289, allocations: 0.9324 MB / 366.9 MB, free: 3.434 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009564/0.1298, allocations: 433.8 kB / 367.4 MB, free: 2.984 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1299, allocations: 4.312 kB / 367.4 MB, free: 2.98 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004697/0.1303, allocations: 238.6 kB / 367.6 MB, free: 2.734 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002762/0.1306, allocations: 47.25 kB / 367.6 MB, free: 2.691 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1625/0.2931, allocations: 2.718 MB / 370.4 MB, free: 24.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002833/0.2934, allocations: 0.7536 MB / 371.1 MB, free: 23.83 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001961/0.2936, allocations: 22.11 kB / 371.1 MB, free: 23.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001592/0.2938, allocations: 71.86 kB / 371.2 MB, free: 23.82 MB / 302.1 MB Notification: Performance of SimCode: time 1.924e-06/0.2938, allocations: 0 / 371.2 MB, free: 23.82 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02598/0.3198, allocations: 5.588 MB / 376.8 MB, free: 23.55 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000173/0.32, allocations: 221.7 kB / 377 MB, free: 23.3 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.957/2.277, allocations: 0 / 377 MB, free: 23.3 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat does not exist to compare? outputFormat=mat