Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.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.InvertingSchmittTrigger,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.002371/0.002371, allocations: 177.8 kB / 8.358 MB, free: 0.7188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.085/2.085, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001088/0.001088, allocations: 91.09 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.691e-05/2.698e-05, allocations: 8 kB / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3282/0.3282, allocations: 47.56 MB / 362.4 MB, free: 45.86 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1494/0.4777, allocations: 78.46 MB / 440.9 MB, free: 7.832 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002994/0.478, allocations: 85.23 kB / 441 MB, free: 7.754 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02752/0.5056, allocations: 5.674 MB / 446.7 MB, free: 2.098 MB / 331.1 MB Notification: Performance of FrontEnd: time 3.587e-06/0.5056, allocations: 0 / 446.7 MB, free: 2.098 MB / 331.1 MB Notification: Performance of Transformations before backend: time 3.029e-05/0.5057, allocations: 11.28 kB / 446.7 MB, free: 2.09 MB / 331.1 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.001484/0.5072, allocations: 0.5665 MB / 447.2 MB, free: 1.477 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/0.5072, allocations: 12.03 kB / 447.2 MB, free: 1.465 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000111/0.5074, allocations: 27.62 kB / 447.3 MB, free: 1.438 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005063/0.5079, allocations: 270.2 kB / 447.5 MB, free: 1.137 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.114e-05/0.5079, allocations: 7.953 kB / 447.5 MB, free: 1.129 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.053e-05/0.508, allocations: 12 kB / 447.6 MB, free: 1.117 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004678/0.5085, allocations: 154.9 kB / 447.7 MB, free: 0.9688 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004853/0.509, allocations: 162.4 kB / 447.9 MB, free: 0.8008 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.509, allocations: 4 kB / 447.9 MB, free: 0.7969 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.754e-05/0.509, allocations: 5.016 kB / 447.9 MB, free: 0.793 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.429e-05/0.5091, allocations: 4 kB / 447.9 MB, free: 0.7891 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002699/0.5118, allocations: 0.8999 MB / 448.8 MB, free: 15.82 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00044/0.5123, allocations: 126.2 kB / 448.9 MB, free: 15.69 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001628/0.5124, allocations: 60.86 kB / 449 MB, free: 15.63 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.982e-05/0.5125, allocations: 0 / 449 MB, free: 15.63 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003418/0.5128, allocations: 133.9 kB / 449.1 MB, free: 15.48 MB / 347.1 MB Notification: Performance of pre-optimization done (n=13): time 2.004e-06/0.5129, allocations: 0 / 449.1 MB, free: 15.48 MB / 347.1 MB Notification: Performance of matching and sorting (n=13): time 0.00101/0.5139, allocations: 222.1 kB / 449.3 MB, free: 15.25 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.392e-05/0.514, allocations: 106.8 kB / 449.4 MB, free: 15.12 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003507/0.5143, allocations: 216.5 kB / 449.6 MB, free: 14.91 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 3.974e-05/0.5144, allocations: 27.2 kB / 449.7 MB, free: 14.88 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000172/0.5146, allocations: 242.2 kB / 449.9 MB, free: 14.64 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.63e-05/0.5146, allocations: 39.45 kB / 449.9 MB, free: 14.6 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.164e-05/0.5147, allocations: 0 / 449.9 MB, free: 14.6 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.5148, allocations: 322.8 kB / 450.2 MB, free: 14.27 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001673/0.515, allocations: 50.44 kB / 450.3 MB, free: 14.23 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002372/0.5153, allocations: 121.4 kB / 450.4 MB, free: 14.07 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000176/0.5155, allocations: 62.69 kB / 450.5 MB, free: 14.02 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.5155, allocations: 0 / 450.5 MB, free: 14.02 MB / 347.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001105/0.5166, allocations: 278.4 kB / 450.7 MB, free: 13.73 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004144/0.517, allocations: 0.8189 MB / 451.6 MB, free: 12.85 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.5171, allocations: 3.984 kB / 451.6 MB, free: 12.84 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003348/0.5174, allocations: 48.83 kB / 451.6 MB, free: 12.79 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003787/0.5178, allocations: 47.91 kB / 451.7 MB, free: 12.75 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006818/0.5185, allocations: 0.583 MB / 452.2 MB, free: 12.14 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006446/0.5192, allocations: 59.59 kB / 452.3 MB, free: 12.08 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.219e-05/0.5192, allocations: 14.31 kB / 452.3 MB, free: 12.07 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.5192, allocations: 4 kB / 452.3 MB, free: 12.07 MB / 347.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005553/0.5198, allocations: 173.5 kB / 452.5 MB, free: 11.89 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.728e-06/0.5198, allocations: 4 kB / 452.5 MB, free: 11.89 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001086/0.5199, allocations: 20.86 kB / 452.5 MB, free: 11.87 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003726/0.5203, allocations: 56.14 kB / 452.6 MB, free: 11.81 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001312/0.5217, allocations: 1.26 MB / 453.8 MB, free: 10.43 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004392/0.5221, allocations: 43.81 kB / 453.9 MB, free: 10.39 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.732e-05/0.5222, allocations: 8 kB / 453.9 MB, free: 10.38 MB / 347.1 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: 9 * 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 (20): * Single equations (assignments): 18 * 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.0002128/0.5224, allocations: 113 kB / 454 MB, free: 10.27 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008975/0.5233, allocations: 218.7 kB / 454.2 MB, free: 10.04 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.176e-05/0.5234, allocations: 27.67 kB / 454.2 MB, free: 10.02 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.205e-05/0.5235, allocations: 25.95 kB / 454.3 MB, free: 9.988 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.5235, allocations: 1.016 kB / 454.3 MB, free: 9.988 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.5235, allocations: 0 / 454.3 MB, free: 9.988 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.5235, allocations: 7.922 kB / 454.3 MB, free: 9.98 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003782/0.5239, allocations: 258 kB / 454.5 MB, free: 9.691 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.5239, allocations: 0 / 454.5 MB, free: 9.691 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002653/0.5242, allocations: 27.97 kB / 454.5 MB, free: 9.664 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002133/0.5244, allocations: 53.7 kB / 454.6 MB, free: 9.609 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.293e-05/0.5245, allocations: 3.953 kB / 454.6 MB, free: 9.605 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002511/0.527, allocations: 1.525 MB / 456.1 MB, free: 7.973 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/0.527, allocations: 3.625 kB / 456.1 MB, free: 7.973 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000944/0.528, allocations: 251.2 kB / 456.4 MB, free: 7.707 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001117/0.5281, allocations: 100.8 kB / 456.5 MB, free: 7.59 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.125e-05/0.5282, allocations: 0 / 456.5 MB, free: 7.59 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004778/0.5287, allocations: 43.95 kB / 456.5 MB, free: 7.547 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001238/0.5288, allocations: 19.97 kB / 456.5 MB, free: 7.527 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.386e-05/0.5289, allocations: 8 kB / 456.5 MB, free: 7.52 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0002719/0.5291, allocations: 168.5 kB / 456.7 MB, free: 7.359 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.4e-07/0.5292, allocations: 3.938 kB / 456.7 MB, free: 7.355 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0007442/0.5299, allocations: 119.6 kB / 456.8 MB, free: 7.238 MB / 347.1 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.001388/0.5313, allocations: 0.7864 MB / 457.6 MB, free: 6.418 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.00109/0.5324, allocations: 456.3 kB / 458.1 MB, free: 5.938 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.5324, allocations: 0 / 458.1 MB, free: 5.938 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003708/0.5328, allocations: 174.7 kB / 458.2 MB, free: 5.758 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004375/0.5333, allocations: 36.42 kB / 458.3 MB, free: 5.723 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005214/0.5385, allocations: 0.8538 MB / 459.1 MB, free: 4.828 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004303/0.539, allocations: 0.756 MB / 459.9 MB, free: 4.043 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002008/0.5392, allocations: 67.42 kB / 459.9 MB, free: 3.977 MB / 347.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5392, allocations: 0 / 459.9 MB, free: 3.977 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.795/3.334, allocations: 4.944 MB / 464.9 MB, free: 15.07 MB / 363.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat does not exist to compare? outputFormat=mat