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.001134/0.001134, allocations: 181.2 kB / 17.01 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.352/1.352, allocations: 205.4 MB / 223.1 MB, free: 9.043 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.0008604/0.0008604, allocations: 87.77 kB / 271.5 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002574/0.0002573, allocations: 4 kB / 328.4 MB, free: 15.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2709/0.2712, allocations: 47.57 MB / 375.9 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1005/0.3718, allocations: 79.2 MB / 455.1 MB, free: 1.441 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002547/0.3721, allocations: 79.95 kB / 455.2 MB, free: 1.363 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01636/0.3885, allocations: 5.734 MB / 460.9 MB, free: 11.61 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3885, allocations: 0 / 460.9 MB, free: 11.61 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.894e-05/0.3885, allocations: 8 kB / 460.9 MB, free: 11.6 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.001073/0.3896, allocations: 0.6106 MB / 461.6 MB, free: 10.93 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.3897, allocations: 8.031 kB / 461.6 MB, free: 10.93 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.435e-05/0.3897, allocations: 54.55 kB / 461.6 MB, free: 10.86 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.354e-05/0.3898, allocations: 27.62 kB / 461.6 MB, free: 10.84 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003826/0.3902, allocations: 283.1 kB / 461.9 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.259e-05/0.3902, allocations: 20.39 kB / 461.9 MB, free: 10.5 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.024e-05/0.3903, allocations: 24 kB / 462 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005922/0.3909, allocations: 255.2 kB / 462.2 MB, free: 10.22 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.3909, allocations: 0 / 462.2 MB, free: 10.22 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.511e-05/0.3909, allocations: 4 kB / 462.2 MB, free: 10.21 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.3909, allocations: 12 kB / 462.2 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007084/0.3917, allocations: 269.6 kB / 462.5 MB, free: 9.941 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001632/0.3933, allocations: 0.9597 MB / 463.5 MB, free: 8.902 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007913/0.3941, allocations: 266.6 kB / 463.7 MB, free: 8.633 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.689e-05/0.3941, allocations: 4 kB / 463.7 MB, free: 8.629 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005126/0.3947, allocations: 197.8 kB / 463.9 MB, free: 8.414 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 2.735e-06/0.3947, allocations: 3.984 kB / 463.9 MB, free: 8.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.002173/0.3969, allocations: 0.7209 MB / 464.6 MB, free: 7.664 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.853e-05/0.3969, allocations: 110.8 kB / 464.7 MB, free: 7.531 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002562/0.3972, allocations: 233.8 kB / 465 MB, free: 7.301 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/0.3972, allocations: 29.7 kB / 465 MB, free: 7.266 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/0.3974, allocations: 175.9 kB / 465.2 MB, free: 7.09 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.355e-05/0.3974, allocations: 35.45 kB / 465.2 MB, free: 7.055 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.154e-05/0.3974, allocations: 4 kB / 465.2 MB, free: 7.051 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.3976, allocations: 338.8 kB / 465.5 MB, free: 6.711 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003372/0.3979, allocations: 112.1 kB / 465.7 MB, free: 6.598 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003646/0.3983, allocations: 178.4 kB / 465.8 MB, free: 6.398 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003448/0.3986, allocations: 145.6 kB / 466 MB, free: 6.25 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.3986, allocations: 4 kB / 466 MB, free: 6.246 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001116/0.3998, allocations: 451.7 kB / 466.4 MB, free: 5.789 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003002/0.4001, allocations: 0.6451 MB / 467.1 MB, free: 5.09 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.4001, allocations: 0 / 467.1 MB, free: 5.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003613/0.4005, allocations: 84.8 kB / 467.1 MB, free: 5.004 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001897/0.4007, allocations: 43.91 kB / 467.2 MB, free: 4.961 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006345/0.4013, allocations: 0.6304 MB / 467.8 MB, free: 4.305 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003236/0.4017, allocations: 59.8 kB / 467.9 MB, free: 4.246 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.468e-05/0.4017, allocations: 8.219 kB / 467.9 MB, free: 4.238 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.012e-05/0.4017, allocations: 4.938 kB / 467.9 MB, free: 4.234 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006574/0.4024, allocations: 309.1 kB / 468.2 MB, free: 3.926 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.4024, allocations: 8.062 kB / 468.2 MB, free: 3.918 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.293e-05/0.4025, allocations: 32.77 kB / 468.2 MB, free: 3.883 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001948/0.4027, allocations: 39.97 kB / 468.3 MB, free: 3.844 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001164/0.4039, allocations: 1.44 MB / 469.7 MB, free: 2.262 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002904/0.4042, allocations: 55.73 kB / 469.8 MB, free: 2.207 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.782e-05/0.4042, allocations: 8 kB / 469.8 MB, free: 2.199 MB / 346.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 () * Number of clocked 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.0002282/0.4044, allocations: 213 kB / 470 MB, free: 1.98 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.846e-05/0.4045, allocations: 20.09 kB / 470 MB, free: 1.961 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.804e-05/0.4045, allocations: 25.83 kB / 470 MB, free: 1.938 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.4045, allocations: 11.98 kB / 470 MB, free: 1.926 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.4046, allocations: 0 / 470 MB, free: 1.926 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-06/0.4046, allocations: 3.953 kB / 470 MB, free: 1.922 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003063/0.4049, allocations: 297.3 kB / 470.3 MB, free: 1.582 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.4049, allocations: 0 / 470.3 MB, free: 1.582 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001422/0.405, allocations: 23.98 kB / 470.4 MB, free: 1.559 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002809/0.4053, allocations: 84.73 kB / 470.4 MB, free: 1.473 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.4054, allocations: 4 kB / 470.4 MB, free: 1.469 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002243/0.4076, allocations: 1.695 MB / 472.1 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.4076, allocations: 0 / 472.1 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00099/0.4086, allocations: 401.4 kB / 472.5 MB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.588e-05/0.4087, allocations: 108.7 kB / 472.6 MB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.33e-05/0.4088, allocations: 4 kB / 472.6 MB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002453/0.409, allocations: 39.97 kB / 472.7 MB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.718e-05/0.4091, allocations: 19.97 kB / 472.7 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.45e-05/0.4091, allocations: 7.984 kB / 472.7 MB, free: 15.03 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000207/0.4093, allocations: 190 kB / 472.9 MB, free: 14.85 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4093, allocations: 0 / 472.9 MB, free: 14.85 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005303/0.4099, allocations: 107.8 kB / 473 MB, free: 14.74 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.001334/0.4112, allocations: 0.9368 MB / 473.9 MB, free: 13.77 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001272/0.4125, allocations: 0.6257 MB / 474.6 MB, free: 13.11 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.4125, allocations: 0 / 474.6 MB, free: 13.11 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004384/0.413, allocations: 239 kB / 474.8 MB, free: 12.87 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000276/0.4133, allocations: 51.27 kB / 474.8 MB, free: 12.82 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003356/0.4166, allocations: 2.573 MB / 477.4 MB, free: 10.17 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003173/0.417, allocations: 0.7524 MB / 478.2 MB, free: 9.395 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001442/0.4171, allocations: 34.27 kB / 478.2 MB, free: 9.359 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001162/0.4172, allocations: 71.42 kB / 478.3 MB, free: 9.289 MB / 362.7 MB Notification: Performance of SimCode: time 5.31e-07/0.4172, allocations: 0 / 478.3 MB, free: 9.289 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02024/0.4375, allocations: 5.772 MB / 484 MB, free: 3.535 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001853/0.4377, allocations: 221.2 kB / 484.3 MB, free: 3.289 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.822/2.259, allocations: 0 / 484.3 MB, free: 3.289 MB / 362.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