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.001437/0.001437, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.462/1.462, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008378/0.0008378, allocations: 82.7 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.853e-05/1.853e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08558/0.08561, allocations: 47.59 MB / 363.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2912/0.3768, allocations: 78.7 MB / 441.9 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002172/0.3771, allocations: 74.95 kB / 442 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01652/0.3936, allocations: 5.675 MB / 447.6 MB, free: 11.81 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3937, allocations: 4 kB / 447.6 MB, free: 11.81 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.662e-05/0.3937, allocations: 4 kB / 447.6 MB, free: 11.8 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.0009383/0.3947, allocations: 0.573 MB / 448.2 MB, free: 11.2 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.3947, allocations: 8.031 kB / 448.2 MB, free: 11.19 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.621e-05/0.3948, allocations: 31.62 kB / 448.3 MB, free: 11.16 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003742/0.3952, allocations: 268.8 kB / 448.5 MB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.953e-05/0.3952, allocations: 11.95 kB / 448.5 MB, free: 10.87 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.998e-05/0.3952, allocations: 19.12 kB / 448.5 MB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00027/0.3955, allocations: 141.5 kB / 448.7 MB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003023/0.3958, allocations: 167.2 kB / 448.8 MB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.3958, allocations: 0 / 448.8 MB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.298e-05/0.3959, allocations: 0 / 448.8 MB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.3959, allocations: 4 kB / 448.8 MB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00156/0.3974, allocations: 0.903 MB / 449.8 MB, free: 9.812 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002617/0.3977, allocations: 133.7 kB / 449.9 MB, free: 9.719 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.548e-05/0.3978, allocations: 52.8 kB / 449.9 MB, free: 9.684 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.591e-05/0.3979, allocations: 7.969 kB / 449.9 MB, free: 9.676 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00022/0.3981, allocations: 129.6 kB / 450.1 MB, free: 9.551 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 1.714e-06/0.3981, allocations: 0 / 450.1 MB, free: 9.551 MB / 330.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006129/0.3987, allocations: 225.4 kB / 450.3 MB, free: 9.355 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.454e-05/0.3988, allocations: 110.8 kB / 450.4 MB, free: 9.223 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002579/0.399, allocations: 214.2 kB / 450.6 MB, free: 9.047 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.432e-05/0.3991, allocations: 29.7 kB / 450.6 MB, free: 9.012 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/0.3992, allocations: 176.2 kB / 450.8 MB, free: 8.863 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.184e-05/0.3992, allocations: 38.27 kB / 450.8 MB, free: 8.832 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.126e-05/0.3993, allocations: 0 / 450.8 MB, free: 8.832 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.3994, allocations: 330.4 kB / 451.2 MB, free: 8.508 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.397e-05/0.3995, allocations: 49.55 kB / 451.2 MB, free: 8.477 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001236/0.3996, allocations: 106.5 kB / 451.3 MB, free: 8.371 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.824e-05/0.3997, allocations: 62.05 kB / 451.4 MB, free: 8.328 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3997, allocations: 0 / 451.4 MB, free: 8.328 MB / 330.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005954/0.4003, allocations: 272.4 kB / 451.6 MB, free: 8.098 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002627/0.4006, allocations: 0.6442 MB / 452.3 MB, free: 7.414 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.4006, allocations: 0 / 452.3 MB, free: 7.414 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001811/0.4008, allocations: 48.83 kB / 452.3 MB, free: 7.375 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000201/0.401, allocations: 47.91 kB / 452.4 MB, free: 7.328 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004002/0.4014, allocations: 0.5703 MB / 453 MB, free: 6.758 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003096/0.4017, allocations: 63.33 kB / 453 MB, free: 6.699 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.332e-05/0.4018, allocations: 12.06 kB / 453 MB, free: 6.688 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.287e-06/0.4018, allocations: 4 kB / 453 MB, free: 6.684 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003063/0.4021, allocations: 164.7 kB / 453.2 MB, free: 6.562 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.795e-06/0.4021, allocations: 192 / 453.2 MB, free: 6.562 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.276e-05/0.4022, allocations: 32.34 kB / 453.2 MB, free: 6.531 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001943/0.4024, allocations: 47.34 kB / 453.3 MB, free: 6.488 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001056/0.4034, allocations: 1.384 MB / 454.7 MB, free: 5.055 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002541/0.4037, allocations: 39.88 kB / 454.7 MB, free: 5.016 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.651e-05/0.4037, allocations: 15.86 kB / 454.7 MB, free: 5.004 MB / 330.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: 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.0001475/0.4039, allocations: 109.1 kB / 454.8 MB, free: 4.891 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004971/0.4044, allocations: 217 kB / 455 MB, free: 4.703 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.769e-05/0.4044, allocations: 31.66 kB / 455.1 MB, free: 4.672 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.68e-05/0.4045, allocations: 21.64 kB / 455.1 MB, free: 4.656 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.4045, allocations: 3.938 kB / 455.1 MB, free: 4.652 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-06/0.4045, allocations: 0 / 455.1 MB, free: 4.652 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.4045, allocations: 0 / 455.1 MB, free: 4.652 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002472/0.4048, allocations: 257.6 kB / 455.3 MB, free: 4.402 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.4048, allocations: 0 / 455.3 MB, free: 4.402 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001482/0.4049, allocations: 31.97 kB / 455.4 MB, free: 4.371 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001048/0.4051, allocations: 43.09 kB / 455.4 MB, free: 4.336 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.674e-05/0.4051, allocations: 11.95 kB / 455.4 MB, free: 4.324 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001353/0.4065, allocations: 1.437 MB / 456.9 MB, free: 2.875 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.4065, allocations: 0 / 456.9 MB, free: 2.875 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005426/0.407, allocations: 249.5 kB / 457.1 MB, free: 2.645 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.566e-05/0.4071, allocations: 96.05 kB / 457.2 MB, free: 2.535 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.564e-05/0.4072, allocations: 4 kB / 457.2 MB, free: 2.531 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002571/0.4074, allocations: 43.52 kB / 457.2 MB, free: 2.492 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.402e-05/0.4075, allocations: 18.72 kB / 457.3 MB, free: 2.477 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.254e-05/0.4075, allocations: 4 kB / 457.3 MB, free: 2.473 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001422/0.4077, allocations: 167.9 kB / 457.4 MB, free: 2.344 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4077, allocations: 0 / 457.4 MB, free: 2.344 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004682/0.4082, allocations: 119.6 kB / 457.5 MB, free: 2.227 MB / 330.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.0008471/0.409, allocations: 0.7896 MB / 458.3 MB, free: 1.441 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006154/0.4096, allocations: 444.1 kB / 458.8 MB, free: 1.047 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.4097, allocations: 0.75 kB / 458.8 MB, free: 1.047 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002161/0.4099, allocations: 183.2 kB / 458.9 MB, free: 0.8828 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002675/0.4102, allocations: 36.12 kB / 459 MB, free: 0.8594 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006954/0.4109, allocations: 308.1 kB / 459.3 MB, free: 0.5508 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003662/0.4112, allocations: 0.7528 MB / 460 MB, free: 15.77 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001613/0.4114, allocations: 30.05 kB / 460.1 MB, free: 15.74 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.471e-05/0.4115, allocations: 77.53 kB / 460.1 MB, free: 15.71 MB / 346.7 MB Notification: Performance of SimCode: time 2.9e-07/0.4115, allocations: 0 / 460.1 MB, free: 15.71 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02405/0.4356, allocations: 5.09 MB / 465.2 MB, free: 10.62 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002043/0.4358, allocations: 151.3 kB / 465.4 MB, free: 10.43 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.88/2.316, allocations: 4 kB / 465.4 MB, free: 10.42 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