Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001213/0.001213, allocations: 118.8 kB / 17.83 MB, free: 5.246 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001291/0.001291, allocations: 210 kB / 18.79 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.517/1.517, allocations: 230.4 MB / 250 MB, free: 9.012 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00204/0.00204, allocations: 71.83 kB / 367.4 MB, free: 6.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2857/0.2877, allocations: 53.31 MB / 420.7 MB, free: 8.32 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004745/0.2924, allocations: 2.928 MB / 423.6 MB, free: 5.383 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001465/0.2939, allocations: 0.7323 MB / 424.4 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001697/0.2941, allocations: 7.938 kB / 424.4 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000188/0.2943, allocations: 51.5 kB / 424.4 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002267/0.2945, allocations: 99.19 kB / 424.5 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003129/0.2948, allocations: 111.8 kB / 424.6 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000461/0.2953, allocations: 390.5 kB / 425 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002133/0.2955, allocations: 99.88 kB / 425.1 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001977/0.2957, allocations: 147.4 kB / 425.2 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002285/0.2959, allocations: 179.2 kB / 425.4 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.191e-05/0.296, allocations: 40 kB / 425.5 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.953e-05/0.296, allocations: 36 kB / 425.5 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.806e-05/0.2961, allocations: 75.69 kB / 425.6 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001801/0.2963, allocations: 175.2 kB / 425.7 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004811/0.2968, allocations: 394.2 kB / 426.1 MB, free: 2.871 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.2968, allocations: 0 / 426.1 MB, free: 2.871 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2968, allocations: 0 / 426.1 MB, free: 2.871 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.134e-06/0.2968, allocations: 0 / 426.1 MB, free: 2.871 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.001417/0.2982, allocations: 0.6923 MB / 426.8 MB, free: 2.125 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.2982, allocations: 8.031 kB / 426.8 MB, free: 2.117 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.702e-05/0.2983, allocations: 40.69 kB / 426.9 MB, free: 2.078 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004515/0.2988, allocations: 295.8 kB / 427.1 MB, free: 1.75 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.231e-05/0.2988, allocations: 16.94 kB / 427.2 MB, free: 1.73 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.277e-05/0.2988, allocations: 28.38 kB / 427.2 MB, free: 1.703 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007267/0.2996, allocations: 331.9 kB / 427.5 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.2996, allocations: 0 / 427.5 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.293e-05/0.2996, allocations: 11.98 kB / 427.5 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.2996, allocations: 8 kB / 427.5 MB, free: 1.348 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008338/0.3005, allocations: 274.1 kB / 427.8 MB, free: 1.082 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001917/0.3024, allocations: 1.131 MB / 428.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000813/0.3032, allocations: 206.5 kB / 429.1 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000306/0.3035, allocations: 84.8 kB / 429.2 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.495e-05/0.3035, allocations: 7.938 kB / 429.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004368/0.304, allocations: 157.1 kB / 429.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.272e-06/0.304, allocations: 4 kB / 429.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.001263/0.3052, allocations: 407.2 kB / 429.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.048e-05/0.3053, allocations: 85.05 kB / 429.9 MB, free: 14.85 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003869/0.3057, allocations: 324.5 kB / 430.2 MB, free: 14.53 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.692e-05/0.3057, allocations: 37.62 kB / 430.2 MB, free: 14.49 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001618/0.3059, allocations: 207.9 kB / 430.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.239e-05/0.3059, allocations: 43.7 kB / 430.5 MB, free: 14.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001054/0.306, allocations: 53.88 kB / 430.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.3062, allocations: 338.8 kB / 430.8 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000347/0.3065, allocations: 96.16 kB / 430.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004253/0.3069, allocations: 211 kB / 431.1 MB, free: 13.49 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007355/0.3077, allocations: 330.7 kB / 431.5 MB, free: 13.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.3077, allocations: 4 kB / 431.5 MB, free: 13.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000999/0.3087, allocations: 407.8 kB / 431.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.165e-05/0.3087, allocations: 33.7 kB / 431.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/0.3087, allocations: 4 kB / 431.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000191/0.3089, allocations: 28.84 kB / 431.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002772/0.3092, allocations: 68.03 kB / 432 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001276/0.3105, allocations: 1.41 MB / 433.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003449/0.3108, allocations: 55.75 kB / 433.5 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.135e-05/0.3109, allocations: 16 kB / 433.5 MB, free: 10.92 MB / 350.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.0001711/0.311, allocations: 149.8 kB / 433.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.936e-05/0.3111, allocations: 27.81 kB / 433.7 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.906e-05/0.3111, allocations: 30.61 kB / 433.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.157e-06/0.3111, allocations: 3.984 kB / 433.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.3111, allocations: 4.312 kB / 433.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.3111, allocations: 4 kB / 433.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005199/0.3117, allocations: 439.2 kB / 434.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.3117, allocations: 0 / 434.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001808/0.3119, allocations: 39.92 kB / 434.2 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000112/0.312, allocations: 32.72 kB / 434.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.737e-05/0.312, allocations: 4 kB / 434.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00121/0.3132, allocations: 1.394 MB / 435.6 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3132, allocations: 0 / 435.6 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007815/0.314, allocations: 278.5 kB / 435.9 MB, free: 8.301 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001105/0.3141, allocations: 108.9 kB / 436 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.942e-05/0.3141, allocations: 0 / 436 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002252/0.3143, allocations: 23.97 kB / 436 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.508e-05/0.3144, allocations: 23.91 kB / 436 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.677e-05/0.3144, allocations: 8 kB / 436 MB, free: 8.121 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002709/0.3147, allocations: 227.1 kB / 436.3 MB, free: 7.902 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3147, allocations: 4 kB / 436.3 MB, free: 7.898 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003742/0.3151, allocations: 67.89 kB / 436.3 MB, free: 7.832 MB / 350.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.0001723/0.3153, allocations: 107.2 kB / 436.4 MB, free: 7.715 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001068/0.3163, allocations: 405.9 kB / 436.8 MB, free: 7.293 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.145e-06/0.3163, allocations: 0 / 436.8 MB, free: 7.293 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005015/0.3168, allocations: 211.4 kB / 437 MB, free: 7.074 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003701/0.3172, allocations: 49.28 kB / 437.1 MB, free: 7.023 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001163/0.3184, allocations: 496.3 kB / 437.6 MB, free: 6.512 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004306/0.3188, allocations: 0.7558 MB / 438.3 MB, free: 5.727 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001307/0.3189, allocations: 30.97 kB / 438.3 MB, free: 5.695 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.261e-05/0.319, allocations: 23.44 kB / 438.4 MB, free: 5.672 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.319, allocations: 0 / 438.4 MB, free: 5.672 MB / 350.1 MB Notification: Performance of Templates: time 0.008481/0.3275, allocations: 3.317 MB / 441.7 MB, free: 2.391 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches