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.001235/0.001235, allocations: 85.14 kB / 16.31 MB, free: 6.449 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.001641/0.001641, allocations: 180.4 kB / 17.21 MB, free: 6.32 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.564/1.564, allocations: 223.3 MB / 241.2 MB, free: 5.242 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003077/0.0003079, allocations: 7.828 kB / 300.8 MB, free: 5.508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1197, allocations: 50.43 MB / 351.3 MB, free: 11.36 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.00341/0.1231, allocations: 2.451 MB / 353.7 MB, free: 8.891 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001508/0.1247, allocations: 0.6703 MB / 354.4 MB, free: 8.215 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003308/0.125, allocations: 11.94 kB / 354.4 MB, free: 8.203 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002001/0.1252, allocations: 31.75 kB / 354.4 MB, free: 8.172 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003121/0.1256, allocations: 79.39 kB / 354.5 MB, free: 8.094 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004199/0.126, allocations: 79.83 kB / 354.6 MB, free: 8.016 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006165/0.1266, allocations: 354.5 kB / 354.9 MB, free: 7.668 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002967/0.1269, allocations: 94.19 kB / 355 MB, free: 7.57 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002778/0.1272, allocations: 123.5 kB / 355.1 MB, free: 7.449 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003244/0.1276, allocations: 147.4 kB / 355.3 MB, free: 7.305 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.582e-05/0.1276, allocations: 16 kB / 355.3 MB, free: 7.289 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.046e-05/0.1277, allocations: 20 kB / 355.3 MB, free: 7.27 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.637e-05/0.1278, allocations: 63.69 kB / 355.4 MB, free: 7.207 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001131/0.1279, allocations: 73.58 kB / 355.4 MB, free: 7.129 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003694/0.1283, allocations: 295.1 kB / 355.7 MB, free: 6.84 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.1283, allocations: 4 kB / 355.7 MB, free: 6.836 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1283, allocations: 0 / 355.7 MB, free: 6.836 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.739e-05/0.1284, allocations: 3.938 kB / 355.7 MB, free: 6.832 MB / 286.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.001575/0.1299, allocations: 0.6496 MB / 356.4 MB, free: 6.125 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.737e-05/0.13, allocations: 16.03 kB / 356.4 MB, free: 6.109 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001632/0.1302, allocations: 31.62 kB / 356.4 MB, free: 6.078 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005791/0.1308, allocations: 286.4 kB / 356.7 MB, free: 5.758 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.749e-05/0.1308, allocations: 16.56 kB / 356.7 MB, free: 5.742 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.124e-05/0.1309, allocations: 24 kB / 356.8 MB, free: 5.719 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008048/0.1317, allocations: 335.6 kB / 357.1 MB, free: 5.383 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.1317, allocations: 0 / 357.1 MB, free: 5.383 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.459e-05/0.1318, allocations: 15.95 kB / 357.1 MB, free: 5.367 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.191e-05/0.1318, allocations: 8 kB / 357.1 MB, free: 5.359 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007998/0.1326, allocations: 302 kB / 357.4 MB, free: 5.062 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001891/0.1345, allocations: 1.165 MB / 358.6 MB, free: 3.812 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007916/0.1353, allocations: 242.5 kB / 358.8 MB, free: 3.566 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000329/0.1356, allocations: 104.8 kB / 358.9 MB, free: 3.461 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.939e-05/0.1357, allocations: 4 kB / 358.9 MB, free: 3.457 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005014/0.1362, allocations: 169 kB / 359.1 MB, free: 3.273 MB / 286.1 MB Notification: Performance of pre-optimization done (n=10): time 1.483e-06/0.1362, allocations: 192 / 359.1 MB, free: 3.273 MB / 286.1 MB Notification: Performance of matching and sorting (n=10): time 0.001434/0.1376, allocations: 447.1 kB / 359.5 MB, free: 2.809 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.1377, allocations: 85.12 kB / 359.6 MB, free: 2.707 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004629/0.1382, allocations: 328.4 kB / 359.9 MB, free: 2.383 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.307e-05/0.1383, allocations: 29.7 kB / 359.9 MB, free: 2.348 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002015/0.1385, allocations: 203.5 kB / 360.1 MB, free: 2.145 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.128e-05/0.1385, allocations: 35.53 kB / 360.2 MB, free: 2.109 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.423e-05/0.1385, allocations: 4 kB / 360.2 MB, free: 2.105 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001978/0.1387, allocations: 343.1 kB / 360.5 MB, free: 1.758 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003447/0.1391, allocations: 124.1 kB / 360.6 MB, free: 1.633 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004567/0.1396, allocations: 219 kB / 360.9 MB, free: 1.367 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003812/0.14, allocations: 157.6 kB / 361 MB, free: 1.207 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.14, allocations: 3.938 kB / 361 MB, free: 1.203 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009775/0.1409, allocations: 423.7 kB / 361.4 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.675e-05/0.141, allocations: 33.7 kB / 361.5 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.141, allocations: 4 kB / 361.5 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001951/0.1412, allocations: 33 kB / 361.5 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002718/0.1415, allocations: 75.88 kB / 361.6 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001109/0.1426, allocations: 1.304 MB / 362.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003586/0.143, allocations: 71.7 kB / 362.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.588e-05/0.143, allocations: 8 kB / 362.9 MB, free: 15.1 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 ($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.0001772/0.1432, allocations: 145.7 kB / 363.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.841e-05/0.1433, allocations: 23.72 kB / 363.1 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.571e-05/0.1434, allocations: 38.53 kB / 363.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.1434, allocations: 4 kB / 363.2 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.1434, allocations: 4 kB / 363.2 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.1434, allocations: 7.953 kB / 363.2 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005443/0.1439, allocations: 451.1 kB / 363.6 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.144, allocations: 0 / 363.6 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001749/0.1441, allocations: 39.95 kB / 363.6 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001181/0.1443, allocations: 28.88 kB / 363.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.819e-05/0.1443, allocations: 4 kB / 363.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001156/0.1455, allocations: 1.304 MB / 365 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.1455, allocations: 0 / 365 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007021/0.1462, allocations: 298.4 kB / 365.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/0.1463, allocations: 108.8 kB / 365.4 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.747e-05/0.1464, allocations: 3.984 kB / 365.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002131/0.1466, allocations: 35.97 kB / 365.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.48e-05/0.1467, allocations: 23.91 kB / 365.4 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.107e-05/0.1467, allocations: 0 / 365.4 MB, free: 12.36 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002627/0.147, allocations: 231.1 kB / 365.7 MB, free: 12.13 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.147, allocations: 0 / 365.7 MB, free: 12.13 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000403/0.1474, allocations: 67.84 kB / 365.7 MB, free: 12.07 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 (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.0001899/0.1476, allocations: 103.9 kB / 365.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009901/0.1486, allocations: 438.5 kB / 366.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.1486, allocations: 4.188 kB / 366.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004709/0.1491, allocations: 238.6 kB / 366.5 MB, free: 11.25 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000373/0.1495, allocations: 40.23 kB / 366.5 MB, free: 11.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001173/0.1506, allocations: 0.5616 MB / 367.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000427/0.1511, allocations: 0.7521 MB / 367.9 MB, free: 9.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001636/0.1513, allocations: 42.95 kB / 367.9 MB, free: 9.801 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.423e-05/0.1513, allocations: 19.44 kB / 367.9 MB, free: 9.781 MB / 302.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1514, allocations: 0 / 367.9 MB, free: 9.781 MB / 302.1 MB Notification: Performance of Templates: time 0.008006/0.1594, allocations: 2.881 MB / 370.8 MB, free: 6.934 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins/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