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.001306/0.001306, allocations: 115.5 kB / 18.45 MB, free: 4.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001296/0.001296, allocations: 210.8 kB / 19.41 MB, free: 3.676 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.449/1.449, allocations: 227.7 MB / 247.9 MB, free: 10.18 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.001883/0.001883, allocations: 67.89 kB / 359.7 MB, free: 12.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2279/0.2298, allocations: 50.54 MB / 410.2 MB, free: 1.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004208/0.234, allocations: 2.909 MB / 413.2 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001388/0.2354, allocations: 0.7323 MB / 413.9 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001372/0.2355, allocations: 4 kB / 413.9 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001685/0.2357, allocations: 55.44 kB / 413.9 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002024/0.2359, allocations: 99.19 kB / 414 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002831/0.2362, allocations: 107.9 kB / 414.1 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000447/0.2366, allocations: 390.5 kB / 414.5 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002005/0.2368, allocations: 95.89 kB / 414.6 MB, free: 13 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001925/0.237, allocations: 159.3 kB / 414.8 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000219/0.2372, allocations: 171.3 kB / 414.9 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.945e-05/0.2373, allocations: 40 kB / 415 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.411e-05/0.2373, allocations: 36 kB / 415 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.558e-05/0.2374, allocations: 79.69 kB / 415.1 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001808/0.2376, allocations: 175.1 kB / 415.3 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004616/0.2381, allocations: 390.3 kB / 415.6 MB, free: 11.97 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.2381, allocations: 0 / 415.6 MB, free: 11.97 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2381, allocations: 4 kB / 415.7 MB, free: 11.97 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.2381, allocations: 0 / 415.7 MB, free: 11.97 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.001405/0.2395, allocations: 0.6962 MB / 416.3 MB, free: 11.22 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.2395, allocations: 8.031 kB / 416.4 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.73e-05/0.2396, allocations: 36.7 kB / 416.4 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004434/0.24, allocations: 299.7 kB / 416.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.055e-05/0.2401, allocations: 16.94 kB / 416.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.667e-05/0.2401, allocations: 24.38 kB / 416.7 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007239/0.2409, allocations: 323.9 kB / 417 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.2409, allocations: 4 kB / 417 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.002e-05/0.2409, allocations: 12 kB / 417.1 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/0.2409, allocations: 8 kB / 417.1 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008155/0.2417, allocations: 270 kB / 417.3 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001898/0.2436, allocations: 1.138 MB / 418.5 MB, free: 8.957 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008428/0.2445, allocations: 214.4 kB / 418.7 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003146/0.2448, allocations: 80.8 kB / 418.8 MB, free: 8.656 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.144e-05/0.2448, allocations: 4 kB / 418.8 MB, free: 8.652 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004513/0.2453, allocations: 157.2 kB / 418.9 MB, free: 8.48 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.623e-06/0.2453, allocations: 3.938 kB / 418.9 MB, free: 8.477 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.001323/0.2466, allocations: 411.2 kB / 419.3 MB, free: 8.047 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.178e-05/0.2466, allocations: 81.11 kB / 419.4 MB, free: 7.949 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003781/0.247, allocations: 324.5 kB / 419.7 MB, free: 7.633 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.107e-05/0.247, allocations: 33.64 kB / 419.7 MB, free: 7.594 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001568/0.2472, allocations: 211.9 kB / 420 MB, free: 7.383 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.806e-05/0.2472, allocations: 31.8 kB / 420 MB, free: 7.352 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.566e-05/0.2473, allocations: 53.89 kB / 420 MB, free: 7.289 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.2475, allocations: 346.8 kB / 420.4 MB, free: 6.941 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003542/0.2478, allocations: 96.09 kB / 420.5 MB, free: 6.848 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004507/0.2483, allocations: 211 kB / 420.7 MB, free: 6.59 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007822/0.2491, allocations: 334.7 kB / 421 MB, free: 6.207 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.2491, allocations: 0 / 421 MB, free: 6.207 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001038/0.2501, allocations: 407.8 kB / 421.4 MB, free: 5.793 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.885e-05/0.2502, allocations: 33.69 kB / 421.4 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.2502, allocations: 4 kB / 421.4 MB, free: 5.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00017/0.2503, allocations: 32.84 kB / 421.5 MB, free: 5.715 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002842/0.2506, allocations: 64.03 kB / 421.5 MB, free: 5.652 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001267/0.2519, allocations: 1.414 MB / 422.9 MB, free: 4.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003609/0.2523, allocations: 55.73 kB / 423 MB, free: 4.035 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.584e-05/0.2523, allocations: 12 kB / 423 MB, free: 4.023 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.0001631/0.2524, allocations: 145.7 kB / 423.2 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.374e-05/0.2525, allocations: 28.25 kB / 423.2 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.659e-05/0.2526, allocations: 34.61 kB / 423.2 MB, free: 3.809 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.858e-06/0.2526, allocations: 4 kB / 423.2 MB, free: 3.805 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.2526, allocations: 3.938 kB / 423.2 MB, free: 3.801 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.2526, allocations: 7.922 kB / 423.2 MB, free: 3.793 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004885/0.2531, allocations: 447.2 kB / 423.7 MB, free: 3.297 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.2531, allocations: 3.984 kB / 423.7 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001775/0.2532, allocations: 31.98 kB / 423.7 MB, free: 3.262 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001071/0.2533, allocations: 32.78 kB / 423.7 MB, free: 3.227 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.346e-05/0.2534, allocations: 0 / 423.7 MB, free: 3.227 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001131/0.2545, allocations: 1.398 MB / 425.1 MB, free: 1.691 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.2545, allocations: 0 / 425.1 MB, free: 1.691 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007639/0.2553, allocations: 274.5 kB / 425.4 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.155e-05/0.2553, allocations: 108.9 kB / 425.5 MB, free: 1.273 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.414e-05/0.2554, allocations: 7.938 kB / 425.5 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000225/0.2556, allocations: 23.97 kB / 425.5 MB, free: 1.242 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.228e-05/0.2557, allocations: 27.91 kB / 425.6 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.2557, allocations: 0 / 425.6 MB, free: 1.215 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002489/0.2559, allocations: 231.1 kB / 425.8 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2559, allocations: 0 / 425.8 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003417/0.2563, allocations: 67.89 kB / 425.9 MB, free: 0.9258 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.0001408/0.2564, allocations: 104.6 kB / 426 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001074/0.2575, allocations: 406 kB / 426.4 MB, free: 400 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.2575, allocations: 0 / 426.4 MB, free: 400 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005095/0.258, allocations: 211.3 kB / 426.6 MB, free: 176 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003579/0.2584, allocations: 57.27 kB / 426.6 MB, free: 116 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001132/0.2595, allocations: 498.8 kB / 427.1 MB, free: 15.6 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004626/0.26, allocations: 0.7518 MB / 427.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001413/0.2601, allocations: 38.95 kB / 427.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.481e-05/0.2602, allocations: 19.44 kB / 427.9 MB, free: 14.76 MB / 350.1 MB Notification: Performance of SimCode: time 7.81e-07/0.2602, allocations: 0 / 427.9 MB, free: 14.76 MB / 350.1 MB Notification: Performance of Templates: time 0.008231/0.2684, allocations: 3.296 MB / 431.2 MB, free: 11.5 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins1/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