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.001777/0.001777, allocations: 117.6 kB / 17.78 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002726/0.002726, allocations: 199.9 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001136/0.001136, allocations: 59.91 kB / 358.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3009/0.3021, allocations: 50.54 MB / 409.3 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004227/0.3064, allocations: 2.901 MB / 412.2 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001419/0.3078, allocations: 0.7323 MB / 412.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001913/0.3081, allocations: 7.938 kB / 412.9 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002595/0.3084, allocations: 51.5 kB / 413 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002629/0.3086, allocations: 95.19 kB / 413.1 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004291/0.3091, allocations: 111.8 kB / 413.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005465/0.3096, allocations: 390.5 kB / 413.6 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000314/0.31, allocations: 135.9 kB / 413.7 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002369/0.3102, allocations: 143.4 kB / 413.8 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002701/0.3105, allocations: 179.2 kB / 414 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.149e-05/0.3106, allocations: 40 kB / 414 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.683e-05/0.3107, allocations: 40 kB / 414.1 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.545e-05/0.3108, allocations: 79.69 kB / 414.2 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002062/0.311, allocations: 175.1 kB / 414.3 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005872/0.3116, allocations: 390.3 kB / 414.7 MB, free: 12.1 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.203e-06/0.3116, allocations: 3.938 kB / 414.7 MB, free: 12.1 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3116, allocations: 4 kB / 414.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.3116, allocations: 0 / 414.7 MB, free: 12.09 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.001559/0.3132, allocations: 0.6884 MB / 415.4 MB, free: 11.35 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.3132, allocations: 8.031 kB / 415.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.408e-05/0.3133, allocations: 40.69 kB / 415.5 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004497/0.3138, allocations: 295.8 kB / 415.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.496e-05/0.3138, allocations: 16.94 kB / 415.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.009e-05/0.3139, allocations: 24.38 kB / 415.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006887/0.3146, allocations: 323.9 kB / 416.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.3146, allocations: 8 kB / 416.1 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.047e-05/0.3146, allocations: 11.98 kB / 416.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.3146, allocations: 8 kB / 416.1 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007536/0.3154, allocations: 270.1 kB / 416.4 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001843/0.3173, allocations: 1.138 MB / 417.5 MB, free: 9.086 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000793/0.3181, allocations: 214.5 kB / 417.7 MB, free: 8.867 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000299/0.3184, allocations: 88.8 kB / 417.8 MB, free: 8.777 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.452e-05/0.3184, allocations: 0 / 417.8 MB, free: 8.777 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004203/0.3189, allocations: 161.1 kB / 418 MB, free: 8.602 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.323e-06/0.3189, allocations: 0 / 418 MB, free: 8.602 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.001254/0.3201, allocations: 411.2 kB / 418.4 MB, free: 8.172 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.166e-05/0.3202, allocations: 85.05 kB / 418.5 MB, free: 8.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003819/0.3206, allocations: 320.9 kB / 418.8 MB, free: 7.758 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.211e-05/0.3206, allocations: 41.62 kB / 418.8 MB, free: 7.711 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001472/0.3208, allocations: 207.9 kB / 419 MB, free: 7.504 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.7e-05/0.3208, allocations: 31.8 kB / 419.1 MB, free: 7.473 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001027/0.3209, allocations: 65.81 kB / 419.1 MB, free: 7.398 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.3211, allocations: 334.8 kB / 419.5 MB, free: 7.062 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000355/0.3215, allocations: 100.2 kB / 419.6 MB, free: 6.965 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004184/0.3219, allocations: 207 kB / 419.8 MB, free: 6.711 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007306/0.3226, allocations: 335.5 kB / 420.1 MB, free: 6.328 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.3226, allocations: 4 kB / 420.1 MB, free: 6.324 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001013/0.3237, allocations: 403.8 kB / 420.5 MB, free: 5.914 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.809e-05/0.3237, allocations: 37.7 kB / 420.5 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.3237, allocations: 4 kB / 420.5 MB, free: 5.867 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002145/0.324, allocations: 28.84 kB / 420.5 MB, free: 5.836 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002852/0.3243, allocations: 68.03 kB / 420.6 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001197/0.3255, allocations: 1.41 MB / 422 MB, free: 4.211 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003834/0.3259, allocations: 51.75 kB / 422.1 MB, free: 4.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.131e-05/0.3259, allocations: 12 kB / 422.1 MB, free: 4.148 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.0002095/0.3261, allocations: 153.8 kB / 422.2 MB, free: 3.988 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.017e-05/0.3262, allocations: 31.75 kB / 422.3 MB, free: 3.957 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.257e-05/0.3262, allocations: 26.61 kB / 422.3 MB, free: 3.93 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.3263, allocations: 3.984 kB / 422.3 MB, free: 3.926 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.3263, allocations: 3.938 kB / 422.3 MB, free: 3.922 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.3263, allocations: 4 kB / 422.3 MB, free: 3.918 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004495/0.3267, allocations: 447.2 kB / 422.7 MB, free: 3.422 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.3268, allocations: 8 kB / 422.7 MB, free: 3.414 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001664/0.3269, allocations: 31.98 kB / 422.8 MB, free: 3.383 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001096/0.327, allocations: 28.78 kB / 422.8 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.513e-05/0.3271, allocations: 7.938 kB / 422.8 MB, free: 3.344 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009749/0.328, allocations: 1.394 MB / 424.2 MB, free: 1.812 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.3281, allocations: 0 / 424.2 MB, free: 1.812 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007579/0.3288, allocations: 274.5 kB / 424.5 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.643e-05/0.3289, allocations: 108.9 kB / 424.6 MB, free: 1.395 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.821e-05/0.329, allocations: 8 kB / 424.6 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002145/0.3292, allocations: 19.97 kB / 424.6 MB, free: 1.367 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.679e-05/0.3293, allocations: 27.89 kB / 424.6 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.451e-05/0.3293, allocations: 4 kB / 424.6 MB, free: 1.336 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002436/0.3296, allocations: 231.1 kB / 424.9 MB, free: 1.113 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3296, allocations: 4.094 kB / 424.9 MB, free: 1.109 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003768/0.33, allocations: 71.83 kB / 424.9 MB, free: 1.039 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.0001786/0.3301, allocations: 106.8 kB / 425 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00101/0.3312, allocations: 410 kB / 425.4 MB, free: 0.5 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.3312, allocations: 4 kB / 425.5 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004503/0.3316, allocations: 215.4 kB / 425.7 MB, free: 280 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003482/0.332, allocations: 37.06 kB / 425.7 MB, free: 240 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001159/0.3332, allocations: 492.3 kB / 426.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003527/0.3335, allocations: 0.7558 MB / 426.9 MB, free: 14.94 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001568/0.3337, allocations: 30.97 kB / 427 MB, free: 14.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.118e-05/0.3338, allocations: 23.44 kB / 427 MB, free: 14.89 MB / 350.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3338, allocations: 0 / 427 MB, free: 14.89 MB / 350.1 MB Notification: Performance of Templates: time 0.00867/0.3425, allocations: 3.297 MB / 430.3 MB, free: 11.63 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