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.002246/0.002246, allocations: 186.5 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.969/1.969, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001154/0.001154, allocations: 96.31 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003951/0.000395, allocations: 12 kB / 327 MB, free: 216 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3385/0.3389, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1304/0.4694, allocations: 79.2 MB / 453.8 MB, free: 1.574 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004273/0.4699, allocations: 83.95 kB / 453.8 MB, free: 1.492 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03822/0.5081, allocations: 5.745 MB / 459.6 MB, free: 11.72 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.796e-06/0.5082, allocations: 0 / 459.6 MB, free: 11.72 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.085e-05/0.5082, allocations: 8 kB / 459.6 MB, free: 11.71 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.002102/0.5104, allocations: 0.595 MB / 460.2 MB, free: 11.07 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.239e-05/0.5104, allocations: 8.031 kB / 460.2 MB, free: 11.06 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001427/0.5106, allocations: 31.62 kB / 460.2 MB, free: 11.03 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006019/0.5112, allocations: 283.2 kB / 460.5 MB, free: 10.71 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.575e-05/0.5113, allocations: 16.39 kB / 460.5 MB, free: 10.7 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.913e-05/0.5114, allocations: 24 kB / 460.5 MB, free: 10.67 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001413/0.5128, allocations: 255.2 kB / 460.8 MB, free: 10.41 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.314e-05/0.5129, allocations: 4 kB / 460.8 MB, free: 10.41 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.064e-05/0.5129, allocations: 8 kB / 460.8 MB, free: 10.4 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.687e-05/0.513, allocations: 4 kB / 460.8 MB, free: 10.4 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002001/0.515, allocations: 273.6 kB / 461.1 MB, free: 10.13 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003846/0.5189, allocations: 0.9442 MB / 462 MB, free: 9.109 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002136/0.5211, allocations: 270.5 kB / 462.3 MB, free: 8.836 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.17e-05/0.5212, allocations: 11.98 kB / 462.3 MB, free: 8.824 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001197/0.5224, allocations: 201.8 kB / 462.5 MB, free: 8.605 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 4.638e-06/0.5225, allocations: 0 / 462.5 MB, free: 8.605 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.00593/0.5284, allocations: 0.7176 MB / 463.2 MB, free: 7.859 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.5286, allocations: 106.8 kB / 463.3 MB, free: 7.73 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006493/0.5293, allocations: 233.8 kB / 463.5 MB, free: 7.5 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.644e-05/0.5294, allocations: 37.69 kB / 463.6 MB, free: 7.457 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002331/0.5296, allocations: 226.3 kB / 463.8 MB, free: 7.234 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.5297, allocations: 47.44 kB / 463.8 MB, free: 7.188 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.531e-05/0.5298, allocations: 7.938 kB / 463.8 MB, free: 7.18 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.53, allocations: 326.8 kB / 464.2 MB, free: 6.852 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009002/0.5309, allocations: 107.9 kB / 464.3 MB, free: 6.746 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009576/0.5319, allocations: 192.5 kB / 464.5 MB, free: 6.527 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009071/0.5328, allocations: 154.5 kB / 464.6 MB, free: 6.371 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/0.5328, allocations: 0 / 464.6 MB, free: 6.371 MB / 346.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.002918/0.5358, allocations: 457.7 kB / 465.1 MB, free: 5.91 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004593/0.5362, allocations: 0.8227 MB / 465.9 MB, free: 5.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.347e-05/0.5363, allocations: 4 kB / 465.9 MB, free: 5.016 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007574/0.537, allocations: 84.8 kB / 466 MB, free: 4.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000504/0.5376, allocations: 47.91 kB / 466 MB, free: 4.883 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002104/0.5397, allocations: 0.7045 MB / 466.7 MB, free: 4.152 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008693/0.5406, allocations: 60.11 kB / 466.8 MB, free: 4.094 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.768e-05/0.5407, allocations: 12 kB / 466.8 MB, free: 4.082 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.5408, allocations: 7.938 kB / 466.8 MB, free: 4.074 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001916/0.5427, allocations: 322.9 kB / 467.1 MB, free: 3.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.5428, allocations: 0 / 467.1 MB, free: 3.75 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001545/0.543, allocations: 20.86 kB / 467.1 MB, free: 3.727 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005084/0.5435, allocations: 51.89 kB / 467.2 MB, free: 3.676 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001952/0.5455, allocations: 1.317 MB / 468.5 MB, free: 2.219 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005665/0.5461, allocations: 51.83 kB / 468.5 MB, free: 2.168 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.881e-05/0.5461, allocations: 8 kB / 468.6 MB, free: 2.16 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.0002715/0.5464, allocations: 220.9 kB / 468.8 MB, free: 1.938 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.415e-05/0.5465, allocations: 19.72 kB / 468.8 MB, free: 1.918 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.361e-05/0.5466, allocations: 29.81 kB / 468.8 MB, free: 1.891 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.5466, allocations: 0 / 468.8 MB, free: 1.891 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.5466, allocations: 0 / 468.8 MB, free: 1.891 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.5466, allocations: 7.953 kB / 468.8 MB, free: 1.883 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004013/0.5471, allocations: 305.3 kB / 469.1 MB, free: 1.535 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.5471, allocations: 0 / 469.1 MB, free: 1.535 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002626/0.5473, allocations: 23.98 kB / 469.2 MB, free: 1.512 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004996/0.5479, allocations: 84.8 kB / 469.2 MB, free: 1.426 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.378e-05/0.5479, allocations: 3.984 kB / 469.2 MB, free: 1.422 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003894/0.5518, allocations: 1.791 MB / 471 MB, free: 15.49 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.5519, allocations: 0 / 471 MB, free: 15.49 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002045/0.5539, allocations: 400.5 kB / 471.4 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001316/0.5541, allocations: 96.86 kB / 471.5 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.837e-05/0.5542, allocations: 4 kB / 471.5 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004813/0.5547, allocations: 47.95 kB / 471.6 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001168/0.5548, allocations: 19.97 kB / 471.6 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.787e-05/0.5548, allocations: 0 / 471.6 MB, free: 14.9 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003028/0.5551, allocations: 198 kB / 471.8 MB, free: 14.71 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5551, allocations: 3.938 kB / 471.8 MB, free: 14.7 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006996/0.5559, allocations: 119.8 kB / 471.9 MB, free: 14.59 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.0001863/0.5561, allocations: 115.1 kB / 472 MB, free: 14.46 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002955/0.559, allocations: 0.6933 MB / 472.7 MB, free: 13.73 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.5591, allocations: 0 / 472.7 MB, free: 13.73 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008821/0.56, allocations: 247 kB / 472.9 MB, free: 13.48 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005046/0.5605, allocations: 52.31 kB / 473 MB, free: 13.43 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005588/0.5661, allocations: 1.066 MB / 474.1 MB, free: 12.34 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003346/0.5665, allocations: 0.7524 MB / 474.8 MB, free: 11.56 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001347/0.5667, allocations: 23.44 kB / 474.8 MB, free: 11.54 MB / 362.7 MB Notification: Performance of SimCode: time 1.092e-06/0.5667, allocations: 0 / 474.8 MB, free: 11.54 MB / 362.7 MB Notification: Performance of Templates: time 0.009457/0.5761, allocations: 4.019 MB / 478.9 MB, free: 7.535 MB / 362.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