Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00159/0.00159, allocations: 117.8 kB / 17.7 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00172/0.00172, allocations: 192 kB / 18.63 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.601/1.601, allocations: 222.9 MB / 242.3 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 50.98 kB / 302.1 MB, free: 5.211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.1343, allocations: 49.44 MB / 351.5 MB, free: 3.742 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.005697/0.1401, allocations: 2.874 MB / 354.4 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001732/0.1418, allocations: 0.7012 MB / 355.1 MB, free: 144 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000416/0.1423, allocations: 11.94 kB / 355.1 MB, free: 132 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003063/0.1426, allocations: 51.5 kB / 355.2 MB, free: 80 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005223/0.1432, allocations: 99.27 kB / 355.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004582/0.1436, allocations: 103.8 kB / 355.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000706/0.1444, allocations: 398.3 kB / 355.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003272/0.1447, allocations: 135.9 kB / 355.9 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003437/0.1451, allocations: 147.4 kB / 356 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003429/0.1454, allocations: 171.2 kB / 356.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.786e-05/0.1455, allocations: 36 kB / 356.2 MB, free: 15 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.917e-05/0.1456, allocations: 40 kB / 356.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.908e-05/0.1457, allocations: 75.67 kB / 356.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002417/0.146, allocations: 171.2 kB / 356.5 MB, free: 14.72 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005233/0.1465, allocations: 398.6 kB / 356.9 MB, free: 14.33 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.1465, allocations: 3.938 kB / 356.9 MB, free: 14.33 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1465, allocations: 0 / 356.9 MB, free: 14.33 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.664e-05/0.1466, allocations: 0 / 356.9 MB, free: 14.33 MB / 302.1 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.001713/0.1483, allocations: 0.6886 MB / 357.6 MB, free: 13.59 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.1483, allocations: 12.03 kB / 357.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001282/0.1485, allocations: 32.56 kB / 357.6 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005788/0.1491, allocations: 287.6 kB / 357.9 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.868e-05/0.1491, allocations: 20.94 kB / 357.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.747e-05/0.1491, allocations: 24.38 kB / 357.9 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007876/0.1499, allocations: 327.9 kB / 358.3 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.15, allocations: 0 / 358.3 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.662e-05/0.15, allocations: 12 kB / 358.3 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.177e-05/0.15, allocations: 8 kB / 358.3 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008009/0.1508, allocations: 278 kB / 358.6 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002036/0.1529, allocations: 1.126 MB / 359.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007833/0.1537, allocations: 206.5 kB / 359.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003009/0.154, allocations: 96.78 kB / 360 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.854e-05/0.154, allocations: 0 / 360 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004234/0.1545, allocations: 157.1 kB / 360.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.643e-06/0.1545, allocations: 7.938 kB / 360.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001241/0.1557, allocations: 407 kB / 360.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.499e-05/0.1558, allocations: 85.05 kB / 360.6 MB, free: 10.33 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004445/0.1563, allocations: 324.5 kB / 360.9 MB, free: 10 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.587e-05/0.1563, allocations: 37.73 kB / 361 MB, free: 9.957 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001782/0.1565, allocations: 211.4 kB / 361.2 MB, free: 9.746 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.135e-05/0.1565, allocations: 27.94 kB / 361.2 MB, free: 9.719 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001051/0.1566, allocations: 57.92 kB / 361.3 MB, free: 9.652 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.1568, allocations: 334.8 kB / 361.6 MB, free: 9.316 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003289/0.1571, allocations: 96.16 kB / 361.7 MB, free: 9.223 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003887/0.1575, allocations: 223.4 kB / 361.9 MB, free: 8.953 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006997/0.1583, allocations: 330.7 kB / 362.2 MB, free: 8.574 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/0.1583, allocations: 4 kB / 362.2 MB, free: 8.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009784/0.1593, allocations: 399.5 kB / 362.6 MB, free: 8.164 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.053e-05/0.1593, allocations: 37.7 kB / 362.7 MB, free: 8.121 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.609e-05/0.1593, allocations: 7.984 kB / 362.7 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002193/0.1596, allocations: 37.05 kB / 362.7 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002671/0.1598, allocations: 59.89 kB / 362.8 MB, free: 8.016 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001315/0.1612, allocations: 1.406 MB / 364.2 MB, free: 6.469 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003661/0.1616, allocations: 51.66 kB / 364.2 MB, free: 6.418 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.455e-05/0.1616, allocations: 12.09 kB / 364.2 MB, free: 6.406 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001855/0.1618, allocations: 157.6 kB / 364.4 MB, free: 6.242 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.094e-05/0.1618, allocations: 31.7 kB / 364.4 MB, free: 6.211 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.155e-05/0.1619, allocations: 22.61 kB / 364.4 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.1619, allocations: 4 kB / 364.4 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.1619, allocations: 3.938 kB / 364.4 MB, free: 6.184 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.1619, allocations: 0 / 364.4 MB, free: 6.184 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005007/0.1624, allocations: 459.2 kB / 364.9 MB, free: 5.676 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.1625, allocations: 3.938 kB / 364.9 MB, free: 5.672 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001671/0.1626, allocations: 31.97 kB / 364.9 MB, free: 5.641 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001084/0.1627, allocations: 32.72 kB / 365 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.1628, allocations: 7.984 kB / 365 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001017/0.1638, allocations: 1.395 MB / 366.4 MB, free: 4.062 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/0.1638, allocations: 3.984 kB / 366.4 MB, free: 4.059 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006836/0.1645, allocations: 270.3 kB / 366.6 MB, free: 3.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001009/0.1646, allocations: 108.7 kB / 366.7 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.744e-05/0.1647, allocations: 4 kB / 366.7 MB, free: 3.641 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000211/0.1649, allocations: 23.97 kB / 366.8 MB, free: 3.617 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.103e-05/0.165, allocations: 23.91 kB / 366.8 MB, free: 3.594 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.512e-05/0.165, allocations: 12 kB / 366.8 MB, free: 3.582 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002436/0.1652, allocations: 227.1 kB / 367 MB, free: 3.359 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1652, allocations: 0 / 367 MB, free: 3.359 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003619/0.1656, allocations: 63.94 kB / 367.1 MB, free: 3.297 MB / 302.1 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 (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001941/0.1658, allocations: 108.7 kB / 367.2 MB, free: 3.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009608/0.1668, allocations: 418.5 kB / 367.6 MB, free: 2.746 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1668, allocations: 0 / 367.6 MB, free: 2.746 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004282/0.1672, allocations: 214.8 kB / 367.8 MB, free: 2.523 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003309/0.1676, allocations: 45.06 kB / 367.9 MB, free: 2.477 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009604/0.1685, allocations: 469.4 kB / 368.3 MB, free: 1.988 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003321/0.1689, allocations: 0.7558 MB / 369.1 MB, free: 1.203 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001114/0.169, allocations: 30.97 kB / 369.1 MB, free: 1.176 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.426e-05/0.1691, allocations: 23.44 kB / 369.1 MB, free: 1.156 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1691, allocations: 8 kB / 369.1 MB, free: 1.148 MB / 302.1 MB Notification: Performance of Templates: time 0.2556/0.4247, allocations: 3.213 MB / 372.3 MB, free: 25.65 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches