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.001525/0.001529, allocations: 185.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.957/1.957, allocations: 205.4 MB / 222.5 MB, free: 9.145 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.001137/0.001137, allocations: 96.41 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000405/0.000405, allocations: 8 kB / 327.1 MB, free: 124 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3371/0.3375, allocations: 47.58 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1312/0.4688, allocations: 79.21 MB / 453.9 MB, free: 1.465 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003319/0.4692, allocations: 83.95 kB / 453.9 MB, free: 1.383 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02902/0.4982, allocations: 5.741 MB / 459.7 MB, free: 11.62 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4983, allocations: 4 kB / 459.7 MB, free: 11.61 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.335e-05/0.4983, allocations: 8 kB / 459.7 MB, free: 11.61 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.001826/0.5002, allocations: 0.6028 MB / 460.3 MB, free: 10.95 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.77e-05/0.5002, allocations: 12.03 kB / 460.3 MB, free: 10.94 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001241/0.5004, allocations: 50.55 kB / 460.4 MB, free: 10.88 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.5005, allocations: 35.62 kB / 460.4 MB, free: 10.84 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005518/0.501, allocations: 283.2 kB / 460.7 MB, free: 10.53 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.872e-05/0.5011, allocations: 16.39 kB / 460.7 MB, free: 10.51 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.647e-05/0.5012, allocations: 20 kB / 460.7 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001087/0.5023, allocations: 259.2 kB / 461 MB, free: 10.23 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.509e-05/0.5023, allocations: 0 / 461 MB, free: 10.23 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.02e-05/0.5023, allocations: 8 kB / 461 MB, free: 10.22 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.183e-05/0.5024, allocations: 4 kB / 461 MB, free: 10.22 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001403/0.5038, allocations: 277.6 kB / 461.2 MB, free: 9.949 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002975/0.5068, allocations: 0.948 MB / 462.2 MB, free: 8.922 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001568/0.5084, allocations: 266.6 kB / 462.4 MB, free: 8.652 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.189e-05/0.5085, allocations: 4 kB / 462.4 MB, free: 8.648 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008736/0.5094, allocations: 197.8 kB / 462.6 MB, free: 8.434 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 3.326e-06/0.5094, allocations: 0 / 462.6 MB, free: 8.434 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.004467/0.5139, allocations: 0.7197 MB / 463.4 MB, free: 7.688 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/0.5141, allocations: 118.7 kB / 463.5 MB, free: 7.547 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004794/0.5145, allocations: 229.8 kB / 463.7 MB, free: 7.32 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.806e-05/0.5146, allocations: 33.7 kB / 463.7 MB, free: 7.281 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001743/0.5148, allocations: 230.2 kB / 464 MB, free: 7.055 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.025e-05/0.5149, allocations: 47.45 kB / 464 MB, free: 7.008 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.395e-05/0.5149, allocations: 4 kB / 464 MB, free: 7.004 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.5151, allocations: 322.8 kB / 464.3 MB, free: 6.68 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006656/0.5158, allocations: 111.9 kB / 464.4 MB, free: 6.57 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007623/0.5165, allocations: 188.5 kB / 464.6 MB, free: 6.355 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006996/0.5173, allocations: 157.1 kB / 464.8 MB, free: 6.199 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.5173, allocations: 4 kB / 464.8 MB, free: 6.195 MB / 346.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.002256/0.5195, allocations: 455.9 kB / 465.2 MB, free: 5.734 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004623/0.5201, allocations: 0.8189 MB / 466 MB, free: 4.848 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.425e-05/0.5201, allocations: 7.984 kB / 466 MB, free: 4.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006346/0.5207, allocations: 84.8 kB / 466.1 MB, free: 4.754 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004079/0.5212, allocations: 51.91 kB / 466.2 MB, free: 4.703 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001697/0.5229, allocations: 0.7045 MB / 466.9 MB, free: 3.973 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006829/0.5236, allocations: 63.98 kB / 466.9 MB, free: 3.91 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.486e-05/0.5236, allocations: 8 kB / 467 MB, free: 3.902 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.5237, allocations: 4 kB / 467 MB, free: 3.898 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001341/0.525, allocations: 314.4 kB / 467.3 MB, free: 3.582 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.5251, allocations: 0 / 467.3 MB, free: 3.582 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001168/0.5252, allocations: 24.91 kB / 467.3 MB, free: 3.555 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000393/0.5256, allocations: 63.89 kB / 467.4 MB, free: 3.492 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001424/0.527, allocations: 1.309 MB / 468.7 MB, free: 2.043 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004754/0.5276, allocations: 51.83 kB / 468.7 MB, free: 1.992 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.839e-05/0.5276, allocations: 8 kB / 468.7 MB, free: 1.984 MB / 346.7 MB 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 () * Number of clocked 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.000398/0.528, allocations: 217.1 kB / 468.9 MB, free: 1.762 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.075e-05/0.5281, allocations: 19.72 kB / 468.9 MB, free: 1.742 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.074e-05/0.5282, allocations: 29.83 kB / 469 MB, free: 1.715 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.5282, allocations: 0 / 469 MB, free: 1.715 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.5282, allocations: 0 / 469 MB, free: 1.715 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.079e-05/0.5282, allocations: 7.953 kB / 469 MB, free: 1.707 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004586/0.5287, allocations: 297.3 kB / 469.3 MB, free: 1.367 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.5287, allocations: 0 / 469.3 MB, free: 1.367 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002849/0.529, allocations: 27.97 kB / 469.3 MB, free: 1.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005277/0.5296, allocations: 84.8 kB / 469.4 MB, free: 1.254 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.259e-05/0.5296, allocations: 0 / 469.4 MB, free: 1.254 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005/0.5346, allocations: 1.795 MB / 471.2 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.5347, allocations: 0 / 471.2 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002117/0.5368, allocations: 397.5 kB / 471.6 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001557/0.537, allocations: 100.8 kB / 471.7 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.956e-05/0.5371, allocations: 7.938 kB / 471.7 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004862/0.5376, allocations: 47.95 kB / 471.7 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001288/0.5377, allocations: 19.97 kB / 471.7 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.765e-05/0.5378, allocations: 3.938 kB / 471.7 MB, free: 14.72 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003218/0.5381, allocations: 198 kB / 471.9 MB, free: 14.53 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5381, allocations: 4 kB / 471.9 MB, free: 14.52 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007456/0.5389, allocations: 119.7 kB / 472.1 MB, free: 14.41 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.002525/0.5414, allocations: 0.9363 MB / 473 MB, free: 13.44 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003126/0.5446, allocations: 0.6932 MB / 473.7 MB, free: 12.71 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.989e-06/0.5447, allocations: 4.625 kB / 473.7 MB, free: 12.71 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008758/0.5455, allocations: 246.5 kB / 473.9 MB, free: 12.45 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004899/0.5461, allocations: 41.06 kB / 474 MB, free: 12.41 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01066/0.5567, allocations: 3.445 MB / 477.4 MB, free: 8.875 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004292/0.5572, allocations: 0.7521 MB / 478.2 MB, free: 8.098 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002297/0.5575, allocations: 75.42 kB / 478.2 MB, free: 8.023 MB / 362.7 MB Notification: Performance of SimCode: time 1.143e-06/0.5575, allocations: 0 / 478.2 MB, free: 8.023 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.69/3.247, allocations: 5.089 MB / 483.3 MB, free: 2.945 MB / 362.7 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