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.001551/0.001551, allocations: 109.2 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001873/0.001873, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.349/1.349, allocations: 227.4 MB / 246.9 MB, free: 10.71 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001129/0.001129, allocations: 64.39 kB / 306.9 MB, free: 1.031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08432/0.08547, allocations: 50.52 MB / 357.4 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004009/0.08951, allocations: 2.956 MB / 360.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001314/0.09085, allocations: 0.7285 MB / 361.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002054/0.09108, allocations: 4 kB / 361.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001809/0.09131, allocations: 39.69 kB / 361.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000233/0.09155, allocations: 79.38 kB / 361.2 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002765/0.09184, allocations: 99.91 kB / 361.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003732/0.09222, allocations: 366.4 kB / 361.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002076/0.09244, allocations: 123.5 kB / 361.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001869/0.09263, allocations: 135.5 kB / 362 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002002/0.09284, allocations: 167.2 kB / 362.1 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.109e-05/0.09291, allocations: 20 kB / 362.1 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.991e-05/0.09298, allocations: 24 kB / 362.2 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.679e-05/0.09305, allocations: 63.7 kB / 362.2 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000169/0.09322, allocations: 163.1 kB / 362.4 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002713/0.0935, allocations: 295.5 kB / 362.7 MB, free: 9.238 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.09351, allocations: 0 / 362.7 MB, free: 9.238 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.72e-07/0.09352, allocations: 0 / 362.7 MB, free: 9.238 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.478e-06/0.09353, allocations: 0 / 362.7 MB, free: 9.238 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.00131/0.09485, allocations: 0.6886 MB / 363.4 MB, free: 8.492 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.09489, allocations: 12.03 kB / 363.4 MB, free: 8.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.068e-05/0.09498, allocations: 32.56 kB / 363.4 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003399/0.09533, allocations: 287.6 kB / 363.7 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.272e-05/0.09536, allocations: 16.94 kB / 363.7 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.948e-05/0.09541, allocations: 28.38 kB / 363.7 MB, free: 8.082 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006934/0.0961, allocations: 327.9 kB / 364 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.09613, allocations: 0 / 364 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.953e-05/0.09616, allocations: 8 kB / 364.1 MB, free: 7.746 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.09618, allocations: 11.94 kB / 364.1 MB, free: 7.734 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007876/0.09697, allocations: 274 kB / 364.3 MB, free: 7.465 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001772/0.09875, allocations: 1.142 MB / 365.5 MB, free: 6.234 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000782/0.09955, allocations: 206.5 kB / 365.7 MB, free: 6.023 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002979/0.09986, allocations: 80.8 kB / 365.8 MB, free: 5.941 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.675e-05/0.09989, allocations: 12.17 kB / 365.8 MB, free: 5.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004456/0.1003, allocations: 164.4 kB / 365.9 MB, free: 5.754 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.723e-06/0.1004, allocations: 0 / 365.9 MB, free: 5.754 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001262/0.1016, allocations: 415.1 kB / 366.3 MB, free: 5.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.15e-05/0.1017, allocations: 77.11 kB / 366.4 MB, free: 5.227 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003455/0.102, allocations: 332.5 kB / 366.7 MB, free: 4.898 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.131e-05/0.1021, allocations: 25.7 kB / 366.8 MB, free: 4.867 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001336/0.1022, allocations: 215.5 kB / 367 MB, free: 4.652 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.243e-05/0.1022, allocations: 31.55 kB / 367 MB, free: 4.621 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.046e-05/0.1023, allocations: 53.92 kB / 367.1 MB, free: 4.559 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.1025, allocations: 338.8 kB / 367.4 MB, free: 4.219 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003527/0.1028, allocations: 96.16 kB / 367.5 MB, free: 4.125 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004011/0.1033, allocations: 218.9 kB / 367.7 MB, free: 3.859 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000703/0.104, allocations: 328 kB / 368 MB, free: 3.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.104, allocations: 0 / 368 MB, free: 3.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009358/0.1049, allocations: 415.6 kB / 368.4 MB, free: 3.059 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.489e-05/0.105, allocations: 33.7 kB / 368.5 MB, free: 3.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.105, allocations: 4 kB / 368.5 MB, free: 3.016 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001659/0.1052, allocations: 32.78 kB / 368.5 MB, free: 2.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002745/0.1054, allocations: 71.97 kB / 368.6 MB, free: 2.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009794/0.1064, allocations: 1.3 MB / 369.9 MB, free: 1.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003569/0.1068, allocations: 59.8 kB / 369.9 MB, free: 1.422 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.468e-05/0.1068, allocations: 12.38 kB / 369.9 MB, free: 1.41 MB / 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.0001441/0.107, allocations: 158.5 kB / 370.1 MB, free: 1.246 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.172e-05/0.107, allocations: 23.72 kB / 370.1 MB, free: 1.223 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.38e-05/0.1071, allocations: 26.61 kB / 370.1 MB, free: 1.199 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.1071, allocations: 3.938 kB / 370.1 MB, free: 1.195 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.1071, allocations: 4 kB / 370.1 MB, free: 1.191 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.1071, allocations: 3.984 kB / 370.1 MB, free: 1.188 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004327/0.1076, allocations: 455 kB / 370.6 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.1076, allocations: 0 / 370.6 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001782/0.1078, allocations: 35.95 kB / 370.6 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001061/0.1079, allocations: 28.88 kB / 370.7 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.665e-05/0.1079, allocations: 4 kB / 370.7 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1439/0.2519, allocations: 1.294 MB / 372 MB, free: 19.92 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.2519, allocations: 2.031 kB / 372 MB, free: 19.92 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008413/0.2527, allocations: 272.1 kB / 372.2 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.296e-05/0.2529, allocations: 107.3 kB / 372.3 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.168e-05/0.2529, allocations: 2.891 kB / 372.3 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002512/0.2532, allocations: 27.73 kB / 372.4 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.312e-05/0.2533, allocations: 17.25 kB / 372.4 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.729e-05/0.2533, allocations: 7.266 kB / 372.4 MB, free: 19.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002874/0.2536, allocations: 229.4 kB / 372.6 MB, free: 19.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2536, allocations: 0 / 372.6 MB, free: 19.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003856/0.254, allocations: 71.12 kB / 372.7 MB, free: 19.68 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.000124/0.2541, allocations: 102.1 kB / 372.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009823/0.2551, allocations: 404.4 kB / 373.2 MB, free: 19.42 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2551, allocations: 4.469 kB / 373.2 MB, free: 19.42 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00047/0.2556, allocations: 212 kB / 373.4 MB, free: 19.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003613/0.256, allocations: 51.09 kB / 373.4 MB, free: 19.28 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00105/0.257, allocations: 0.5962 MB / 374 MB, free: 18.89 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001954/0.2572, allocations: 0.7545 MB / 374.8 MB, free: 18.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.348e-05/0.2573, allocations: 24.89 kB / 374.8 MB, free: 18.19 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2573, allocations: 0 / 374.8 MB, free: 18.19 MB / 302.1 MB Notification: Performance of Templates: time 0.008434/0.2658, allocations: 4.612 MB / 379.4 MB, free: 17.86 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