Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.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.SchmittTrigger,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",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.001051/0.001051, allocations: 172.3 kB / 14.1 MB, free: 1.223 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.42/1.42, allocations: 205.2 MB / 219.8 MB, free: 14.21 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.0008122/0.0008122, allocations: 86.66 kB / 268 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.087e-05/3.09e-05, allocations: 4 kB / 322.6 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08186/0.08191, allocations: 47.58 MB / 370.1 MB, free: 1.598 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2745/0.3564, allocations: 79.1 MB / 449.2 MB, free: 14.19 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002024/0.3567, allocations: 76.95 kB / 449.3 MB, free: 14.15 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01597/0.3726, allocations: 5.723 MB / 455 MB, free: 9.238 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.3727, allocations: 0 / 455 MB, free: 9.238 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.105e-05/0.3727, allocations: 12 kB / 455 MB, free: 9.227 MB / 330.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.0008595/0.3736, allocations: 0.5687 MB / 455.6 MB, free: 8.625 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.3736, allocations: 8.031 kB / 455.6 MB, free: 8.617 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.326e-05/0.3737, allocations: 60.34 kB / 455.7 MB, free: 8.562 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.125e-05/0.3738, allocations: 31.62 kB / 455.7 MB, free: 8.531 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000318/0.3741, allocations: 267.7 kB / 456 MB, free: 8.254 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.813e-05/0.3741, allocations: 19.77 kB / 456 MB, free: 8.242 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.646e-05/0.3742, allocations: 22.62 kB / 456 MB, free: 8.227 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003271/0.3745, allocations: 193.8 kB / 456.2 MB, free: 8.086 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.3745, allocations: 0 / 456.2 MB, free: 8.086 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.25e-05/0.3745, allocations: 5.5 kB / 456.2 MB, free: 8.086 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.336e-06/0.3746, allocations: 11.98 kB / 456.2 MB, free: 8.074 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002512/0.3748, allocations: 153 kB / 456.4 MB, free: 7.984 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001544/0.3764, allocations: 0.9505 MB / 457.3 MB, free: 7.109 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003116/0.3767, allocations: 134.4 kB / 457.5 MB, free: 7.016 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.328e-05/0.3768, allocations: 58.48 kB / 457.5 MB, free: 6.977 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.169e-05/0.3768, allocations: 0 / 457.5 MB, free: 6.977 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002242/0.3771, allocations: 148.5 kB / 457.7 MB, free: 6.836 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 2.945e-06/0.3771, allocations: 0 / 457.7 MB, free: 6.836 MB / 330.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005949/0.3777, allocations: 234.2 kB / 457.9 MB, free: 6.633 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.712e-05/0.3777, allocations: 106.8 kB / 458 MB, free: 6.504 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002235/0.378, allocations: 237.2 kB / 458.2 MB, free: 6.305 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.368e-05/0.378, allocations: 29.7 kB / 458.3 MB, free: 6.27 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.167e-05/0.3781, allocations: 176 kB / 458.4 MB, free: 6.125 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.279e-05/0.3781, allocations: 42.64 kB / 458.5 MB, free: 6.09 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.115e-05/0.3782, allocations: 3.438 kB / 458.5 MB, free: 6.09 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.3783, allocations: 332.9 kB / 458.8 MB, free: 5.766 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001063/0.3784, allocations: 55.48 kB / 458.8 MB, free: 5.727 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001291/0.3785, allocations: 113.8 kB / 459 MB, free: 5.613 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001155/0.3786, allocations: 86.67 kB / 459 MB, free: 5.543 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.3786, allocations: 0 / 459 MB, free: 5.543 MB / 330.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006305/0.3793, allocations: 327.8 kB / 459.4 MB, free: 5.234 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002507/0.3795, allocations: 0.6451 MB / 460 MB, free: 4.535 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.3796, allocations: 4 kB / 460 MB, free: 4.531 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002063/0.3798, allocations: 44.84 kB / 460.1 MB, free: 4.484 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001957/0.38, allocations: 47.91 kB / 460.1 MB, free: 4.438 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004123/0.3804, allocations: 0.5681 MB / 460.7 MB, free: 3.844 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003268/0.3808, allocations: 63.77 kB / 460.7 MB, free: 3.781 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.906e-05/0.3808, allocations: 4 kB / 460.7 MB, free: 3.777 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.087e-05/0.3808, allocations: 7.953 kB / 460.7 MB, free: 3.77 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000353/0.3812, allocations: 219 kB / 461 MB, free: 3.547 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.445e-06/0.3812, allocations: 192 / 461 MB, free: 3.547 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.423e-05/0.3812, allocations: 36.78 kB / 461 MB, free: 3.508 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001821/0.3814, allocations: 43.97 kB / 461 MB, free: 3.465 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001087/0.3825, allocations: 1.436 MB / 462.5 MB, free: 1.891 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002565/0.3828, allocations: 47.88 kB / 462.5 MB, free: 1.844 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.736e-05/0.3828, allocations: 8 kB / 462.5 MB, free: 1.836 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * 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.0001033/0.3829, allocations: 117 kB / 462.6 MB, free: 1.715 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.538e-05/0.383, allocations: 23.72 kB / 462.7 MB, free: 1.691 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.107e-05/0.383, allocations: 25.89 kB / 462.7 MB, free: 1.66 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.3831, allocations: 4.062 kB / 462.7 MB, free: 1.656 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.3831, allocations: 4 kB / 462.7 MB, free: 1.652 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.3831, allocations: 3.953 kB / 462.7 MB, free: 1.648 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002583/0.3833, allocations: 297.5 kB / 463 MB, free: 1.309 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-06/0.3833, allocations: 4 kB / 463 MB, free: 1.305 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001396/0.3835, allocations: 27.97 kB / 463 MB, free: 1.277 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001156/0.3836, allocations: 40.84 kB / 463.1 MB, free: 1.234 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.469e-05/0.3836, allocations: 4 kB / 463.1 MB, free: 1.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001368/0.385, allocations: 1.491 MB / 464.6 MB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.385, allocations: 192 / 464.6 MB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005483/0.3856, allocations: 261.7 kB / 464.8 MB, free: 15.33 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.293e-05/0.3857, allocations: 104.8 kB / 464.9 MB, free: 15.21 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.332e-05/0.3857, allocations: 8 kB / 464.9 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002553/0.386, allocations: 47.95 kB / 465 MB, free: 15.16 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.752e-05/0.3861, allocations: 23.91 kB / 465 MB, free: 15.13 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.297e-05/0.3861, allocations: 4 kB / 465 MB, free: 15.13 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001779/0.3863, allocations: 183.1 kB / 465.2 MB, free: 14.95 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3863, allocations: 0 / 465.2 MB, free: 14.95 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004461/0.3867, allocations: 127.7 kB / 465.3 MB, free: 14.83 MB / 346.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) * 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.0008687/0.3876, allocations: 0.7964 MB / 466.1 MB, free: 14 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006926/0.3883, allocations: 480.1 kB / 466.6 MB, free: 13.49 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3883, allocations: 4.062 kB / 466.6 MB, free: 13.49 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002316/0.3886, allocations: 186.5 kB / 466.8 MB, free: 13.29 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002589/0.3888, allocations: 41.59 kB / 466.8 MB, free: 13.25 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006918/0.3895, allocations: 325.8 kB / 467.1 MB, free: 12.9 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002895/0.3898, allocations: 0.7531 MB / 467.9 MB, free: 12.12 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001627/0.39, allocations: 38.05 kB / 467.9 MB, free: 12.09 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001105/0.3901, allocations: 67.42 kB / 468 MB, free: 12.02 MB / 346.7 MB Notification: Performance of SimCode: time 4.9e-07/0.3901, allocations: 0 / 468 MB, free: 12.02 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01788/0.408, allocations: 5.933 MB / 473.9 MB, free: 6.082 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001769/0.4082, allocations: 202.5 kB / 474.1 MB, free: 5.844 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.721/2.129, allocations: 3.938 kB / 474.1 MB, free: 5.84 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat does not exist to compare? outputFormat=mat