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.001595/0.001595, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001736/0.001736, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.411/1.411, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001077/0.001077, allocations: 55.81 kB / 301.3 MB, free: 5.855 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09107/0.09217, allocations: 49.45 MB / 350.7 MB, free: 4.395 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004593/0.09679, allocations: 2.874 MB / 353.6 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001477/0.09829, allocations: 0.709 MB / 354.3 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002967/0.09861, allocations: 8 kB / 354.3 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002175/0.09884, allocations: 51.44 kB / 354.4 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003419/0.09922, allocations: 91.19 kB / 354.5 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003946/0.09963, allocations: 107.9 kB / 354.6 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005325/0.1002, allocations: 390.5 kB / 355 MB, free: 148 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002857/0.1005, allocations: 135.9 kB / 355.1 MB, free: 8 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002878/0.1008, allocations: 155.3 kB / 355.2 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002583/0.101, allocations: 171.3 kB / 355.4 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.29e-05/0.1011, allocations: 36 kB / 355.4 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.483e-05/0.1012, allocations: 36 kB / 355.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.033e-05/0.1013, allocations: 79.69 kB / 355.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001828/0.1015, allocations: 171.2 kB / 355.7 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004018/0.1019, allocations: 383 kB / 356.1 MB, free: 15 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.335e-06/0.1019, allocations: 0 / 356.1 MB, free: 15 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.61e-07/0.1019, allocations: 0 / 356.1 MB, free: 15 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.109e-05/0.1019, allocations: 4 kB / 356.1 MB, free: 14.99 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.001333/0.1033, allocations: 0.6847 MB / 356.8 MB, free: 14.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.879e-05/0.1033, allocations: 12.03 kB / 356.8 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.246e-05/0.1034, allocations: 36.56 kB / 356.8 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003612/0.1038, allocations: 295.5 kB / 357.1 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.883e-05/0.1038, allocations: 16.92 kB / 357.1 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.144e-05/0.1038, allocations: 24.38 kB / 357.2 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008008/0.1046, allocations: 323.9 kB / 357.5 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.1047, allocations: 11.88 kB / 357.5 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.098e-05/0.1047, allocations: 8 kB / 357.5 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.1047, allocations: 8 kB / 357.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008773/0.1056, allocations: 270.1 kB / 357.8 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002001/0.1076, allocations: 1.142 MB / 358.9 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007852/0.1084, allocations: 210.5 kB / 359.1 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003139/0.1088, allocations: 88.78 kB / 359.2 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.668e-05/0.1088, allocations: 4 kB / 359.2 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005033/0.1093, allocations: 155.4 kB / 359.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.743e-06/0.1093, allocations: 0 / 359.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001269/0.1106, allocations: 411.1 kB / 359.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.73e-05/0.1107, allocations: 85.14 kB / 359.9 MB, free: 10.99 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003686/0.111, allocations: 324.5 kB / 360.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.821e-05/0.1111, allocations: 33.69 kB / 360.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/0.1112, allocations: 207.5 kB / 360.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.658e-05/0.1113, allocations: 39.53 kB / 360.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001088/0.1114, allocations: 49.94 kB / 360.5 MB, free: 10.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.1115, allocations: 338.8 kB / 360.8 MB, free: 9.977 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003616/0.1119, allocations: 100.2 kB / 360.9 MB, free: 9.879 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004147/0.1123, allocations: 211.4 kB / 361.1 MB, free: 9.621 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000735/0.1131, allocations: 335.9 kB / 361.5 MB, free: 9.234 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.1131, allocations: 0 / 361.5 MB, free: 9.234 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009995/0.1141, allocations: 407.6 kB / 361.9 MB, free: 8.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.245e-05/0.1141, allocations: 41.75 kB / 361.9 MB, free: 8.773 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.1142, allocations: 4 kB / 361.9 MB, free: 8.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001962/0.1144, allocations: 29.22 kB / 361.9 MB, free: 8.738 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000293/0.1147, allocations: 63.89 kB / 362 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001094/0.1158, allocations: 1.414 MB / 363.4 MB, free: 7.121 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003721/0.1162, allocations: 55.64 kB / 363.5 MB, free: 7.066 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.677e-05/0.1162, allocations: 15.94 kB / 363.5 MB, free: 7.051 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.0001506/0.1164, allocations: 149.7 kB / 363.6 MB, free: 6.895 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.198e-05/0.1164, allocations: 23.72 kB / 363.6 MB, free: 6.871 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.474e-05/0.1165, allocations: 30.67 kB / 363.7 MB, free: 6.844 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.1165, allocations: 0 / 363.7 MB, free: 6.844 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.1165, allocations: 7.938 kB / 363.7 MB, free: 6.836 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.1165, allocations: 0 / 363.7 MB, free: 6.836 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004525/0.117, allocations: 455.1 kB / 364.1 MB, free: 6.332 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.117, allocations: 0 / 364.1 MB, free: 6.332 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001842/0.1172, allocations: 31.95 kB / 364.2 MB, free: 6.301 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000105/0.1173, allocations: 32.81 kB / 364.2 MB, free: 6.266 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.354e-05/0.1173, allocations: 0 / 364.2 MB, free: 6.266 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001011/0.1183, allocations: 1.391 MB / 365.6 MB, free: 4.734 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.1183, allocations: 4.031 kB / 365.6 MB, free: 4.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007912/0.1191, allocations: 274.4 kB / 365.8 MB, free: 4.438 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.409e-05/0.1192, allocations: 108.7 kB / 366 MB, free: 4.312 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.457e-05/0.1193, allocations: 8 kB / 366 MB, free: 4.305 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002431/0.1195, allocations: 23.97 kB / 366 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.173e-05/0.1196, allocations: 23.86 kB / 366 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.724e-05/0.1196, allocations: 7.984 kB / 366 MB, free: 4.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002422/0.1199, allocations: 227.1 kB / 366.2 MB, free: 4.027 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1199, allocations: 4 kB / 366.2 MB, free: 4.023 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003572/0.1203, allocations: 67.94 kB / 366.3 MB, free: 3.957 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.0001254/0.1204, allocations: 107.7 kB / 366.4 MB, free: 3.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001012/0.1214, allocations: 410 kB / 366.8 MB, free: 3.414 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1214, allocations: 3.938 kB / 366.8 MB, free: 3.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004912/0.1219, allocations: 223.3 kB / 367 MB, free: 3.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000351/0.1223, allocations: 48.14 kB / 367.1 MB, free: 3.133 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001127/0.1234, allocations: 0.5059 MB / 367.6 MB, free: 2.594 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002884/0.1237, allocations: 0.7479 MB / 368.3 MB, free: 1.816 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.912e-05/0.1238, allocations: 31.44 kB / 368.4 MB, free: 1.789 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1238, allocations: 0 / 368.4 MB, free: 1.789 MB / 302.1 MB Notification: Performance of Templates: time 0.1643/0.2881, allocations: 4.607 MB / 373 MB, free: 24.32 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/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