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.001176/0.001176, allocations: 115 kB / 16.63 MB, free: 6.812 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.001349/0.001349, allocations: 186 kB / 17.55 MB, free: 5.934 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.336/1.336, allocations: 222.9 MB / 241.2 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009245/0.0009245, allocations: 51.06 kB / 300.1 MB, free: 6.195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09495/0.09589, allocations: 49.45 MB / 349.6 MB, free: 4.742 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.00385/0.09978, allocations: 2.924 MB / 352.5 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001317/0.1011, allocations: 0.6973 MB / 353.2 MB, free: 1.094 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001637/0.1013, allocations: 11.94 kB / 353.2 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001684/0.1015, allocations: 35.69 kB / 353.3 MB, free: 1.047 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001888/0.1017, allocations: 75.45 kB / 353.3 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002833/0.102, allocations: 91.84 kB / 353.4 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003849/0.1024, allocations: 398.5 kB / 353.8 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00022/0.1026, allocations: 135.9 kB / 353.9 MB, free: 364 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001562/0.1028, allocations: 151.4 kB / 354.1 MB, free: 212 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001782/0.103, allocations: 175.2 kB / 354.3 MB, free: 36 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.094e-05/0.1031, allocations: 36 kB / 354.3 MB, free: 0 / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.396e-05/0.1031, allocations: 36.05 kB / 354.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.391e-05/0.1032, allocations: 79.64 kB / 354.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001464/0.1034, allocations: 171.2 kB / 354.6 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003338/0.1037, allocations: 383 kB / 354.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1037, allocations: 0 / 354.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1037, allocations: 0 / 354.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.826e-06/0.1037, allocations: 4 kB / 354.9 MB, free: 15.34 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.001255/0.105, allocations: 0.6808 MB / 355.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.105, allocations: 12.03 kB / 355.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.659e-05/0.1051, allocations: 36.5 kB / 355.7 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003307/0.1055, allocations: 303.5 kB / 356 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.913e-05/0.1055, allocations: 16.94 kB / 356 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.265e-05/0.1055, allocations: 28.38 kB / 356 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006745/0.1062, allocations: 319.9 kB / 356.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/0.1062, allocations: 0 / 356.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.719e-05/0.1063, allocations: 8 kB / 356.3 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.836e-06/0.1063, allocations: 8 kB / 356.3 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007742/0.1071, allocations: 274 kB / 356.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001737/0.1088, allocations: 1.142 MB / 357.8 MB, free: 12.35 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007596/0.1096, allocations: 210.5 kB / 358 MB, free: 12.13 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002947/0.1099, allocations: 84.78 kB / 358 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.235e-05/0.1099, allocations: 4 kB / 358 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004193/0.1103, allocations: 157.1 kB / 358.2 MB, free: 11.87 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.1104, allocations: 0 / 358.2 MB, free: 11.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001214/0.1116, allocations: 418.9 kB / 358.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.038e-05/0.1116, allocations: 81.14 kB / 358.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003219/0.112, allocations: 332.5 kB / 359 MB, free: 11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.377e-05/0.112, allocations: 25.7 kB / 359 MB, free: 10.97 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000127/0.1121, allocations: 207.5 kB / 359.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.5e-05/0.1122, allocations: 35.55 kB / 359.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.971e-05/0.1123, allocations: 53.92 kB / 359.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.1124, allocations: 334.8 kB / 359.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003433/0.1127, allocations: 100.2 kB / 359.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003846/0.1131, allocations: 207 kB / 360 MB, free: 9.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007021/0.1138, allocations: 336.3 kB / 360.3 MB, free: 9.594 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1138, allocations: 0 / 360.3 MB, free: 9.594 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00093/0.1148, allocations: 411.3 kB / 360.7 MB, free: 9.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.05e-05/0.1148, allocations: 36.52 kB / 360.7 MB, free: 9.141 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.1148, allocations: 11.97 kB / 360.7 MB, free: 9.129 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001642/0.115, allocations: 28.84 kB / 360.8 MB, free: 9.098 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002876/0.1153, allocations: 67.88 kB / 360.8 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00103/0.1164, allocations: 1.414 MB / 362.2 MB, free: 7.477 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003556/0.1167, allocations: 51.66 kB / 362.3 MB, free: 7.426 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.725e-05/0.1168, allocations: 16 kB / 362.3 MB, free: 7.41 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.000144/0.1169, allocations: 145.7 kB / 362.5 MB, free: 7.258 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.537e-05/0.117, allocations: 23.72 kB / 362.5 MB, free: 7.234 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.05e-05/0.117, allocations: 34.67 kB / 362.5 MB, free: 7.203 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.117, allocations: 0 / 362.5 MB, free: 7.203 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.117, allocations: 7.938 kB / 362.5 MB, free: 7.195 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.117, allocations: 3.984 kB / 362.5 MB, free: 7.191 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004375/0.1175, allocations: 447.2 kB / 363 MB, free: 6.695 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1175, allocations: 0 / 363 MB, free: 6.695 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001761/0.1177, allocations: 35.89 kB / 363 MB, free: 6.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000102/0.1178, allocations: 32.81 kB / 363 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.447e-05/0.1178, allocations: 0 / 363 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009644/0.1188, allocations: 1.394 MB / 364.4 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.1188, allocations: 4.031 kB / 364.4 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007293/0.1195, allocations: 274.4 kB / 364.7 MB, free: 4.793 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.295e-05/0.1196, allocations: 108.7 kB / 364.8 MB, free: 4.668 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.078e-05/0.1197, allocations: 4 kB / 364.8 MB, free: 4.664 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002435/0.1199, allocations: 27.97 kB / 364.8 MB, free: 4.637 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.845e-05/0.12, allocations: 23.91 kB / 364.8 MB, free: 4.613 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.119e-05/0.12, allocations: 0 / 364.8 MB, free: 4.613 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002304/0.1202, allocations: 227.1 kB / 365.1 MB, free: 4.391 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1203, allocations: 4 kB / 365.1 MB, free: 4.387 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003622/0.1206, allocations: 71.94 kB / 365.1 MB, free: 4.316 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.0001246/0.1208, allocations: 103.1 kB / 365.2 MB, free: 4.203 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009864/0.1218, allocations: 426 kB / 365.7 MB, free: 3.762 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1218, allocations: 0 / 365.7 MB, free: 3.762 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004643/0.1222, allocations: 219.3 kB / 365.9 MB, free: 3.535 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003383/0.1226, allocations: 47.64 kB / 365.9 MB, free: 3.488 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009782/0.1236, allocations: 0.5596 MB / 366.5 MB, free: 2.898 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002987/0.1239, allocations: 0.7557 MB / 367.2 MB, free: 2.117 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000136/0.124, allocations: 34.97 kB / 367.3 MB, free: 2.086 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.363e-05/0.1241, allocations: 19.44 kB / 367.3 MB, free: 2.07 MB / 302.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1241, allocations: 0 / 367.3 MB, free: 2.07 MB / 302.1 MB Notification: Performance of Templates: time 0.1458/0.2699, allocations: 3.118 MB / 370.4 MB, free: 24.46 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