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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001239/0.001238, allocations: 180.9 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001044/0.001044, allocations: 91.25 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002731/0.0002731, allocations: 8 kB / 351.2 MB, free: 15.17 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2588/0.2591, allocations: 50.4 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1038/0.363, allocations: 80.76 MB / 482.4 MB, free: 15.68 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002971/0.3633, allocations: 83.95 kB / 482.4 MB, free: 15.6 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01748/0.3808, allocations: 5.853 MB / 488.3 MB, free: 9.715 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.256e-06/0.3809, allocations: 0 / 488.3 MB, free: 9.715 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.744e-05/0.3809, allocations: 4 kB / 488.3 MB, free: 9.711 MB / 362.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.001413/0.3824, allocations: 0.6144 MB / 488.9 MB, free: 9.043 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.688e-05/0.3824, allocations: 8.031 kB / 488.9 MB, free: 9.035 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.67e-05/0.3825, allocations: 54.55 kB / 489 MB, free: 8.973 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.967e-05/0.3826, allocations: 31.62 kB / 489 MB, free: 8.941 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004576/0.3831, allocations: 274.9 kB / 489.3 MB, free: 8.633 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.473e-05/0.3831, allocations: 12.44 kB / 489.3 MB, free: 8.621 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.672e-05/0.3832, allocations: 24 kB / 489.3 MB, free: 8.598 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008122/0.384, allocations: 290.1 kB / 489.6 MB, free: 8.301 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.583e-05/0.384, allocations: 7.953 kB / 489.6 MB, free: 8.293 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.377e-05/0.3841, allocations: 8 kB / 489.6 MB, free: 8.285 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.3841, allocations: 4 kB / 489.6 MB, free: 8.281 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001031/0.3851, allocations: 269.6 kB / 489.9 MB, free: 8.02 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001871/0.387, allocations: 1.025 MB / 490.9 MB, free: 6.914 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008481/0.3879, allocations: 270.5 kB / 491.2 MB, free: 6.641 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.378e-05/0.3879, allocations: 8 kB / 491.2 MB, free: 6.633 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005612/0.3885, allocations: 185.9 kB / 491.3 MB, free: 6.43 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 5.2e-06/0.3885, allocations: 0 / 491.3 MB, free: 6.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.002382/0.3909, allocations: 0.7289 MB / 492.1 MB, free: 5.676 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.871e-05/0.391, allocations: 106.8 kB / 492.2 MB, free: 5.547 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003103/0.3913, allocations: 241.8 kB / 492.4 MB, free: 5.312 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.812e-05/0.3914, allocations: 33.64 kB / 492.4 MB, free: 5.273 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001443/0.3915, allocations: 179.7 kB / 492.6 MB, free: 5.094 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.6e-05/0.3916, allocations: 47.44 kB / 492.7 MB, free: 5.047 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.534e-05/0.3916, allocations: 4 kB / 492.7 MB, free: 5.043 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.3918, allocations: 330.8 kB / 493 MB, free: 4.711 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003442/0.3921, allocations: 115.9 kB / 493.1 MB, free: 4.598 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004005/0.3925, allocations: 202.3 kB / 493.3 MB, free: 4.363 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004012/0.3929, allocations: 150.8 kB / 493.5 MB, free: 4.211 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/0.393, allocations: 3.984 kB / 493.5 MB, free: 4.207 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001163/0.3941, allocations: 478.5 kB / 493.9 MB, free: 3.727 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.743e-05/0.3942, allocations: 37.69 kB / 494 MB, free: 3.684 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.3942, allocations: 4.031 kB / 494 MB, free: 3.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004177/0.3946, allocations: 84.8 kB / 494 MB, free: 3.594 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002099/0.3949, allocations: 51.91 kB / 494.1 MB, free: 3.543 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002942/0.3978, allocations: 1.889 MB / 496 MB, free: 1.516 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003604/0.3982, allocations: 59.86 kB / 496 MB, free: 1.457 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.53e-05/0.3982, allocations: 8 kB / 496.1 MB, free: 1.449 MB / 362.7 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.0002019/0.3984, allocations: 141.7 kB / 496.2 MB, free: 1.301 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.332e-05/0.3985, allocations: 23.72 kB / 496.2 MB, free: 1.277 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.735e-05/0.3985, allocations: 29.83 kB / 496.2 MB, free: 1.246 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.3985, allocations: 3.953 kB / 496.3 MB, free: 1.242 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.325e-06/0.3986, allocations: 128 / 496.3 MB, free: 1.242 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.283e-06/0.3986, allocations: 4 kB / 496.3 MB, free: 1.238 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003632/0.3989, allocations: 297.4 kB / 496.5 MB, free: 0.8984 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.399, allocations: 4 kB / 496.5 MB, free: 0.8945 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001462/0.3991, allocations: 27.97 kB / 496.6 MB, free: 0.8672 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002796/0.3994, allocations: 84.8 kB / 496.7 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.773e-05/0.3994, allocations: 0 / 496.7 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002481/0.4019, allocations: 1.783 MB / 498.4 MB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.4019, allocations: 0 / 498.4 MB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00109/0.403, allocations: 405.5 kB / 498.8 MB, free: 14.44 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.841e-05/0.4031, allocations: 93.05 kB / 498.9 MB, free: 14.33 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.059e-05/0.4032, allocations: 11.98 kB / 498.9 MB, free: 14.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002597/0.4035, allocations: 39.95 kB / 499 MB, free: 14.28 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.4036, allocations: 24.03 kB / 499 MB, free: 14.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.592e-05/0.4036, allocations: 8 kB / 499 MB, free: 14.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002444/0.4038, allocations: 194 kB / 499.2 MB, free: 14.06 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4038, allocations: 7.938 kB / 499.2 MB, free: 14.05 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004394/0.4043, allocations: 67.84 kB / 499.3 MB, free: 13.99 MB / 378.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.001609/0.4059, allocations: 0.9441 MB / 0.4885 GB, free: 13.02 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001329/0.4072, allocations: 0.5095 MB / 0.489 GB, free: 12.48 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.4073, allocations: 0 / 0.489 GB, free: 12.48 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004981/0.4078, allocations: 246.1 kB / 0.4892 GB, free: 12.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003564/0.4081, allocations: 54.73 kB / 0.4893 GB, free: 12.18 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006032/0.4142, allocations: 3.572 MB / 0.4928 GB, free: 8.516 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004065/0.4146, allocations: 0.7482 MB / 0.4935 GB, free: 7.738 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001412/0.4148, allocations: 30.27 kB / 0.4935 GB, free: 7.711 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001271/0.4149, allocations: 71.42 kB / 0.4936 GB, free: 7.641 MB / 378.7 MB Notification: Performance of SimCode: time 1.863e-06/0.4149, allocations: 0 / 0.4936 GB, free: 7.641 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02312/0.438, allocations: 5.588 MB / 0.4991 GB, free: 2.305 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002089/0.4383, allocations: 231.8 kB / 0.4993 GB, free: 2.059 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.943/2.381, allocations: 0 / 0.4993 GB, free: 2.059 MB / 378.7 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