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.0009326/0.0009329, allocations: 95.89 kB / 16.31 MB, free: 5.996 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.0008889/0.0008891, allocations: 184.6 kB / 17.2 MB, free: 5.91 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.481/1.481, allocations: 223.2 MB / 241.1 MB, free: 5.379 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000382/0.0003822, allocations: 7.562 kB / 300.8 MB, free: 6.031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1363/0.1367, allocations: 50.43 MB / 351.2 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.003422/0.1401, allocations: 2.238 MB / 353.5 MB, free: 9.324 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00127/0.1414, allocations: 0.6666 MB / 354.1 MB, free: 8.652 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001414/0.1416, allocations: 4 kB / 354.2 MB, free: 8.648 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.143e-05/0.1417, allocations: 31.77 kB / 354.2 MB, free: 8.617 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002682/0.142, allocations: 103.6 kB / 354.3 MB, free: 8.516 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002589/0.1422, allocations: 67.86 kB / 354.4 MB, free: 8.449 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003828/0.1426, allocations: 223.5 kB / 354.6 MB, free: 8.23 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002029/0.1428, allocations: 69 kB / 354.6 MB, free: 8.16 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001727/0.143, allocations: 115.5 kB / 354.7 MB, free: 8.047 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002268/0.1432, allocations: 127.5 kB / 354.9 MB, free: 7.922 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.747e-05/0.1433, allocations: 23.94 kB / 354.9 MB, free: 7.898 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.011e-05/0.1434, allocations: 16 kB / 354.9 MB, free: 7.883 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.181e-05/0.1434, allocations: 43.81 kB / 355 MB, free: 7.84 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.391e-05/0.1435, allocations: 69.58 kB / 355 MB, free: 7.766 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003102/0.1439, allocations: 239.3 kB / 355.3 MB, free: 7.531 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.1439, allocations: 0 / 355.3 MB, free: 7.531 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1439, allocations: 0 / 355.3 MB, free: 7.531 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.747e-06/0.1439, allocations: 7.938 kB / 355.3 MB, free: 7.523 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.001398/0.1453, allocations: 0.6183 MB / 355.9 MB, free: 6.848 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.1454, allocations: 12.03 kB / 355.9 MB, free: 6.836 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.116e-05/0.1454, allocations: 50.55 kB / 355.9 MB, free: 6.777 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.872e-05/0.1455, allocations: 31.7 kB / 356 MB, free: 6.746 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004079/0.1459, allocations: 266.5 kB / 356.2 MB, free: 6.445 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.36e-05/0.146, allocations: 16.44 kB / 356.3 MB, free: 6.43 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.517e-05/0.146, allocations: 20 kB / 356.3 MB, free: 6.41 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008222/0.1469, allocations: 285.8 kB / 356.5 MB, free: 6.121 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.1469, allocations: 0 / 356.5 MB, free: 6.121 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.438e-05/0.1469, allocations: 11.95 kB / 356.6 MB, free: 6.109 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.328e-06/0.147, allocations: 12 kB / 356.6 MB, free: 6.098 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009913/0.148, allocations: 269.5 kB / 356.8 MB, free: 5.832 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001992/0.15, allocations: 0.9793 MB / 357.8 MB, free: 4.777 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001088/0.1511, allocations: 266.6 kB / 358.1 MB, free: 4.508 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.209e-05/0.1511, allocations: 3.938 kB / 358.1 MB, free: 4.504 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006155/0.1517, allocations: 185.9 kB / 358.3 MB, free: 4.301 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.684e-06/0.1517, allocations: 0 / 358.3 MB, free: 4.301 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.00304/0.1548, allocations: 0.741 MB / 359 MB, free: 3.531 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.924e-05/0.1549, allocations: 102.8 kB / 359.1 MB, free: 3.406 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003783/0.1553, allocations: 270.6 kB / 359.4 MB, free: 3.141 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.04e-05/0.1553, allocations: 29.7 kB / 359.4 MB, free: 3.105 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001494/0.1555, allocations: 183.7 kB / 359.6 MB, free: 2.922 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.468e-05/0.1555, allocations: 43.66 kB / 359.6 MB, free: 2.879 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.669e-05/0.1556, allocations: 0 / 359.6 MB, free: 2.879 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.1557, allocations: 342.8 kB / 360 MB, free: 2.535 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004589/0.1562, allocations: 107.9 kB / 360.1 MB, free: 2.43 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005282/0.1567, allocations: 194.2 kB / 360.2 MB, free: 2.203 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004739/0.1572, allocations: 149.7 kB / 360.4 MB, free: 2.051 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.1572, allocations: 0 / 360.4 MB, free: 2.051 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001577/0.1588, allocations: 493.6 kB / 360.9 MB, free: 1.555 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.652e-05/0.1589, allocations: 29.7 kB / 360.9 MB, free: 1.52 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.864e-06/0.1589, allocations: 4 kB / 360.9 MB, free: 1.516 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003538/0.1592, allocations: 84.86 kB / 361 MB, free: 1.43 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001958/0.1594, allocations: 51.89 kB / 361 MB, free: 1.379 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002656/0.1621, allocations: 1.885 MB / 362.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003045/0.1624, allocations: 63.67 kB / 363 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.204e-05/0.1625, allocations: 8 kB / 363 MB, free: 15.29 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.0001339/0.1626, allocations: 137.9 kB / 363.1 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.227e-05/0.1626, allocations: 23.72 kB / 363.2 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.07e-05/0.1627, allocations: 29.83 kB / 363.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.1627, allocations: 3.953 kB / 363.2 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-06/0.1627, allocations: 3.938 kB / 363.2 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.115e-06/0.1627, allocations: 0 / 363.2 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000255/0.163, allocations: 297.4 kB / 363.5 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.163, allocations: 0 / 363.5 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001442/0.1631, allocations: 31.92 kB / 363.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002481/0.1634, allocations: 80.8 kB / 363.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/0.1634, allocations: 4 kB / 363.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002253/0.1657, allocations: 1.803 MB / 365.4 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1657, allocations: 0 / 365.4 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001042/0.1667, allocations: 396 kB / 365.8 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.808e-05/0.1668, allocations: 100.8 kB / 365.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.746e-05/0.1669, allocations: 4 kB / 365.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002535/0.1671, allocations: 39.95 kB / 365.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.618e-05/0.1672, allocations: 19.97 kB / 365.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.164e-05/0.1672, allocations: 8 kB / 366 MB, free: 12.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001803/0.1674, allocations: 194 kB / 366.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1674, allocations: 3.938 kB / 366.1 MB, free: 11.9 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004602/0.1679, allocations: 71.84 kB / 366.2 MB, free: 11.83 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.001357/0.1693, allocations: 0.9253 MB / 367.1 MB, free: 10.87 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001222/0.1705, allocations: 0.5156 MB / 367.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1705, allocations: 0 / 367.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004773/0.171, allocations: 247 kB / 367.9 MB, free: 10.08 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002679/0.1713, allocations: 44.48 kB / 367.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005537/0.1768, allocations: 3.566 MB / 371.5 MB, free: 6.367 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003149/0.1771, allocations: 0.756 MB / 372.3 MB, free: 5.582 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001151/0.1773, allocations: 22.3 kB / 372.3 MB, free: 5.562 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001114/0.1774, allocations: 79.34 kB / 372.4 MB, free: 5.484 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1774, allocations: 0 / 372.4 MB, free: 5.484 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0168/0.1942, allocations: 5.59 MB / 378 MB, free: 152 kB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002458/0.1945, allocations: 233 kB / 378.2 MB, free: 15.91 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.942/2.136, allocations: 3.938 kB / 378.2 MB, free: 15.91 MB / 318.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