Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.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.SchmittTrigger,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001542/0.001542, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 221.5 MB / 230.3 MB, free: 7.516 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008438/0.0008441, allocations: 90.09 kB / 281.2 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.435e-05/1.437e-05, allocations: 8 kB / 337.2 MB, free: 9.914 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.11, allocations: 50.41 MB / 387.6 MB, free: 7.453 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.418/0.528, allocations: 80.04 MB / 467.6 MB, free: 14.66 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002034/0.5283, allocations: 75.95 kB / 467.7 MB, free: 14.59 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01584/0.5441, allocations: 5.78 MB / 473.5 MB, free: 8.793 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.5442, allocations: 0 / 473.5 MB, free: 8.793 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.514e-05/0.5442, allocations: 4 kB / 473.5 MB, free: 8.789 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.0008641/0.5451, allocations: 0.5682 MB / 474 MB, free: 8.168 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.5451, allocations: 16.03 kB / 474 MB, free: 8.152 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.198e-05/0.5452, allocations: 27.62 kB / 474.1 MB, free: 8.125 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003102/0.5455, allocations: 275 kB / 474.3 MB, free: 7.816 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.196e-05/0.5455, allocations: 4 kB / 474.3 MB, free: 7.812 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.34e-05/0.5456, allocations: 12 kB / 474.4 MB, free: 7.801 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002668/0.5459, allocations: 140.9 kB / 474.5 MB, free: 7.664 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003076/0.5462, allocations: 201.2 kB / 474.7 MB, free: 7.457 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.5462, allocations: 0 / 474.7 MB, free: 7.457 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.377e-05/0.5462, allocations: 0 / 474.7 MB, free: 7.457 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.5462, allocations: 8 kB / 474.7 MB, free: 7.449 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001554/0.5478, allocations: 0.978 MB / 475.7 MB, free: 6.402 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000261/0.5481, allocations: 138.6 kB / 475.8 MB, free: 6.258 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.56e-05/0.5482, allocations: 52.86 kB / 475.9 MB, free: 6.203 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.192e-05/0.5482, allocations: 4 kB / 475.9 MB, free: 6.199 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001982/0.5484, allocations: 127.2 kB / 476 MB, free: 6.055 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 1.473e-06/0.5484, allocations: 0 / 476 MB, free: 6.055 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005853/0.549, allocations: 226.6 kB / 476.2 MB, free: 5.824 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.695e-05/0.5491, allocations: 107.4 kB / 476.3 MB, free: 5.695 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001917/0.5493, allocations: 208.5 kB / 476.5 MB, free: 5.488 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.224e-05/0.5493, allocations: 29.7 kB / 476.6 MB, free: 5.453 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.486e-05/0.5494, allocations: 175.8 kB / 476.7 MB, free: 5.277 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.309e-05/0.5494, allocations: 43.39 kB / 476.8 MB, free: 5.234 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.101e-05/0.5495, allocations: 4 kB / 476.8 MB, free: 5.23 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.5496, allocations: 331.4 kB / 477.1 MB, free: 4.898 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.932e-05/0.5497, allocations: 48 kB / 477.1 MB, free: 4.852 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001279/0.5498, allocations: 119.2 kB / 477.3 MB, free: 4.707 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.696e-05/0.5499, allocations: 61.48 kB / 477.3 MB, free: 4.648 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.5499, allocations: 0 / 477.3 MB, free: 4.648 MB / 346.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005949/0.5505, allocations: 286 kB / 477.6 MB, free: 4.359 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.203e-05/0.5506, allocations: 33.7 kB / 477.6 MB, free: 4.32 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.5506, allocations: 0 / 477.6 MB, free: 4.32 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001719/0.5508, allocations: 48.88 kB / 477.7 MB, free: 4.27 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001945/0.551, allocations: 43.91 kB / 477.7 MB, free: 4.227 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001308/0.5523, allocations: 1.44 MB / 479.2 MB, free: 2.668 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003056/0.5526, allocations: 55.8 kB / 479.2 MB, free: 2.613 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.015e-05/0.5526, allocations: 8 kB / 479.2 MB, free: 2.605 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: opAmp.v_in:VARIABLE(unit = "V" ) "Input voltage difference" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (19): * Single equations (assignments): 17 * 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.0001335/0.5528, allocations: 119.8 kB / 479.3 MB, free: 2.484 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005007/0.5533, allocations: 224.9 kB / 479.6 MB, free: 2.258 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.051e-05/0.5533, allocations: 23.89 kB / 479.6 MB, free: 2.234 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.197e-05/0.5534, allocations: 21.95 kB / 479.6 MB, free: 2.219 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.5534, allocations: 4 kB / 479.6 MB, free: 2.215 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.485e-06/0.5534, allocations: 4 kB / 479.6 MB, free: 2.211 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.5534, allocations: 0 / 479.6 MB, free: 2.211 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002098/0.5536, allocations: 258 kB / 479.9 MB, free: 1.922 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.5536, allocations: 0 / 479.9 MB, free: 1.922 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001481/0.5538, allocations: 31.97 kB / 479.9 MB, free: 1.891 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001054/0.5539, allocations: 40.83 kB / 479.9 MB, free: 1.848 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.812e-05/0.5539, allocations: 7.953 kB / 479.9 MB, free: 1.84 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001216/0.5551, allocations: 1.437 MB / 481.4 MB, free: 296 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.5551, allocations: 192 / 481.4 MB, free: 296 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000488/0.5556, allocations: 253.7 kB / 481.6 MB, free: 20 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.497e-05/0.5557, allocations: 100.8 kB / 481.7 MB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.506e-05/0.5558, allocations: 4 kB / 481.7 MB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002538/0.556, allocations: 43.97 kB / 481.8 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.408e-05/0.5561, allocations: 19.97 kB / 481.8 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.392e-05/0.5561, allocations: 7.984 kB / 481.8 MB, free: 15.83 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000144/0.5563, allocations: 164.5 kB / 482 MB, free: 15.66 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5563, allocations: 0 / 482 MB, free: 15.66 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002926/0.5566, allocations: 67.84 kB / 482 MB, free: 15.6 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) * 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.0008212/0.5574, allocations: 0.7859 MB / 482.8 MB, free: 14.78 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004106/0.5578, allocations: 311.9 kB / 483.1 MB, free: 14.46 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.5578, allocations: 0 / 483.1 MB, free: 14.46 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001988/0.5581, allocations: 177.7 kB / 483.3 MB, free: 14.27 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002352/0.5583, allocations: 40.75 kB / 483.3 MB, free: 14.23 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006421/0.559, allocations: 314.8 kB / 483.6 MB, free: 13.89 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003039/0.5593, allocations: 0.7522 MB / 484.4 MB, free: 13.11 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.811e-05/0.5594, allocations: 22.08 kB / 484.4 MB, free: 13.09 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001042/0.5595, allocations: 71.41 kB / 484.5 MB, free: 13.02 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.5595, allocations: 0 / 484.5 MB, free: 13.02 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02328/0.5828, allocations: 4.779 MB / 489.3 MB, free: 8.281 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001918/0.583, allocations: 146.9 kB / 489.4 MB, free: 8.09 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.697/2.28, allocations: 3.938 kB / 489.4 MB, free: 8.086 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat does not exist to compare? outputFormat=mat