Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001377/0.001377, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00123/0.00123, allocations: 211.8 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 247.4 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 59.64 kB / 307.6 MB, free: 0.625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09051/0.09184, allocations: 50.53 MB / 358.2 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004592/0.09648, allocations: 2.902 MB / 361.1 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001364/0.09788, allocations: 0.7362 MB / 361.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001479/0.09805, allocations: 7.938 kB / 361.8 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001668/0.09826, allocations: 51.5 kB / 361.9 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001887/0.09845, allocations: 99.19 kB / 361.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003058/0.09877, allocations: 107.8 kB / 362.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003998/0.09918, allocations: 398.5 kB / 362.4 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002506/0.09943, allocations: 135.9 kB / 362.6 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001794/0.09962, allocations: 151.4 kB / 362.7 MB, free: 9.496 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002125/0.09984, allocations: 171.2 kB / 362.9 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.924e-05/0.09991, allocations: 36 kB / 362.9 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.833e-05/0.09999, allocations: 36 kB / 363 MB, free: 9.258 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.373e-05/0.1001, allocations: 83.67 kB / 363 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001596/0.1002, allocations: 171.1 kB / 363.2 MB, free: 9.008 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000371/0.1006, allocations: 383 kB / 363.6 MB, free: 8.633 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1006, allocations: 3.938 kB / 363.6 MB, free: 8.629 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1006, allocations: 0 / 363.6 MB, free: 8.629 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.1006, allocations: 0 / 363.6 MB, free: 8.629 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.001361/0.102, allocations: 0.6925 MB / 364.3 MB, free: 7.883 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.1021, allocations: 8.031 kB / 364.3 MB, free: 7.875 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.887e-05/0.1021, allocations: 32.56 kB / 364.3 MB, free: 7.844 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003172/0.1025, allocations: 287.6 kB / 364.6 MB, free: 7.523 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.987e-05/0.1025, allocations: 20.94 kB / 364.6 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.348e-05/0.1025, allocations: 28.31 kB / 364.7 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006929/0.1032, allocations: 323.9 kB / 365 MB, free: 7.145 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.1033, allocations: 0 / 365 MB, free: 7.145 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.996e-05/0.1033, allocations: 12 kB / 365 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-06/0.1033, allocations: 8 kB / 365 MB, free: 7.125 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008162/0.1041, allocations: 274 kB / 365.3 MB, free: 6.859 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001768/0.1059, allocations: 1.138 MB / 366.4 MB, free: 5.633 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008255/0.1068, allocations: 210.5 kB / 366.6 MB, free: 5.418 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003245/0.1071, allocations: 88.8 kB / 366.7 MB, free: 5.328 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.05e-05/0.1071, allocations: 0 / 366.7 MB, free: 5.328 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005012/0.1076, allocations: 169 kB / 366.8 MB, free: 5.145 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.392e-06/0.1076, allocations: 4 kB / 366.9 MB, free: 5.141 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001341/0.109, allocations: 403.1 kB / 367.2 MB, free: 4.719 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.565e-05/0.1091, allocations: 85.05 kB / 367.3 MB, free: 4.617 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003673/0.1094, allocations: 324.5 kB / 367.6 MB, free: 4.293 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.77e-05/0.1095, allocations: 33.73 kB / 367.7 MB, free: 4.254 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001436/0.1096, allocations: 215.4 kB / 367.9 MB, free: 4.039 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.385e-05/0.1097, allocations: 35.53 kB / 367.9 MB, free: 4.004 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/0.1098, allocations: 49.94 kB / 368 MB, free: 3.945 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.1099, allocations: 342.8 kB / 368.3 MB, free: 3.602 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003738/0.1103, allocations: 96.16 kB / 368.4 MB, free: 3.508 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004238/0.1107, allocations: 208.6 kB / 368.6 MB, free: 3.254 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007402/0.1115, allocations: 339.7 kB / 368.9 MB, free: 2.867 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.1115, allocations: 4 kB / 368.9 MB, free: 2.863 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001007/0.1125, allocations: 399.5 kB / 369.3 MB, free: 2.457 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.075e-05/0.1126, allocations: 37.69 kB / 369.4 MB, free: 2.414 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.1126, allocations: 4 kB / 369.4 MB, free: 2.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000183/0.1128, allocations: 33.06 kB / 369.4 MB, free: 2.375 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002925/0.1131, allocations: 67.88 kB / 369.5 MB, free: 2.309 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001125/0.1142, allocations: 1.398 MB / 370.9 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003715/0.1146, allocations: 59.73 kB / 370.9 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.428e-05/0.1146, allocations: 15.94 kB / 370.9 MB, free: 0.6992 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.0001588/0.1148, allocations: 145.7 kB / 371.1 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.513e-05/0.1148, allocations: 31.62 kB / 371.1 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.936e-05/0.1149, allocations: 26.61 kB / 371.1 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.1149, allocations: 7.984 kB / 371.1 MB, free: 496 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.1149, allocations: 3.938 kB / 371.2 MB, free: 492 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.1149, allocations: 7.984 kB / 371.2 MB, free: 484 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1453/0.2602, allocations: 439.3 kB / 371.6 MB, free: 20.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.2602, allocations: 0 / 371.6 MB, free: 20.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002365/0.2605, allocations: 28.03 kB / 371.6 MB, free: 20.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001409/0.2606, allocations: 37.91 kB / 371.7 MB, free: 20.21 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.005e-05/0.2607, allocations: 5.641 kB / 371.7 MB, free: 20.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007553/0.2614, allocations: 1.393 MB / 373.1 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.2614, allocations: 4.484 kB / 373.1 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007694/0.2622, allocations: 272.9 kB / 373.3 MB, free: 18.81 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.183e-05/0.2623, allocations: 105.4 kB / 373.4 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.301e-05/0.2623, allocations: 5.844 kB / 373.4 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002365/0.2626, allocations: 27.8 kB / 373.5 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.781e-05/0.2627, allocations: 17.11 kB / 373.5 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.963e-05/0.2627, allocations: 8.062 kB / 373.5 MB, free: 18.71 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002542/0.263, allocations: 227.5 kB / 373.7 MB, free: 18.64 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.263, allocations: 0 / 373.7 MB, free: 18.64 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003739/0.2634, allocations: 71.31 kB / 373.8 MB, free: 18.64 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.0001156/0.2635, allocations: 100.5 kB / 373.9 MB, free: 18.55 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009755/0.2645, allocations: 412.4 kB / 374.3 MB, free: 18.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2645, allocations: 0.9375 kB / 374.3 MB, free: 18.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004566/0.2649, allocations: 218.3 kB / 374.5 MB, free: 18.28 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003294/0.2653, allocations: 49.44 kB / 374.5 MB, free: 18.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009879/0.2663, allocations: 0.5083 MB / 375 MB, free: 18.01 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001667/0.2665, allocations: 0.7536 MB / 375.8 MB, free: 17.31 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.126e-05/0.2666, allocations: 36.69 kB / 375.8 MB, free: 17.3 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2666, allocations: 1.25 kB / 375.8 MB, free: 17.3 MB / 302.1 MB Notification: Performance of Templates: time 0.006956/0.2735, allocations: 4.622 MB / 380.5 MB, free: 16.99 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches