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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001001/0.001001, allocations: 182.2 kB / 17.02 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.379/1.379, allocations: 205.4 MB / 223.1 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008412/0.0008413, allocations: 92.16 kB / 271.5 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002802/0.0002802, allocations: 12 kB / 328.4 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2327/0.233, allocations: 47.57 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09533/0.3284, allocations: 79.2 MB / 455.1 MB, free: 1.445 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002435/0.3286, allocations: 79.95 kB / 455.2 MB, free: 1.367 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01668/0.3453, allocations: 5.746 MB / 460.9 MB, free: 11.6 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3454, allocations: 0 / 460.9 MB, free: 11.6 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.911e-05/0.3454, allocations: 8 kB / 461 MB, free: 11.59 MB / 346.7 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.00114/0.3465, allocations: 0.6067 MB / 461.6 MB, free: 10.93 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.3466, allocations: 8.031 kB / 461.6 MB, free: 10.92 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.109e-05/0.3467, allocations: 54.55 kB / 461.6 MB, free: 10.86 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.838e-05/0.3468, allocations: 39.61 kB / 461.7 MB, free: 10.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003941/0.3472, allocations: 271.2 kB / 461.9 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.478e-05/0.3472, allocations: 24.38 kB / 461.9 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.538e-05/0.3473, allocations: 27.94 kB / 462 MB, free: 10.46 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005979/0.3479, allocations: 255.2 kB / 462.2 MB, free: 10.21 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.3479, allocations: 0 / 462.2 MB, free: 10.21 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.628e-05/0.3479, allocations: 15.98 kB / 462.2 MB, free: 10.19 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.348, allocations: 4 kB / 462.2 MB, free: 10.19 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007413/0.3487, allocations: 269.6 kB / 462.5 MB, free: 9.926 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001743/0.3505, allocations: 0.9558 MB / 463.5 MB, free: 8.891 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008514/0.3513, allocations: 266.6 kB / 463.7 MB, free: 8.621 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.41e-05/0.3514, allocations: 0 / 463.7 MB, free: 8.621 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005328/0.3519, allocations: 201.8 kB / 463.9 MB, free: 8.402 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 1.563e-06/0.3519, allocations: 0 / 463.9 MB, free: 8.402 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.002235/0.3542, allocations: 0.7171 MB / 464.6 MB, free: 7.66 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.332e-05/0.3542, allocations: 110.8 kB / 464.7 MB, free: 7.527 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002682/0.3545, allocations: 241.8 kB / 465 MB, free: 7.289 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.739e-05/0.3546, allocations: 29.7 kB / 465 MB, free: 7.254 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.3547, allocations: 175.8 kB / 465.2 MB, free: 7.078 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.399e-05/0.3547, allocations: 39.45 kB / 465.2 MB, free: 7.039 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.382e-05/0.3547, allocations: 8 kB / 465.2 MB, free: 7.031 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.3549, allocations: 334.8 kB / 465.6 MB, free: 6.695 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003383/0.3552, allocations: 115.9 kB / 465.7 MB, free: 6.582 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003807/0.3556, allocations: 188.5 kB / 465.9 MB, free: 6.367 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003684/0.356, allocations: 154.6 kB / 466 MB, free: 6.211 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.356, allocations: 0 / 466 MB, free: 6.211 MB / 346.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001205/0.3572, allocations: 476.7 kB / 466.5 MB, free: 5.73 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004178/0.3577, allocations: 0.815 MB / 467.3 MB, free: 4.848 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.3577, allocations: 7.984 kB / 467.3 MB, free: 4.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003824/0.3581, allocations: 76.81 kB / 467.4 MB, free: 4.762 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002145/0.3583, allocations: 55.89 kB / 467.4 MB, free: 4.707 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001047/0.3593, allocations: 0.7045 MB / 468.1 MB, free: 3.977 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003408/0.3597, allocations: 64.06 kB / 468.2 MB, free: 3.914 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.618e-05/0.3597, allocations: 7.984 kB / 468.2 MB, free: 3.906 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.018e-05/0.3598, allocations: 4.938 kB / 468.2 MB, free: 3.902 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006964/0.3605, allocations: 318.3 kB / 468.5 MB, free: 3.582 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.197e-06/0.3605, allocations: 0 / 468.5 MB, free: 3.582 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.524e-05/0.3605, allocations: 24.84 kB / 468.5 MB, free: 3.555 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00021/0.3608, allocations: 51.91 kB / 468.6 MB, free: 3.504 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000972/0.3617, allocations: 1.321 MB / 469.9 MB, free: 2.043 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002829/0.362, allocations: 55.83 kB / 470 MB, free: 1.988 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.542e-05/0.3621, allocations: 4 kB / 470 MB, free: 1.984 MB / 346.7 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.0001796/0.3623, allocations: 223.8 kB / 470.2 MB, free: 1.758 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.91e-05/0.3623, allocations: 27.72 kB / 470.2 MB, free: 1.73 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.832e-05/0.3624, allocations: 21.83 kB / 470.2 MB, free: 1.711 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.3624, allocations: 3.938 kB / 470.2 MB, free: 1.707 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.405e-06/0.3624, allocations: 4 kB / 470.2 MB, free: 1.703 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.3624, allocations: 3.953 kB / 470.2 MB, free: 1.699 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003271/0.3627, allocations: 289.4 kB / 470.5 MB, free: 1.367 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.3627, allocations: 4 kB / 470.5 MB, free: 1.363 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001655/0.3629, allocations: 27.97 kB / 470.6 MB, free: 1.336 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002681/0.3632, allocations: 84.8 kB / 470.6 MB, free: 1.25 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.976e-05/0.3632, allocations: 0 / 470.6 MB, free: 1.25 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002309/0.3655, allocations: 1.791 MB / 472.4 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.3655, allocations: 3.984 kB / 472.4 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001023/0.3666, allocations: 401.5 kB / 472.8 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.643e-05/0.3667, allocations: 100.8 kB / 472.9 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.193e-05/0.3667, allocations: 4 kB / 472.9 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002734/0.367, allocations: 47.95 kB / 473 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.704e-05/0.3671, allocations: 19.97 kB / 473 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.246e-05/0.3671, allocations: 4 kB / 473 MB, free: 14.71 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001946/0.3673, allocations: 193.9 kB / 473.2 MB, free: 14.53 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3673, allocations: 0 / 473.2 MB, free: 14.53 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004726/0.3678, allocations: 123.7 kB / 473.3 MB, free: 14.41 MB / 362.7 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.001335/0.3691, allocations: 0.9291 MB / 474.2 MB, free: 13.45 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001579/0.3707, allocations: 0.7011 MB / 474.9 MB, free: 12.71 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3707, allocations: 0 / 474.9 MB, free: 12.71 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004889/0.3712, allocations: 249.9 kB / 475.2 MB, free: 12.45 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002703/0.3715, allocations: 45.05 kB / 475.2 MB, free: 12.41 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005395/0.3769, allocations: 3.419 MB / 478.6 MB, free: 8.91 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003547/0.3773, allocations: 0.756 MB / 479.4 MB, free: 8.129 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001415/0.3774, allocations: 26.23 kB / 479.4 MB, free: 8.105 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001332/0.3776, allocations: 79.41 kB / 479.5 MB, free: 8.027 MB / 362.7 MB Notification: Performance of SimCode: time 8.92e-07/0.3776, allocations: 0 / 479.5 MB, free: 8.027 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0194/0.397, allocations: 5.758 MB / 485.3 MB, free: 2.293 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001823/0.3972, allocations: 239.4 kB / 485.5 MB, free: 2.039 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.851/2.248, allocations: 0 / 485.5 MB, free: 2.039 MB / 362.7 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) 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