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.0008254/0.0008257, allocations: 97.91 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001113/0.001113, allocations: 201.5 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 227.7 MB / 247.5 MB, free: 11.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003225/0.0003226, allocations: 8 kB / 308.4 MB, free: 0.7656 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1102, allocations: 51.52 MB / 359.9 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003148/0.1134, allocations: 2.575 MB / 362.5 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001545/0.115, allocations: 0.7285 MB / 363.2 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002249/0.1152, allocations: 7.938 kB / 363.2 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001762/0.1154, allocations: 39.69 kB / 363.3 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002683/0.1157, allocations: 71.45 kB / 363.3 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003119/0.116, allocations: 95.86 kB / 363.4 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004443/0.1165, allocations: 378.5 kB / 363.8 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002397/0.1167, allocations: 111.5 kB / 363.9 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002173/0.117, allocations: 131.4 kB / 364 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002288/0.1172, allocations: 151.2 kB / 364.2 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.977e-05/0.1173, allocations: 16 kB / 364.2 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.138e-05/0.1173, allocations: 20 kB / 364.2 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.129e-05/0.1174, allocations: 63.67 kB / 364.3 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001738/0.1176, allocations: 172.8 kB / 364.5 MB, free: 8.676 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000265/0.1179, allocations: 287.4 kB / 364.7 MB, free: 8.395 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.1179, allocations: 0 / 364.7 MB, free: 8.395 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.1179, allocations: 4 kB / 364.7 MB, free: 8.391 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.875e-06/0.1179, allocations: 0 / 364.7 MB, free: 8.391 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.001296/0.1192, allocations: 0.6537 MB / 365.4 MB, free: 7.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.1192, allocations: 12.03 kB / 365.4 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.582e-05/0.1193, allocations: 32.56 kB / 365.4 MB, free: 7.637 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000339/0.1197, allocations: 287.6 kB / 365.7 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.385e-05/0.1197, allocations: 20.94 kB / 365.7 MB, free: 7.293 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.202e-05/0.1198, allocations: 28.38 kB / 365.8 MB, free: 7.266 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007157/0.1205, allocations: 335.9 kB / 366.1 MB, free: 6.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.1205, allocations: 0 / 366.1 MB, free: 6.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.171e-05/0.1206, allocations: 12 kB / 366.1 MB, free: 6.918 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.1206, allocations: 4 kB / 366.1 MB, free: 6.914 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000854/0.1214, allocations: 310 kB / 366.4 MB, free: 6.609 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001959/0.1234, allocations: 1.169 MB / 367.6 MB, free: 5.348 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008158/0.1242, allocations: 234.6 kB / 367.8 MB, free: 5.109 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003315/0.1246, allocations: 104.8 kB / 367.9 MB, free: 5.004 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.278e-05/0.1246, allocations: 0 / 367.9 MB, free: 5.004 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000464/0.1251, allocations: 181 kB / 368.1 MB, free: 4.809 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.1251, allocations: 0 / 368.1 MB, free: 4.809 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001347/0.1265, allocations: 463.1 kB / 368.5 MB, free: 4.328 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.17e-05/0.1265, allocations: 81.11 kB / 368.6 MB, free: 4.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000357/0.1269, allocations: 324.5 kB / 368.9 MB, free: 3.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.82e-05/0.1269, allocations: 29.7 kB / 369 MB, free: 3.875 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000137/0.1271, allocations: 215.5 kB / 369.2 MB, free: 3.66 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.17e-05/0.1271, allocations: 27.56 kB / 369.2 MB, free: 3.633 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.591e-05/0.1272, allocations: 29.7 kB / 369.2 MB, free: 3.598 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.1273, allocations: 338.8 kB / 369.6 MB, free: 3.258 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003751/0.1277, allocations: 116.1 kB / 369.7 MB, free: 3.141 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004206/0.1281, allocations: 226.9 kB / 369.9 MB, free: 2.867 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007522/0.1289, allocations: 360 kB / 370.3 MB, free: 2.457 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.1289, allocations: 4 kB / 370.3 MB, free: 2.453 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009958/0.1299, allocations: 435.3 kB / 370.7 MB, free: 2.016 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.303e-05/0.13, allocations: 37.84 kB / 370.7 MB, free: 1.973 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.13, allocations: 4 kB / 370.7 MB, free: 1.969 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001583/0.1301, allocations: 32.84 kB / 370.8 MB, free: 1.934 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000274/0.1304, allocations: 67.89 kB / 370.8 MB, free: 1.867 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009848/0.1314, allocations: 1.311 MB / 372.1 MB, free: 436 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000346/0.1318, allocations: 67.72 kB / 372.2 MB, free: 368 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.444e-05/0.1318, allocations: 15.98 kB / 372.2 MB, free: 352 kB / 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.0001636/0.132, allocations: 161.1 kB / 372.4 MB, free: 184 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.109e-05/0.132, allocations: 27.72 kB / 372.4 MB, free: 156 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.838e-05/0.1321, allocations: 30.61 kB / 372.4 MB, free: 128 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.1321, allocations: 0 / 372.4 MB, free: 128 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.1321, allocations: 0 / 372.4 MB, free: 128 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.1321, allocations: 4 kB / 372.4 MB, free: 124 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1555/0.2876, allocations: 446.8 kB / 372.9 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.2877, allocations: 0 / 372.9 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002397/0.2879, allocations: 41.61 kB / 372.9 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001445/0.2881, allocations: 29.42 kB / 372.9 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.161e-05/0.2881, allocations: 3.578 kB / 372.9 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008183/0.2889, allocations: 1.303 MB / 374.2 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.2889, allocations: 1.188 kB / 374.2 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008913/0.2898, allocations: 302 kB / 374.5 MB, free: 18.38 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.084e-05/0.2899, allocations: 105.7 kB / 374.6 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.916e-05/0.29, allocations: 8.391 kB / 374.7 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002677/0.2903, allocations: 32.88 kB / 374.7 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.027e-05/0.2904, allocations: 19.83 kB / 374.7 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.51e-05/0.2904, allocations: 8.047 kB / 374.7 MB, free: 18.28 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003379/0.2907, allocations: 231.2 kB / 374.9 MB, free: 18.2 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2907, allocations: 0 / 374.9 MB, free: 18.2 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004104/0.2912, allocations: 67.25 kB / 375 MB, free: 18.2 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.0001424/0.2913, allocations: 100 kB / 375.1 MB, free: 18.12 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001139/0.2925, allocations: 441.9 kB / 375.5 MB, free: 17.95 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.2925, allocations: 0.875 kB / 375.5 MB, free: 17.95 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005014/0.293, allocations: 228.5 kB / 375.8 MB, free: 17.84 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003815/0.2934, allocations: 50.12 kB / 375.8 MB, free: 17.84 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001157/0.2945, allocations: 0.6188 MB / 376.4 MB, free: 17.46 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002126/0.2948, allocations: 0.7534 MB / 377.2 MB, free: 16.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/0.2949, allocations: 31.23 kB / 377.2 MB, free: 16.76 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2949, allocations: 0 / 377.2 MB, free: 16.76 MB / 302.1 MB Notification: Performance of Templates: time 0.01026/0.3052, allocations: 4.577 MB / 381.8 MB, free: 16.46 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