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.002109/0.002108, allocations: 181.3 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.427/2.427, 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.001144/0.001144, allocations: 86.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.072e-05/4.098e-05, allocations: 7.984 kB / 321.6 MB, free: 17.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.113, allocations: 47.57 MB / 369.2 MB, free: 2.09 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3977/0.5108, allocations: 79.11 MB / 448.3 MB, free: 14.08 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003055/0.5112, allocations: 81.77 kB / 448.4 MB, free: 14.04 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02777/0.539, allocations: 5.726 MB / 454.1 MB, free: 9.121 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.539, allocations: 4 kB / 454.1 MB, free: 9.117 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.424e-05/0.5391, allocations: 8 kB / 454.1 MB, free: 9.109 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.001411/0.5405, allocations: 0.565 MB / 454.7 MB, free: 8.512 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.176e-05/0.5405, allocations: 8.031 kB / 454.7 MB, free: 8.504 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.873e-05/0.5406, allocations: 54.55 kB / 454.8 MB, free: 8.453 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001094/0.5408, allocations: 35 kB / 454.8 MB, free: 8.422 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004854/0.5413, allocations: 270.2 kB / 455.1 MB, free: 8.141 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.811e-05/0.5413, allocations: 23.64 kB / 455.1 MB, free: 8.125 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.465e-05/0.5414, allocations: 21.98 kB / 455.1 MB, free: 8.109 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005497/0.5419, allocations: 195.6 kB / 455.3 MB, free: 7.969 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.542, allocations: 0 / 455.3 MB, free: 7.969 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.785e-05/0.542, allocations: 6.562 kB / 455.3 MB, free: 7.969 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.313e-05/0.542, allocations: 8 kB / 455.3 MB, free: 7.961 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00047/0.5425, allocations: 150 kB / 455.4 MB, free: 7.871 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002669/0.5452, allocations: 0.9466 MB / 456.4 MB, free: 7.004 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004798/0.5457, allocations: 135.6 kB / 456.5 MB, free: 6.906 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001728/0.5459, allocations: 61.84 kB / 456.6 MB, free: 6.867 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.818e-05/0.546, allocations: 4 kB / 456.6 MB, free: 6.863 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003532/0.5463, allocations: 131.6 kB / 456.7 MB, free: 6.734 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 2.655e-06/0.5463, allocations: 224 / 456.7 MB, free: 6.734 MB / 330.7 MB Notification: Performance of matching and sorting (n=13): time 0.001023/0.5474, allocations: 235.2 kB / 457 MB, free: 6.535 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.931e-05/0.5475, allocations: 111.3 kB / 457.1 MB, free: 6.402 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004109/0.5479, allocations: 242.8 kB / 457.3 MB, free: 6.199 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.285e-05/0.548, allocations: 29.7 kB / 457.3 MB, free: 6.164 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001635/0.5481, allocations: 235.4 kB / 457.6 MB, free: 5.957 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.942e-05/0.5482, allocations: 42.7 kB / 457.6 MB, free: 5.922 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.906e-05/0.5482, allocations: 3.812 kB / 457.6 MB, free: 5.922 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.5484, allocations: 330.3 kB / 457.9 MB, free: 5.594 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00018/0.5486, allocations: 49.56 kB / 458 MB, free: 5.566 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002589/0.5488, allocations: 128.2 kB / 458.1 MB, free: 5.434 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002072/0.5491, allocations: 90.59 kB / 458.2 MB, free: 5.359 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.5491, allocations: 0 / 458.2 MB, free: 5.359 MB / 330.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001127/0.5502, allocations: 332.3 kB / 458.5 MB, free: 5.078 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004466/0.5507, allocations: 0.8127 MB / 459.3 MB, free: 4.211 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/0.5507, allocations: 4 kB / 459.3 MB, free: 4.207 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003419/0.5511, allocations: 47.03 kB / 459.4 MB, free: 4.168 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003888/0.5515, allocations: 54.72 kB / 459.4 MB, free: 4.117 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00119/0.5527, allocations: 0.6494 MB / 460.1 MB, free: 3.469 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006246/0.5533, allocations: 68.45 kB / 460.1 MB, free: 3.406 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.53e-05/0.5534, allocations: 8 kB / 460.1 MB, free: 3.398 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.5534, allocations: 4 kB / 460.2 MB, free: 3.395 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006289/0.554, allocations: 228.7 kB / 460.4 MB, free: 3.219 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.5541, allocations: 4 kB / 460.4 MB, free: 3.215 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001126/0.5542, allocations: 27.03 kB / 460.4 MB, free: 3.191 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003904/0.5546, allocations: 51.89 kB / 460.5 MB, free: 3.141 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00134/0.5559, allocations: 1.315 MB / 461.8 MB, free: 1.746 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000438/0.5564, allocations: 43.38 kB / 461.8 MB, free: 1.707 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.9e-05/0.5565, allocations: 12.06 kB / 461.8 MB, free: 1.695 MB / 330.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 () * 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.0001566/0.5566, allocations: 120.7 kB / 461.9 MB, free: 1.578 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.532e-05/0.5567, allocations: 23.72 kB / 462 MB, free: 1.555 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.318e-05/0.5568, allocations: 25.27 kB / 462 MB, free: 1.535 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.5568, allocations: 4 kB / 462 MB, free: 1.531 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.5568, allocations: 0 / 462 MB, free: 1.531 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.5569, allocations: 3.953 kB / 462 MB, free: 1.527 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004008/0.5573, allocations: 296.9 kB / 462.3 MB, free: 1.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.5573, allocations: 0 / 462.3 MB, free: 1.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002594/0.5576, allocations: 35.53 kB / 462.3 MB, free: 1.199 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002145/0.5578, allocations: 43.41 kB / 462.4 MB, free: 1.164 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.26e-05/0.5578, allocations: 4 kB / 462.4 MB, free: 1.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002292/0.5601, allocations: 1.581 MB / 464 MB, free: 15.56 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.5602, allocations: 4.016 kB / 464 MB, free: 15.56 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009659/0.5612, allocations: 269.3 kB / 464.2 MB, free: 15.3 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001173/0.5613, allocations: 100.8 kB / 464.3 MB, free: 15.18 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.927e-05/0.5614, allocations: 4 kB / 464.3 MB, free: 15.18 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004731/0.5619, allocations: 39.97 kB / 464.4 MB, free: 15.14 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001227/0.562, allocations: 23.95 kB / 464.4 MB, free: 15.12 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.199e-05/0.562, allocations: 8 kB / 464.4 MB, free: 15.11 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003349/0.5624, allocations: 187.1 kB / 464.6 MB, free: 14.93 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.5624, allocations: 4 kB / 464.6 MB, free: 14.93 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007237/0.5631, allocations: 127.6 kB / 464.7 MB, free: 14.8 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.001387/0.5645, allocations: 0.8003 MB / 465.5 MB, free: 13.97 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001716/0.5663, allocations: 0.53 MB / 466 MB, free: 13.4 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.706e-05/0.5663, allocations: 0 / 466 MB, free: 13.4 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000415/0.5667, allocations: 194.5 kB / 466.2 MB, free: 13.2 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000457/0.5672, allocations: 48.36 kB / 466.3 MB, free: 13.15 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005147/0.5724, allocations: 0.8634 MB / 467.1 MB, free: 12.25 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003959/0.5728, allocations: 0.7563 MB / 467.9 MB, free: 11.46 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002054/0.573, allocations: 75.41 kB / 468 MB, free: 11.39 MB / 346.7 MB Notification: Performance of SimCode: time 1.543e-06/0.5731, allocations: 0 / 468 MB, free: 11.39 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.652/3.225, allocations: 5.063 MB / 473 MB, free: 6.324 MB / 346.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