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.001275/0.001276, allocations: 121.6 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001201/0.001201, allocations: 200.7 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.475/1.475, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 59.91 kB / 358.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2887/0.2899, allocations: 50.54 MB / 409.3 MB, free: 1.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004497/0.2944, allocations: 2.908 MB / 412.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002047/0.2965, allocations: 0.7284 MB / 412.9 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005329/0.2971, allocations: 11.94 kB / 412.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004111/0.2976, allocations: 47.52 kB / 413 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005735/0.2981, allocations: 99.17 kB / 413.1 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005739/0.2987, allocations: 111.8 kB / 413.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007751/0.2995, allocations: 386.5 kB / 413.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003585/0.2999, allocations: 143.8 kB / 413.7 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002993/0.3002, allocations: 155.4 kB / 413.8 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002896/0.3005, allocations: 175.2 kB / 414 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.605e-05/0.3006, allocations: 36 kB / 414.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.878e-05/0.3007, allocations: 36 kB / 414.1 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.832e-05/0.3008, allocations: 75.75 kB / 414.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001979/0.301, allocations: 171.2 kB / 414.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004338/0.3014, allocations: 383.9 kB / 414.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.335e-06/0.3015, allocations: 11.92 kB / 414.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.3015, allocations: 3.938 kB / 414.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.383e-05/0.3015, allocations: 0 / 414.7 MB, free: 12.29 MB / 334.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.001527/0.303, allocations: 0.6848 MB / 415.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.3031, allocations: 12.03 kB / 415.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.756e-05/0.3032, allocations: 32.56 kB / 415.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004633/0.3036, allocations: 295.6 kB / 415.7 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.566e-05/0.3037, allocations: 20.92 kB / 415.8 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.813e-05/0.3037, allocations: 28.31 kB / 415.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006826/0.3044, allocations: 331.9 kB / 416.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.3044, allocations: 0 / 416.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.825e-05/0.3045, allocations: 8 kB / 416.1 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.3045, allocations: 8 kB / 416.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007389/0.3052, allocations: 270.1 kB / 416.4 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001834/0.3071, allocations: 1.134 MB / 417.5 MB, free: 9.285 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007699/0.3079, allocations: 206.5 kB / 417.7 MB, free: 9.074 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002921/0.3082, allocations: 88.78 kB / 417.8 MB, free: 8.984 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.911e-05/0.3082, allocations: 4 kB / 417.8 MB, free: 8.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004126/0.3086, allocations: 157.1 kB / 418 MB, free: 8.809 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 3.607e-06/0.3086, allocations: 3.984 kB / 418 MB, free: 8.805 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.001237/0.3099, allocations: 415 kB / 418.4 MB, free: 8.371 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.214e-05/0.3099, allocations: 77.11 kB / 418.5 MB, free: 8.277 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003537/0.3103, allocations: 328.4 kB / 418.8 MB, free: 7.957 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.964e-05/0.3103, allocations: 29.7 kB / 418.8 MB, free: 7.922 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001292/0.3105, allocations: 215.5 kB / 419 MB, free: 7.707 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.844e-05/0.3105, allocations: 31.56 kB / 419 MB, free: 7.676 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.104e-05/0.3106, allocations: 53.83 kB / 419.1 MB, free: 7.613 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.3107, allocations: 338.8 kB / 419.4 MB, free: 7.273 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003465/0.3111, allocations: 104.1 kB / 419.5 MB, free: 7.172 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003748/0.3115, allocations: 213.8 kB / 419.7 MB, free: 6.914 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006698/0.3122, allocations: 331.4 kB / 420.1 MB, free: 6.535 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.3122, allocations: 4 kB / 420.1 MB, free: 6.531 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008912/0.3131, allocations: 399.7 kB / 420.5 MB, free: 6.125 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.603e-05/0.3131, allocations: 34.08 kB / 420.5 MB, free: 6.086 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.3131, allocations: 4 kB / 420.5 MB, free: 6.082 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001862/0.3133, allocations: 36.98 kB / 420.5 MB, free: 6.043 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002642/0.3136, allocations: 63.89 kB / 420.6 MB, free: 5.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001087/0.3147, allocations: 1.41 MB / 422 MB, free: 4.422 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003189/0.315, allocations: 55.56 kB / 422.1 MB, free: 4.367 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.425e-05/0.3151, allocations: 12 kB / 422.1 MB, free: 4.355 MB / 334.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.0001512/0.3152, allocations: 153.8 kB / 422.2 MB, free: 4.195 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.078e-05/0.3153, allocations: 23.72 kB / 422.2 MB, free: 4.172 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.992e-05/0.3153, allocations: 34.55 kB / 422.3 MB, free: 4.137 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.3153, allocations: 0 / 422.3 MB, free: 4.137 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.3153, allocations: 3.938 kB / 422.3 MB, free: 4.133 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.3154, allocations: 4 kB / 422.3 MB, free: 4.129 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004462/0.3158, allocations: 451.1 kB / 422.7 MB, free: 3.629 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.3158, allocations: 8.031 kB / 422.7 MB, free: 3.621 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001642/0.316, allocations: 27.97 kB / 422.8 MB, free: 3.594 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001004/0.3161, allocations: 32.77 kB / 422.8 MB, free: 3.559 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.804e-05/0.3161, allocations: 4 kB / 422.8 MB, free: 3.555 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009576/0.3171, allocations: 1.394 MB / 424.2 MB, free: 2.023 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3171, allocations: 8.094 kB / 424.2 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007115/0.3178, allocations: 274.3 kB / 424.5 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.133e-05/0.3179, allocations: 100.8 kB / 424.6 MB, free: 1.605 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.644e-05/0.318, allocations: 7.984 kB / 424.6 MB, free: 1.598 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002116/0.3182, allocations: 27.97 kB / 424.6 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.413e-05/0.3183, allocations: 15.92 kB / 424.6 MB, free: 1.555 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.314e-05/0.3183, allocations: 4 kB / 424.6 MB, free: 1.551 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002219/0.3185, allocations: 235.1 kB / 424.8 MB, free: 1.324 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3185, allocations: 0 / 424.8 MB, free: 1.324 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003367/0.3189, allocations: 71.83 kB / 424.9 MB, free: 1.254 MB / 334.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.000125/0.319, allocations: 99.25 kB / 425 MB, free: 1.145 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009333/0.3199, allocations: 410.6 kB / 425.4 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.3199, allocations: 4 kB / 425.4 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004424/0.3204, allocations: 214.7 kB / 425.6 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003299/0.3207, allocations: 45.06 kB / 425.7 MB, free: 456 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009625/0.3217, allocations: 485 kB / 426.1 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002882/0.322, allocations: 0.7558 MB / 426.9 MB, free: 15.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001109/0.3221, allocations: 30.97 kB / 426.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.514e-05/0.3222, allocations: 23.42 kB / 427 MB, free: 15.11 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3222, allocations: 4 kB / 427 MB, free: 15.1 MB / 350.1 MB Notification: Performance of Templates: time 0.006609/0.3288, allocations: 3.283 MB / 430.2 MB, free: 11.86 MB / 350.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/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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches