Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002251/0.00225, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.285/2.285, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001106/0.001105, allocations: 82.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.385e-05/3.434e-05, allocations: 4 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09541/0.09547, allocations: 47.57 MB / 369.2 MB, free: 2.09 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4359/0.5314, allocations: 79.11 MB / 448.3 MB, free: 13.76 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003032/0.5317, allocations: 90.56 kB / 448.4 MB, free: 13.71 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02761/0.5594, allocations: 5.722 MB / 454.1 MB, free: 8.801 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5594, allocations: 0 / 454.1 MB, free: 8.801 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.561e-05/0.5595, allocations: 8 kB / 454.1 MB, free: 8.793 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.001501/0.561, allocations: 0.5716 MB / 454.7 MB, free: 8.191 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.641e-05/0.561, allocations: 8.031 kB / 454.7 MB, free: 8.184 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000115/0.5612, allocations: 52.8 kB / 454.8 MB, free: 8.133 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001212/0.5613, allocations: 35.61 kB / 454.8 MB, free: 8.098 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005657/0.5619, allocations: 274.2 kB / 455.1 MB, free: 7.816 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.551e-05/0.5619, allocations: 18.83 kB / 455.1 MB, free: 7.805 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.954e-05/0.562, allocations: 18.62 kB / 455.1 MB, free: 7.793 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005428/0.5626, allocations: 193.1 kB / 455.3 MB, free: 7.652 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.5626, allocations: 0 / 455.3 MB, free: 7.652 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.687e-05/0.5626, allocations: 6.812 kB / 455.3 MB, free: 7.652 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.441e-05/0.5627, allocations: 15.98 kB / 455.3 MB, free: 7.637 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004562/0.5631, allocations: 146.2 kB / 455.4 MB, free: 7.551 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00275/0.5659, allocations: 0.9541 MB / 456.4 MB, free: 6.676 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004761/0.5664, allocations: 135.1 kB / 456.5 MB, free: 6.578 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001744/0.5666, allocations: 58.22 kB / 456.6 MB, free: 6.539 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.8e-05/0.5666, allocations: 0 / 456.6 MB, free: 6.539 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003442/0.567, allocations: 143.8 kB / 456.7 MB, free: 6.402 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 4.028e-06/0.567, allocations: 0 / 456.7 MB, free: 6.402 MB / 330.7 MB Notification: Performance of matching and sorting (n=13): time 0.001009/0.568, allocations: 235.4 kB / 457 MB, free: 6.199 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.736e-05/0.5681, allocations: 102.8 kB / 457.1 MB, free: 6.074 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003934/0.5686, allocations: 238.8 kB / 457.3 MB, free: 5.875 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.744e-05/0.5686, allocations: 25.7 kB / 457.3 MB, free: 5.844 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001564/0.5688, allocations: 235.3 kB / 457.5 MB, free: 5.641 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.943e-05/0.5689, allocations: 35.14 kB / 457.6 MB, free: 5.609 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.866e-05/0.5689, allocations: 11.56 kB / 457.6 MB, free: 5.602 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.569, allocations: 322.5 kB / 457.9 MB, free: 5.281 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001734/0.5692, allocations: 57.81 kB / 458 MB, free: 5.242 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002284/0.5695, allocations: 105.6 kB / 458.1 MB, free: 5.137 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002254/0.5697, allocations: 91.39 kB / 458.2 MB, free: 5.059 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.5697, allocations: 0 / 458.2 MB, free: 5.059 MB / 330.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001114/0.5709, allocations: 308.7 kB / 458.5 MB, free: 4.797 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003467/0.5712, allocations: 0.6512 MB / 459.1 MB, free: 4.105 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.5712, allocations: 0 / 459.1 MB, free: 4.105 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003125/0.5716, allocations: 42.84 kB / 459.1 MB, free: 4.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000367/0.5719, allocations: 47.91 kB / 459.2 MB, free: 4.023 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006149/0.5726, allocations: 0.5733 MB / 459.8 MB, free: 3.453 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006047/0.5732, allocations: 58.84 kB / 459.8 MB, free: 3.398 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.486e-05/0.5732, allocations: 8 kB / 459.8 MB, free: 3.391 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.5733, allocations: 7.953 kB / 459.8 MB, free: 3.383 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006033/0.5739, allocations: 214.2 kB / 460.1 MB, free: 3.219 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.5739, allocations: 0 / 460.1 MB, free: 3.219 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001247/0.574, allocations: 31.09 kB / 460.1 MB, free: 3.191 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003552/0.5744, allocations: 48.09 kB / 460.1 MB, free: 3.145 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001557/0.576, allocations: 1.445 MB / 461.6 MB, free: 1.637 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004451/0.5765, allocations: 43.22 kB / 461.6 MB, free: 1.598 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.995e-05/0.5765, allocations: 11.75 kB / 461.6 MB, free: 1.59 MB / 330.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 () * 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.0001585/0.5767, allocations: 117 kB / 461.7 MB, free: 1.473 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.979e-05/0.5768, allocations: 23.72 kB / 461.8 MB, free: 1.449 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.961e-05/0.5769, allocations: 33.58 kB / 461.8 MB, free: 1.422 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.5769, allocations: 0 / 461.8 MB, free: 1.422 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/0.5769, allocations: 0 / 461.8 MB, free: 1.422 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.014e-06/0.5769, allocations: 3.953 kB / 461.8 MB, free: 1.418 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000401/0.5773, allocations: 292.1 kB / 462.1 MB, free: 1.129 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.5773, allocations: 0 / 462.1 MB, free: 1.129 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002883/0.5776, allocations: 31.97 kB / 462.1 MB, free: 1.098 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002104/0.5779, allocations: 39.59 kB / 462.2 MB, free: 1.066 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.978e-05/0.5779, allocations: 4 kB / 462.2 MB, free: 1.062 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002121/0.58, allocations: 1.497 MB / 463.7 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.5801, allocations: 4.031 kB / 463.7 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009464/0.581, allocations: 262 kB / 463.9 MB, free: 15.3 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001195/0.5812, allocations: 107.7 kB / 464 MB, free: 15.18 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.606e-05/0.5812, allocations: 0 / 464 MB, free: 15.18 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004852/0.5817, allocations: 47.39 kB / 464.1 MB, free: 15.14 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001273/0.5819, allocations: 18.84 kB / 464.1 MB, free: 15.12 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.864e-05/0.5819, allocations: 7.562 kB / 464.1 MB, free: 15.12 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002999/0.5822, allocations: 183.8 kB / 464.3 MB, free: 14.97 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5822, allocations: 0 / 464.3 MB, free: 14.97 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007192/0.583, allocations: 122.2 kB / 464.4 MB, free: 14.86 MB / 346.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.001386/0.5844, allocations: 0.8049 MB / 465.2 MB, free: 14.07 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001106/0.5855, allocations: 459.6 kB / 465.6 MB, free: 13.66 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.5855, allocations: 0 / 465.6 MB, free: 13.66 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003936/0.5859, allocations: 191.9 kB / 465.8 MB, free: 13.48 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004348/0.5864, allocations: 35.8 kB / 465.9 MB, free: 13.46 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001135/0.5875, allocations: 357 kB / 466.2 MB, free: 13.07 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004017/0.588, allocations: 0.7524 MB / 467 MB, free: 12.29 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002037/0.5882, allocations: 75.41 kB / 467 MB, free: 12.21 MB / 346.7 MB Notification: Performance of SimCode: time 3.306e-06/0.5882, allocations: 0 / 467 MB, free: 12.21 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.919/3.508, allocations: 5.051 MB / 472.1 MB, free: 7.16 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat does not exist to compare? outputFormat=mat