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.001362/0.001362, allocations: 93.86 kB / 16.65 MB, free: 6.535 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.001788/0.001788, allocations: 173.9 kB / 17.56 MB, free: 6.184 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.705/1.705, allocations: 223.3 MB / 241.6 MB, free: 14.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003155/0.0003157, allocations: 12.12 kB / 301.4 MB, free: 5.879 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1137, allocations: 50.41 MB / 351.8 MB, free: 3.453 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004406/0.1182, allocations: 2.557 MB / 354.4 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002264/0.1206, allocations: 0.6935 MB / 355.1 MB, free: 184 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004596/0.1211, allocations: 7.938 kB / 355.1 MB, free: 176 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003403/0.1214, allocations: 35.75 kB / 355.1 MB, free: 140 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005614/0.122, allocations: 79.39 kB / 355.2 MB, free: 60 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006721/0.1227, allocations: 95.92 kB / 355.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007727/0.1235, allocations: 370.5 kB / 355.7 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003677/0.1239, allocations: 111.5 kB / 355.8 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003452/0.1243, allocations: 127.4 kB / 355.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003682/0.1246, allocations: 151.3 kB / 356.1 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.763e-05/0.1247, allocations: 19.94 kB / 356.1 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.812e-05/0.1248, allocations: 20 kB / 356.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001213/0.125, allocations: 59.75 kB / 356.2 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002972/0.1253, allocations: 176.8 kB / 356.3 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005608/0.1258, allocations: 366.8 kB / 356.7 MB, free: 14.58 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.324e-06/0.1259, allocations: 0 / 356.7 MB, free: 14.58 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.1259, allocations: 0 / 356.7 MB, free: 14.58 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.11e-05/0.1259, allocations: 0 / 356.7 MB, free: 14.58 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.002006/0.1279, allocations: 0.6498 MB / 357.3 MB, free: 13.87 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.775e-05/0.128, allocations: 12.03 kB / 357.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001639/0.1282, allocations: 32.56 kB / 357.4 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006642/0.1288, allocations: 287.6 kB / 357.7 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.894e-05/0.1289, allocations: 20.88 kB / 357.7 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.173e-05/0.1289, allocations: 24.38 kB / 357.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008811/0.1298, allocations: 343.9 kB / 358 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.1299, allocations: 0 / 358 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.083e-05/0.1299, allocations: 12 kB / 358 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.1299, allocations: 4 kB / 358.1 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00095/0.1309, allocations: 310 kB / 358.4 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002436/0.1333, allocations: 1.169 MB / 359.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009408/0.1343, allocations: 242.5 kB / 359.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003756/0.1347, allocations: 100.8 kB / 359.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.179e-05/0.1347, allocations: 0 / 359.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005644/0.1353, allocations: 185.1 kB / 360 MB, free: 11 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 2.424e-06/0.1353, allocations: 0 / 360 MB, free: 11 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001552/0.1369, allocations: 459.1 kB / 360.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.75e-05/0.137, allocations: 81.11 kB / 360.6 MB, free: 10.42 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004626/0.1374, allocations: 324.5 kB / 360.9 MB, free: 10.1 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.469e-05/0.1375, allocations: 29.7 kB / 360.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001929/0.1377, allocations: 211.5 kB / 361.1 MB, free: 9.855 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.367e-05/0.1377, allocations: 31.55 kB / 361.2 MB, free: 9.824 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.021e-05/0.1378, allocations: 25.72 kB / 361.2 MB, free: 9.793 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.138, allocations: 338.8 kB / 361.5 MB, free: 9.453 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004179/0.1384, allocations: 116.1 kB / 361.6 MB, free: 9.336 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004485/0.1389, allocations: 219.9 kB / 361.8 MB, free: 9.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008384/0.1397, allocations: 371.9 kB / 362.2 MB, free: 8.648 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.1397, allocations: 0 / 362.2 MB, free: 8.648 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001098/0.1408, allocations: 428.6 kB / 362.6 MB, free: 8.215 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.914e-05/0.1409, allocations: 41.62 kB / 362.7 MB, free: 8.168 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/0.1409, allocations: 4 kB / 362.7 MB, free: 8.164 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001989/0.1411, allocations: 29 kB / 362.7 MB, free: 8.133 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002888/0.1414, allocations: 67.89 kB / 362.8 MB, free: 8.066 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001263/0.1427, allocations: 1.308 MB / 364.1 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004445/0.1432, allocations: 59.56 kB / 364.1 MB, free: 6.566 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.052e-05/0.1432, allocations: 20.09 kB / 364.1 MB, free: 6.547 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.0002164/0.1434, allocations: 157.6 kB / 364.3 MB, free: 6.383 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.94e-05/0.1435, allocations: 23.72 kB / 364.3 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.95e-05/0.1436, allocations: 30.61 kB / 364.3 MB, free: 6.332 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-06/0.1436, allocations: 0 / 364.3 MB, free: 6.332 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.1436, allocations: 0 / 364.3 MB, free: 6.332 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.1436, allocations: 0 / 364.3 MB, free: 6.332 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005673/0.1442, allocations: 455.6 kB / 364.8 MB, free: 5.828 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.1442, allocations: 4 kB / 364.8 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001815/0.1444, allocations: 31.97 kB / 364.8 MB, free: 5.793 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001115/0.1445, allocations: 32.81 kB / 364.9 MB, free: 5.758 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.452e-05/0.1445, allocations: 7.922 kB / 364.9 MB, free: 5.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001005/0.1455, allocations: 1.312 MB / 366.2 MB, free: 4.305 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.1456, allocations: 3.938 kB / 366.2 MB, free: 4.301 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008351/0.1464, allocations: 298.3 kB / 366.5 MB, free: 3.984 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001143/0.1465, allocations: 104.8 kB / 366.6 MB, free: 3.863 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.109e-05/0.1466, allocations: 4 kB / 366.6 MB, free: 3.859 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002505/0.1468, allocations: 27.97 kB / 366.6 MB, free: 3.832 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.387e-05/0.1469, allocations: 23.97 kB / 366.6 MB, free: 3.809 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.526e-05/0.1469, allocations: 4 kB / 366.6 MB, free: 3.805 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002859/0.1472, allocations: 231.1 kB / 366.9 MB, free: 3.582 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1472, allocations: 0 / 366.9 MB, free: 3.582 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000389/0.1476, allocations: 67.84 kB / 366.9 MB, free: 3.516 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.0001558/0.1478, allocations: 107.2 kB / 367 MB, free: 3.398 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001126/0.1489, allocations: 442 kB / 367.5 MB, free: 2.941 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.149, allocations: 4.688 kB / 367.5 MB, free: 2.938 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005324/0.1495, allocations: 230.6 kB / 367.7 MB, free: 2.699 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004162/0.1499, allocations: 55.22 kB / 367.7 MB, free: 2.648 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001176/0.1511, allocations: 0.5927 MB / 368.3 MB, free: 2.023 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003456/0.1515, allocations: 0.756 MB / 369.1 MB, free: 1.242 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001482/0.1516, allocations: 30.97 kB / 369.1 MB, free: 1.215 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.248e-05/0.1517, allocations: 27.44 kB / 369.2 MB, free: 1.191 MB / 302.1 MB Notification: Performance of SimCode: time 7.32e-07/0.1517, allocations: 0 / 369.2 MB, free: 1.191 MB / 302.1 MB Notification: Performance of Templates: time 0.2016/0.3534, allocations: 2.937 MB / 372.1 MB, free: 23.79 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