Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.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.Comparator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002016/0.002016, allocations: 181.2 kB / 17.01 MB, free: 5.125 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.845/1.845, allocations: 205.4 MB / 223.1 MB, free: 9.113 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.0009997/0.0009997, allocations: 86.66 kB / 271.5 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003399/0.00034, allocations: 8 kB / 328.3 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3155/0.3159, allocations: 47.56 MB / 375.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1132/0.4292, allocations: 80.14 MB / 456 MB, free: 0.5352 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002897/0.4295, allocations: 79.95 kB / 456 MB, free: 468 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01763/0.4472, allocations: 6.121 MB / 462.2 MB, free: 10.31 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.4472, allocations: 3.938 kB / 462.2 MB, free: 10.31 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.058e-05/0.4472, allocations: 8 kB / 462.2 MB, free: 10.3 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001279/0.4485, allocations: 0.6424 MB / 462.8 MB, free: 9.602 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.4486, allocations: 8.031 kB / 462.8 MB, free: 9.594 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.973e-05/0.4487, allocations: 35.62 kB / 462.9 MB, free: 9.559 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004252/0.4491, allocations: 295.3 kB / 463.1 MB, free: 9.23 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.964e-05/0.4491, allocations: 16.56 kB / 463.2 MB, free: 9.215 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.167e-05/0.4492, allocations: 24 kB / 463.2 MB, free: 9.191 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007237/0.4499, allocations: 300.8 kB / 463.5 MB, free: 8.891 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.305e-05/0.45, allocations: 0 / 463.5 MB, free: 8.891 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.414e-05/0.45, allocations: 8 kB / 463.5 MB, free: 8.883 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.557e-05/0.45, allocations: 12 kB / 463.5 MB, free: 8.871 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008413/0.4509, allocations: 318 kB / 463.8 MB, free: 8.559 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002307/0.4532, allocations: 1.138 MB / 464.9 MB, free: 7.332 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008598/0.4541, allocations: 242.5 kB / 465.2 MB, free: 7.086 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.669e-05/0.4541, allocations: 0 / 465.2 MB, free: 7.086 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005482/0.4547, allocations: 169.1 kB / 465.3 MB, free: 6.902 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 1.984e-06/0.4547, allocations: 4 kB / 465.4 MB, free: 6.898 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.001376/0.4561, allocations: 439.2 kB / 465.8 MB, free: 6.441 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.838e-05/0.4562, allocations: 85.05 kB / 465.9 MB, free: 6.34 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004103/0.4566, allocations: 291.6 kB / 466.1 MB, free: 6.055 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.456e-05/0.4566, allocations: 29.7 kB / 466.2 MB, free: 6.02 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001745/0.4568, allocations: 203.5 kB / 466.4 MB, free: 5.816 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.537e-05/0.4569, allocations: 31.55 kB / 466.4 MB, free: 5.785 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.587e-05/0.4569, allocations: 8 kB / 466.4 MB, free: 5.777 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.4571, allocations: 334.8 kB / 466.7 MB, free: 5.441 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003153/0.4574, allocations: 112.2 kB / 466.9 MB, free: 5.332 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003744/0.4578, allocations: 214.1 kB / 467.1 MB, free: 5.074 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003559/0.4581, allocations: 153.6 kB / 467.2 MB, free: 4.918 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.4582, allocations: 0 / 467.2 MB, free: 4.918 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009253/0.4591, allocations: 415.8 kB / 467.6 MB, free: 4.496 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008281/0.4599, allocations: 1.429 MB / 469 MB, free: 2.953 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/0.46, allocations: 4 kB / 469 MB, free: 2.949 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002331/0.4602, allocations: 28.84 kB / 469.1 MB, free: 2.918 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000296/0.4605, allocations: 71.88 kB / 469.1 MB, free: 2.848 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001302/0.4618, allocations: 1.319 MB / 470.5 MB, free: 1.398 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003786/0.4622, allocations: 63.59 kB / 470.5 MB, free: 1.336 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.885e-05/0.4622, allocations: 15.98 kB / 470.5 MB, free: 1.32 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.135e-05/0.4623, allocations: 6.188 kB / 470.5 MB, free: 1.316 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007374/0.463, allocations: 342.5 kB / 470.9 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.77e-06/0.463, allocations: 4 kB / 470.9 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.272e-05/0.4631, allocations: 29.03 kB / 470.9 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002289/0.4633, allocations: 63.89 kB / 471 MB, free: 0.875 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009579/0.4643, allocations: 1.299 MB / 472.3 MB, free: 15.44 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003318/0.4647, allocations: 39.73 kB / 472.3 MB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.11e-05/0.4647, allocations: 15.95 kB / 472.3 MB, free: 15.38 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (27): * Single equations (assignments): 25 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002789/0.465, allocations: 229.2 kB / 472.6 MB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.597e-05/0.465, allocations: 23.72 kB / 472.6 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.481e-05/0.4651, allocations: 29.89 kB / 472.6 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.4651, allocations: 0 / 472.6 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.4651, allocations: 0 / 472.6 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.4651, allocations: 0 / 472.6 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005594/0.4657, allocations: 459.1 kB / 473.1 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.4657, allocations: 8.031 kB / 473.1 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001661/0.4659, allocations: 31.97 kB / 473.1 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001024/0.466, allocations: 24.84 kB / 473.1 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/0.466, allocations: 3.984 kB / 473.1 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001078/0.4671, allocations: 1.315 MB / 474.4 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.4671, allocations: 4.25 kB / 474.4 MB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007219/0.4679, allocations: 311.7 kB / 474.7 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001003/0.468, allocations: 104.7 kB / 474.9 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.197e-05/0.468, allocations: 11.98 kB / 474.9 MB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002175/0.4683, allocations: 27.97 kB / 474.9 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001396/0.4684, allocations: 19.97 kB / 474.9 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.398e-05/0.4684, allocations: 4 kB / 474.9 MB, free: 12.55 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002692/0.4687, allocations: 231.1 kB / 475.1 MB, free: 12.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4687, allocations: 0 / 475.1 MB, free: 12.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00061/0.4693, allocations: 123.8 kB / 475.3 MB, free: 12.2 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (10): * Single equations (assignments): 7 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002306/0.4696, allocations: 113.2 kB / 475.4 MB, free: 12.08 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001501/0.4711, allocations: 0.7273 MB / 476.1 MB, free: 11.3 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.4711, allocations: 0 / 476.1 MB, free: 11.3 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004528/0.4716, allocations: 235.4 kB / 476.3 MB, free: 11.06 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003336/0.4719, allocations: 40.56 kB / 476.4 MB, free: 11.02 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00105/0.473, allocations: 0.5568 MB / 476.9 MB, free: 10.44 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003432/0.4733, allocations: 0.7641 MB / 477.7 MB, free: 9.648 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001806/0.4735, allocations: 38.97 kB / 477.7 MB, free: 9.609 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.226e-05/0.4736, allocations: 27.42 kB / 477.8 MB, free: 9.582 MB / 362.7 MB Notification: Performance of SimCode: time 3.71e-07/0.4736, allocations: 0 / 477.8 MB, free: 9.582 MB / 362.7 MB Notification: Performance of Templates: time 0.007594/0.4812, allocations: 3.234 MB / 481 MB, free: 6.379 MB / 362.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches