Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_3_2_3_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.0009658/0.0009654, allocations: 97.69 kB / 16.95 MB, free: 6.898 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.001116/0.001116, allocations: 185.1 kB / 17.84 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.822/1.822, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005972/0.0005976, allocations: 15.28 kB / 280.9 MB, free: 3.609 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1434/0.144, allocations: 47.57 MB / 328.5 MB, free: 3.977 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.004281/0.1484, allocations: 2.314 MB / 330.8 MB, free: 1.645 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001762/0.1502, allocations: 0.683 MB / 331.5 MB, free: 0.9531 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001983/0.1504, allocations: 4 kB / 331.5 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001705/0.1506, allocations: 35.75 kB / 331.5 MB, free: 0.9141 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002265/0.1508, allocations: 71.39 kB / 331.6 MB, free: 0.8438 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003327/0.1512, allocations: 63.92 kB / 331.6 MB, free: 0.7812 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004089/0.1516, allocations: 322.6 kB / 331.9 MB, free: 476 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002358/0.1519, allocations: 69.08 kB / 332 MB, free: 412 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002126/0.1521, allocations: 119.5 kB / 332.1 MB, free: 292 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000192/0.1523, allocations: 131.4 kB / 332.3 MB, free: 160 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.512e-05/0.1523, allocations: 12 kB / 332.3 MB, free: 148 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.126e-05/0.1524, allocations: 16 kB / 332.3 MB, free: 132 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.121e-05/0.1524, allocations: 47.77 kB / 332.3 MB, free: 84 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.873e-05/0.1526, allocations: 77.52 kB / 332.4 MB, free: 0 / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003327/0.1529, allocations: 235.6 kB / 332.6 MB, free: 15.77 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.074e-06/0.1529, allocations: 0 / 332.6 MB, free: 15.77 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1529, allocations: 0 / 332.6 MB, free: 15.77 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.684e-06/0.1529, allocations: 0 / 332.6 MB, free: 15.77 MB / 286.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.001518/0.1545, allocations: 0.6184 MB / 333.3 MB, free: 15.09 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.536e-05/0.1545, allocations: 8.031 kB / 333.3 MB, free: 15.08 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.634e-05/0.1546, allocations: 54.55 kB / 333.3 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.388e-05/0.1547, allocations: 35.61 kB / 333.3 MB, free: 14.98 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004768/0.1552, allocations: 270.4 kB / 333.6 MB, free: 14.68 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.296e-05/0.1552, allocations: 16.44 kB / 333.6 MB, free: 14.66 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.624e-05/0.1553, allocations: 24 kB / 333.7 MB, free: 14.64 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007062/0.156, allocations: 259.1 kB / 333.9 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.156, allocations: 0 / 333.9 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.681e-05/0.1561, allocations: 8 kB / 333.9 MB, free: 14.37 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.1561, allocations: 8 kB / 333.9 MB, free: 14.36 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007424/0.1569, allocations: 273.5 kB / 334.2 MB, free: 14.1 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001654/0.1585, allocations: 0.9012 MB / 335.1 MB, free: 13.13 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000817/0.1594, allocations: 274.5 kB / 335.4 MB, free: 12.85 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000327/0.1597, allocations: 124.8 kB / 335.5 MB, free: 12.73 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.204e-05/0.1597, allocations: 0 / 335.5 MB, free: 12.73 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005525/0.1603, allocations: 193.9 kB / 335.7 MB, free: 12.52 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.262e-06/0.1603, allocations: 224 / 335.7 MB, free: 12.52 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0023/0.1626, allocations: 0.7527 MB / 336.4 MB, free: 11.73 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.06e-05/0.1627, allocations: 114.8 kB / 336.5 MB, free: 11.6 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003165/0.163, allocations: 270.5 kB / 336.8 MB, free: 11.32 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.849e-05/0.1631, allocations: 29.7 kB / 336.8 MB, free: 11.29 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/0.1632, allocations: 179.9 kB / 337 MB, free: 11.11 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.049e-05/0.1633, allocations: 39.39 kB / 337 MB, free: 11.07 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.434e-05/0.1633, allocations: 11.94 kB / 337.1 MB, free: 11.06 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.1634, allocations: 334.8 kB / 337.4 MB, free: 10.72 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003225/0.1638, allocations: 111.9 kB / 337.5 MB, free: 10.61 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004013/0.1642, allocations: 189.4 kB / 337.7 MB, free: 10.39 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003587/0.1645, allocations: 145.6 kB / 337.8 MB, free: 10.25 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1646, allocations: 0 / 337.8 MB, free: 10.25 MB / 286.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.00115/0.1657, allocations: 494.9 kB / 338.3 MB, free: 9.75 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001377/0.1659, allocations: 169.6 kB / 338.5 MB, free: 9.547 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.1659, allocations: 4 kB / 338.5 MB, free: 9.543 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003686/0.1663, allocations: 88.73 kB / 338.6 MB, free: 9.453 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001925/0.1665, allocations: 51.95 kB / 338.6 MB, free: 9.402 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002654/0.1691, allocations: 1.857 MB / 340.5 MB, free: 7.402 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003198/0.1695, allocations: 59.7 kB / 340.5 MB, free: 7.344 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.298e-05/0.1695, allocations: 12 kB / 340.5 MB, free: 7.332 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.714e-06/0.1695, allocations: 4 kB / 340.5 MB, free: 7.328 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006839/0.1702, allocations: 314.4 kB / 340.8 MB, free: 7.012 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.006e-06/0.1702, allocations: 128 / 340.8 MB, free: 7.012 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.58e-05/0.1703, allocations: 24.84 kB / 340.9 MB, free: 6.984 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001839/0.1705, allocations: 55.94 kB / 340.9 MB, free: 6.93 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001004/0.1715, allocations: 1.308 MB / 342.2 MB, free: 5.488 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002568/0.1718, allocations: 47.88 kB / 342.3 MB, free: 5.441 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.748e-05/0.1718, allocations: 8 kB / 342.3 MB, free: 5.434 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (20): * Single equations (assignments): 18 * 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.0002123/0.172, allocations: 225.1 kB / 342.5 MB, free: 5.203 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.975e-05/0.1721, allocations: 23.7 kB / 342.5 MB, free: 5.18 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.53e-05/0.1721, allocations: 29.83 kB / 342.6 MB, free: 5.156 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.1721, allocations: 0 / 342.6 MB, free: 5.156 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.963e-06/0.1721, allocations: 0 / 342.6 MB, free: 5.156 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.937e-06/0.1721, allocations: 3.984 kB / 342.6 MB, free: 5.152 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002995/0.1724, allocations: 301.4 kB / 342.9 MB, free: 4.809 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1725, allocations: 3.938 kB / 342.9 MB, free: 4.805 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001289/0.1726, allocations: 27.97 kB / 342.9 MB, free: 4.777 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002502/0.1728, allocations: 84.8 kB / 343 MB, free: 4.691 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.329e-05/0.1729, allocations: 0 / 343 MB, free: 4.691 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00214/0.175, allocations: 1.764 MB / 344.7 MB, free: 2.793 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.608e-06/0.175, allocations: 7.984 kB / 344.7 MB, free: 2.785 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009823/0.176, allocations: 393.5 kB / 345.1 MB, free: 2.379 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.293e-05/0.1761, allocations: 100.8 kB / 345.2 MB, free: 2.262 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.232e-05/0.1762, allocations: 0 / 345.2 MB, free: 2.262 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002331/0.1764, allocations: 47.95 kB / 345.3 MB, free: 2.215 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.153e-05/0.1765, allocations: 19.97 kB / 345.3 MB, free: 2.195 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.268e-05/0.1765, allocations: 4 kB / 345.3 MB, free: 2.191 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002063/0.1767, allocations: 190 kB / 345.5 MB, free: 2.004 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1767, allocations: 0 / 345.5 MB, free: 2.004 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000567/0.1773, allocations: 127.7 kB / 345.6 MB, free: 1.879 MB / 286.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.001341/0.1787, allocations: 0.9297 MB / 346.5 MB, free: 0.918 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001662/0.1803, allocations: 0.8049 MB / 347.3 MB, free: 64 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.1804, allocations: 0 / 347.3 MB, free: 64 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004782/0.1808, allocations: 251.1 kB / 347.6 MB, free: 15.8 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003548/0.1812, allocations: 48.47 kB / 347.6 MB, free: 15.76 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005008/0.1862, allocations: 2.212 MB / 349.8 MB, free: 13.47 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003438/0.1866, allocations: 0.7522 MB / 350.6 MB, free: 12.69 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001411/0.1867, allocations: 34.27 kB / 350.6 MB, free: 12.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001399/0.1869, allocations: 75.41 kB / 350.7 MB, free: 12.59 MB / 302.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1869, allocations: 0 / 350.7 MB, free: 12.59 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02/0.2069, allocations: 5.955 MB / 356.7 MB, free: 6.629 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002048/0.2072, allocations: 247.6 kB / 356.9 MB, free: 6.375 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.24/2.447, allocations: 0 / 356.9 MB, free: 6.375 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat does not exist to compare? outputFormat=mat