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.001631/0.00163, allocations: 185.5 kB / 16.4 MB, free: 5.746 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.003/2.003, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001192/0.001191, allocations: 97.97 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003981/0.0003981, allocations: 16 kB / 327.1 MB, free: 88 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3601/0.3605, allocations: 47.56 MB / 374.6 MB, free: 45.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1294/0.49, allocations: 79.21 MB / 453.9 MB, free: 1.426 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003419/0.4904, allocations: 75.95 kB / 453.9 MB, free: 1.352 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02813/0.5186, allocations: 5.741 MB / 459.7 MB, free: 11.59 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.5186, allocations: 0 / 459.7 MB, free: 11.59 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.5e-05/0.5187, allocations: 8 kB / 459.7 MB, free: 11.58 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.001681/0.5204, allocations: 0.6028 MB / 460.3 MB, free: 10.92 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.165e-05/0.5204, allocations: 12.03 kB / 460.3 MB, free: 10.91 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.971e-05/0.5205, allocations: 50.55 kB / 460.3 MB, free: 10.85 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001107/0.5207, allocations: 31.62 kB / 460.4 MB, free: 10.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005103/0.5212, allocations: 287.2 kB / 460.6 MB, free: 10.5 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.859e-05/0.5212, allocations: 16.39 kB / 460.7 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.739e-05/0.5213, allocations: 20 kB / 460.7 MB, free: 10.46 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001074/0.5224, allocations: 259.2 kB / 460.9 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.5224, allocations: 0 / 460.9 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.19e-05/0.5225, allocations: 8 kB / 460.9 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.5225, allocations: 4 kB / 461 MB, free: 10.19 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001381/0.5239, allocations: 273.6 kB / 461.2 MB, free: 9.926 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002863/0.5268, allocations: 0.9597 MB / 462.2 MB, free: 8.887 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001502/0.5283, allocations: 266.6 kB / 462.4 MB, free: 8.617 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.887e-05/0.5284, allocations: 0 / 462.4 MB, free: 8.617 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008246/0.5292, allocations: 200 kB / 462.6 MB, free: 8.402 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 2.074e-06/0.5292, allocations: 0 / 462.6 MB, free: 8.402 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.004339/0.5336, allocations: 0.7254 MB / 463.4 MB, free: 7.648 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.454e-05/0.5337, allocations: 106.8 kB / 463.5 MB, free: 7.52 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000431/0.5342, allocations: 229.8 kB / 463.7 MB, free: 7.293 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.355e-05/0.5342, allocations: 33.7 kB / 463.7 MB, free: 7.254 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001948/0.5344, allocations: 226.3 kB / 463.9 MB, free: 7.031 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.584e-05/0.5345, allocations: 43.45 kB / 464 MB, free: 6.988 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.316e-05/0.5346, allocations: 8 kB / 464 MB, free: 6.98 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.5347, allocations: 326.8 kB / 464.3 MB, free: 6.652 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006377/0.5353, allocations: 108.1 kB / 464.4 MB, free: 6.543 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006881/0.536, allocations: 178.4 kB / 464.6 MB, free: 6.344 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006564/0.5367, allocations: 141.6 kB / 464.7 MB, free: 6.199 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.5367, allocations: 0 / 464.7 MB, free: 6.199 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.002204/0.539, allocations: 447.2 kB / 465.2 MB, free: 5.75 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004347/0.5394, allocations: 0.6451 MB / 465.8 MB, free: 5.051 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.5395, allocations: 4 kB / 465.8 MB, free: 5.047 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006855/0.5402, allocations: 80.8 kB / 465.9 MB, free: 4.965 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003999/0.5406, allocations: 51.91 kB / 465.9 MB, free: 4.914 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001074/0.5417, allocations: 0.6265 MB / 466.6 MB, free: 4.262 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006735/0.5424, allocations: 63.67 kB / 466.6 MB, free: 4.199 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.287e-05/0.5424, allocations: 4.281 kB / 466.6 MB, free: 4.195 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.5425, allocations: 8 kB / 466.6 MB, free: 4.188 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001292/0.5438, allocations: 306.3 kB / 466.9 MB, free: 3.879 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.5438, allocations: 3.938 kB / 466.9 MB, free: 3.875 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001584/0.544, allocations: 32.81 kB / 467 MB, free: 3.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003699/0.5443, allocations: 47.97 kB / 467 MB, free: 3.793 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001763/0.5461, allocations: 1.432 MB / 468.5 MB, free: 2.219 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004927/0.5467, allocations: 43.89 kB / 468.5 MB, free: 2.176 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.89e-05/0.5467, allocations: 11.94 kB / 468.5 MB, free: 2.164 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.000315/0.547, allocations: 212 kB / 468.7 MB, free: 1.949 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.679e-05/0.5471, allocations: 27.72 kB / 468.7 MB, free: 1.922 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.293e-05/0.5472, allocations: 21.83 kB / 468.8 MB, free: 1.902 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.175e-06/0.5473, allocations: 4 kB / 468.8 MB, free: 1.898 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.5473, allocations: 0 / 468.8 MB, free: 1.898 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.5473, allocations: 3.953 kB / 468.8 MB, free: 1.895 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004658/0.5478, allocations: 297.4 kB / 469.1 MB, free: 1.555 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.5478, allocations: 4 kB / 469.1 MB, free: 1.551 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002816/0.5481, allocations: 27.98 kB / 469.1 MB, free: 1.523 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004912/0.5486, allocations: 81.02 kB / 469.2 MB, free: 1.441 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.418e-05/0.5486, allocations: 8.062 kB / 469.2 MB, free: 1.434 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003888/0.5525, allocations: 1.699 MB / 470.9 MB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.5526, allocations: 0 / 470.9 MB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002044/0.5546, allocations: 400.1 kB / 471.3 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001453/0.5548, allocations: 104.8 kB / 471.4 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.69e-05/0.5549, allocations: 8 kB / 471.4 MB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004665/0.5554, allocations: 35.97 kB / 471.4 MB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001294/0.5555, allocations: 19.97 kB / 471.4 MB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.547e-05/0.5556, allocations: 11.98 kB / 471.5 MB, free: 15 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003073/0.5559, allocations: 190 kB / 471.6 MB, free: 14.81 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.5559, allocations: 0 / 471.6 MB, free: 14.81 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000746/0.5567, allocations: 115.7 kB / 471.7 MB, free: 14.7 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.002499/0.5592, allocations: 0.933 MB / 472.7 MB, free: 13.73 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002407/0.5616, allocations: 0.6193 MB / 473.3 MB, free: 13.08 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.5617, allocations: 128 / 473.3 MB, free: 13.08 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008959/0.5626, allocations: 245.7 kB / 473.5 MB, free: 12.83 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004752/0.5631, allocations: 47.17 kB / 473.6 MB, free: 12.79 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006135/0.5692, allocations: 2.594 MB / 476.2 MB, free: 10.11 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000446/0.5698, allocations: 0.7524 MB / 476.9 MB, free: 9.332 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002181/0.57, allocations: 75.41 kB / 477 MB, free: 9.258 MB / 362.7 MB Notification: Performance of SimCode: time 9.01e-07/0.57, allocations: 0 / 477 MB, free: 9.258 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.651/3.221, allocations: 5.092 MB / 482.1 MB, free: 4.176 MB / 362.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