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.001868/0.001868, allocations: 177.1 kB / 13.64 MB, free: 1.672 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.352/1.352, allocations: 221.3 MB / 235.5 MB, free: 2.98 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.0008811/0.0008812, allocations: 91.78 kB / 286.5 MB, free: 248 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.588e-05/2.59e-05, allocations: 4 kB / 343.9 MB, free: 4.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09271/0.09275, allocations: 50.42 MB / 394.4 MB, free: 1.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2867/0.3795, allocations: 80.7 MB / 475.1 MB, free: 6.797 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002437/0.3798, allocations: 75.95 kB / 475.1 MB, free: 6.723 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01652/0.3963, allocations: 5.837 MB / 481 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.096e-06/0.3963, allocations: 0 / 481 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.759e-05/0.3964, allocations: 4 kB / 481 MB, free: 0.8594 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.0009033/0.3973, allocations: 0.5679 MB / 481.5 MB, free: 248 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.3973, allocations: 8.031 kB / 481.6 MB, free: 240 kB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.587e-05/0.3974, allocations: 54.55 kB / 481.6 MB, free: 176 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.41e-05/0.3975, allocations: 31.62 kB / 481.6 MB, free: 144 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003488/0.3978, allocations: 266.7 kB / 481.9 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.018e-05/0.3979, allocations: 16.44 kB / 481.9 MB, free: 15.83 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.573e-05/0.3979, allocations: 20 kB / 481.9 MB, free: 15.81 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003832/0.3983, allocations: 230.2 kB / 482.2 MB, free: 15.57 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.3983, allocations: 3.953 kB / 482.2 MB, free: 15.57 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.74e-05/0.3983, allocations: 8 kB / 482.2 MB, free: 15.56 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.3984, allocations: 8 kB / 482.2 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002697/0.3986, allocations: 149.7 kB / 482.3 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001712/0.4004, allocations: 1.029 MB / 483.4 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002998/0.4007, allocations: 134.7 kB / 483.5 MB, free: 14.16 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001066/0.4008, allocations: 60.86 kB / 483.5 MB, free: 14.1 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.8e-05/0.4008, allocations: 3.984 kB / 483.5 MB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00022/0.4011, allocations: 129.9 kB / 483.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.703e-06/0.4011, allocations: 3.938 kB / 483.7 MB, free: 13.94 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006186/0.4017, allocations: 238.8 kB / 483.9 MB, free: 13.7 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.475e-05/0.4018, allocations: 106.8 kB / 484 MB, free: 13.57 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002356/0.402, allocations: 234.9 kB / 484.2 MB, free: 13.33 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.403e-05/0.402, allocations: 33.7 kB / 484.3 MB, free: 13.29 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/0.4022, allocations: 179.9 kB / 484.5 MB, free: 13.11 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.353e-05/0.4022, allocations: 35.45 kB / 484.5 MB, free: 13.08 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.262e-05/0.4022, allocations: 8 kB / 484.5 MB, free: 13.07 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.4023, allocations: 330.8 kB / 484.8 MB, free: 12.74 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001053/0.4024, allocations: 48 kB / 484.9 MB, free: 12.69 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000149/0.4026, allocations: 129.5 kB / 485 MB, free: 12.54 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001322/0.4027, allocations: 95.12 kB / 485.1 MB, free: 12.44 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.4027, allocations: 4 kB / 485.1 MB, free: 12.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006567/0.4034, allocations: 331.8 kB / 485.4 MB, free: 12.09 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.534e-05/0.4035, allocations: 35.11 kB / 485.4 MB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.4035, allocations: 0 / 485.4 MB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002064/0.4037, allocations: 48.83 kB / 485.5 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001998/0.4039, allocations: 47.94 kB / 485.5 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001784/0.4057, allocations: 1.624 MB / 487.2 MB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003441/0.406, allocations: 59.88 kB / 487.2 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.317e-05/0.4061, allocations: 11.94 kB / 487.2 MB, free: 10.13 MB / 362.7 MB 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 9.806e-05/0.4062, allocations: 121 kB / 487.4 MB, free: 10 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.629e-05/0.4062, allocations: 23.8 kB / 487.4 MB, free: 9.98 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.217e-05/0.4063, allocations: 21.92 kB / 487.4 MB, free: 9.953 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.4063, allocations: 4 kB / 487.4 MB, free: 9.949 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.482e-06/0.4063, allocations: 0 / 487.4 MB, free: 9.949 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.4063, allocations: 3.984 kB / 487.4 MB, free: 9.945 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002882/0.4066, allocations: 293.4 kB / 487.7 MB, free: 9.609 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.4066, allocations: 0 / 487.7 MB, free: 9.609 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001429/0.4068, allocations: 35.97 kB / 487.7 MB, free: 9.574 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001206/0.4069, allocations: 40.84 kB / 487.8 MB, free: 9.531 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.377e-05/0.4069, allocations: 0 / 487.8 MB, free: 9.531 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0015/0.4084, allocations: 1.507 MB / 489.3 MB, free: 7.895 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.4084, allocations: 0 / 489.3 MB, free: 7.895 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000605/0.4091, allocations: 269.5 kB / 489.5 MB, free: 7.613 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.14e-05/0.4092, allocations: 96.83 kB / 489.6 MB, free: 7.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.376e-05/0.4092, allocations: 4 kB / 489.6 MB, free: 7.496 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002697/0.4095, allocations: 47.95 kB / 489.7 MB, free: 7.449 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.68e-05/0.4096, allocations: 23.91 kB / 489.7 MB, free: 7.426 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/0.4096, allocations: 0 / 489.7 MB, free: 7.426 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002026/0.4098, allocations: 187.1 kB / 489.9 MB, free: 7.246 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4098, allocations: 3.938 kB / 489.9 MB, free: 7.242 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003859/0.4102, allocations: 75.84 kB / 490 MB, free: 7.168 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.0009471/0.4112, allocations: 0.7966 MB / 490.8 MB, free: 6.34 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005125/0.4117, allocations: 319.5 kB / 491.1 MB, free: 6.004 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.4117, allocations: 7.938 kB / 491.1 MB, free: 5.996 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002259/0.4119, allocations: 178.6 kB / 491.3 MB, free: 5.809 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/0.4122, allocations: 44.94 kB / 491.3 MB, free: 5.766 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007503/0.413, allocations: 316.8 kB / 491.6 MB, free: 5.418 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/0.4133, allocations: 0.7521 MB / 492.4 MB, free: 4.641 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001116/0.4134, allocations: 26.06 kB / 492.4 MB, free: 4.613 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/0.4135, allocations: 71.36 kB / 492.5 MB, free: 4.543 MB / 362.7 MB Notification: Performance of SimCode: time 4.71e-07/0.4135, allocations: 0 / 492.5 MB, free: 4.543 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01882/0.4324, allocations: 5.549 MB / 498 MB, free: 15.16 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003023/0.4327, allocations: 187.9 kB / 498.2 MB, free: 14.93 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.702/2.135, allocations: 4 kB / 498.2 MB, free: 14.93 MB / 378.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