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: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001655/0.001655, 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.068/2.068, 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.001086/0.001086, allocations: 78.7 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.403e-05/3.414e-05, allocations: 4 kB / 321.5 MB, free: 17.82 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09761/0.09767, allocations: 47.57 MB / 369.1 MB, free: 2.191 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4041/0.5018, allocations: 79.12 MB / 448.2 MB, free: 14.05 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003003/0.5021, allocations: 81.69 kB / 448.3 MB, free: 14.01 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02824/0.5304, allocations: 5.726 MB / 454 MB, free: 9.09 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.5305, allocations: 0 / 454 MB, free: 9.09 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.249e-05/0.5305, allocations: 4 kB / 454 MB, free: 9.086 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.001422/0.5319, allocations: 0.5706 MB / 454.6 MB, free: 8.484 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.442e-05/0.532, allocations: 8.031 kB / 454.6 MB, free: 8.477 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001272/0.5321, allocations: 27.72 kB / 454.6 MB, free: 8.449 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005487/0.5327, allocations: 279 kB / 454.9 MB, free: 8.164 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.252e-05/0.5328, allocations: 16.2 kB / 454.9 MB, free: 8.152 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.292e-05/0.5328, allocations: 17.88 kB / 454.9 MB, free: 8.141 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005604/0.5334, allocations: 201.4 kB / 455.1 MB, free: 7.996 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.5334, allocations: 0 / 455.1 MB, free: 7.996 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.991e-05/0.5335, allocations: 14.25 kB / 455.1 MB, free: 7.988 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.5335, allocations: 4 kB / 455.2 MB, free: 7.984 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004481/0.534, allocations: 149.6 kB / 455.3 MB, free: 7.895 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002747/0.5367, allocations: 0.9452 MB / 456.2 MB, free: 7.027 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004794/0.5372, allocations: 137.9 kB / 456.4 MB, free: 6.93 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000166/0.5374, allocations: 55.55 kB / 456.4 MB, free: 6.895 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.394e-05/0.5375, allocations: 0 / 456.4 MB, free: 6.895 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003485/0.5378, allocations: 146.4 kB / 456.6 MB, free: 6.754 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 2.014e-06/0.5379, allocations: 224 / 456.6 MB, free: 6.754 MB / 330.7 MB Notification: Performance of matching and sorting (n=13): time 0.001034/0.5389, allocations: 227.3 kB / 456.8 MB, free: 6.559 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.095e-05/0.539, allocations: 110.1 kB / 456.9 MB, free: 6.43 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004523/0.5395, allocations: 240 kB / 457.1 MB, free: 6.227 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.085e-05/0.5396, allocations: 29.2 kB / 457.2 MB, free: 6.195 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001743/0.5397, allocations: 238.2 kB / 457.4 MB, free: 5.984 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.818e-05/0.5398, allocations: 38.14 kB / 457.4 MB, free: 5.953 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.539e-05/0.5399, allocations: 11.69 kB / 457.4 MB, free: 5.945 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.54, allocations: 322.4 kB / 457.8 MB, free: 5.625 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000181/0.5402, allocations: 61.86 kB / 457.8 MB, free: 5.586 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002915/0.5405, allocations: 120.5 kB / 457.9 MB, free: 5.461 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002317/0.5408, allocations: 91.45 kB / 458 MB, free: 5.387 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.199e-06/0.5408, allocations: 3.938 kB / 458 MB, free: 5.383 MB / 330.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001178/0.542, allocations: 329.1 kB / 458.4 MB, free: 5.105 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004339/0.5424, allocations: 0.8097 MB / 459.2 MB, free: 4.242 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/0.5425, allocations: 8 kB / 459.2 MB, free: 4.234 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003483/0.5428, allocations: 51.27 kB / 459.2 MB, free: 4.191 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003988/0.5432, allocations: 43.91 kB / 459.3 MB, free: 4.148 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001221/0.5445, allocations: 0.6621 MB / 459.9 MB, free: 3.488 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006529/0.5452, allocations: 59.34 kB / 460 MB, free: 3.434 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.041e-05/0.5452, allocations: 15.67 kB / 460 MB, free: 3.422 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.5452, allocations: 4.062 kB / 460 MB, free: 3.418 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006351/0.5459, allocations: 217.8 kB / 460.2 MB, free: 3.25 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.5459, allocations: 4 kB / 460.2 MB, free: 3.246 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001257/0.5461, allocations: 27.53 kB / 460.2 MB, free: 3.219 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003994/0.5465, allocations: 51.34 kB / 460.3 MB, free: 3.172 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001369/0.5479, allocations: 1.307 MB / 461.6 MB, free: 1.781 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004752/0.5484, allocations: 54.2 kB / 461.7 MB, free: 1.734 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.878e-05/0.5484, allocations: 8 kB / 461.7 MB, free: 1.727 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.000181/0.5486, allocations: 123.9 kB / 461.8 MB, free: 1.605 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.771e-05/0.5487, allocations: 23.72 kB / 461.8 MB, free: 1.582 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.404e-05/0.5488, allocations: 27.2 kB / 461.8 MB, free: 1.559 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.828e-06/0.5488, allocations: 0 / 461.8 MB, free: 1.559 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.5488, allocations: 4 kB / 461.8 MB, free: 1.555 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.5489, allocations: 3.953 kB / 461.8 MB, free: 1.551 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004083/0.5493, allocations: 298.3 kB / 462.1 MB, free: 1.258 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.5493, allocations: 0 / 462.1 MB, free: 1.258 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002763/0.5496, allocations: 23.98 kB / 462.2 MB, free: 1.234 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002395/0.5498, allocations: 58.77 kB / 462.2 MB, free: 1.184 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.151e-05/0.5499, allocations: 0 / 462.2 MB, free: 1.184 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00227/0.5522, allocations: 1.587 MB / 463.8 MB, free: 15.58 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.5522, allocations: 0 / 463.8 MB, free: 15.58 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.5532, allocations: 272 kB / 464.1 MB, free: 15.34 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001192/0.5534, allocations: 96.02 kB / 464.2 MB, free: 15.23 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.718e-05/0.5535, allocations: 7.984 kB / 464.2 MB, free: 15.22 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004874/0.554, allocations: 43.16 kB / 464.2 MB, free: 15.18 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001248/0.5541, allocations: 19.22 kB / 464.2 MB, free: 15.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.985e-05/0.5541, allocations: 3.188 kB / 464.2 MB, free: 15.16 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003066/0.5544, allocations: 194.6 kB / 464.4 MB, free: 15.01 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5545, allocations: 0 / 464.4 MB, free: 15.01 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007425/0.5552, allocations: 121.4 kB / 464.5 MB, free: 14.9 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.0002072/0.5554, allocations: 105.8 kB / 464.6 MB, free: 14.79 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001793/0.5572, allocations: 0.5347 MB / 465.2 MB, free: 14.27 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.945e-06/0.5573, allocations: 0 / 465.2 MB, free: 14.27 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004215/0.5577, allocations: 186.6 kB / 465.4 MB, free: 14.07 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004778/0.5582, allocations: 53.36 kB / 465.4 MB, free: 14.02 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004931/0.5632, allocations: 0.8108 MB / 466.2 MB, free: 13.18 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004013/0.5636, allocations: 0.7524 MB / 467 MB, free: 12.4 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001448/0.5638, allocations: 15.44 kB / 467 MB, free: 12.38 MB / 346.7 MB Notification: Performance of SimCode: time 1.132e-06/0.5638, allocations: 7.938 kB / 467 MB, free: 12.38 MB / 346.7 MB Notification: Performance of Templates: time 0.01008/0.5739, allocations: 4.029 MB / 471 MB, free: 8.348 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.makefile (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 & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/InvertingSchmittTrigger/InvertingSchmittTrigger.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches