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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001372/0.001371, allocations: 200.8 kB / 18.11 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 226.5 MB / 245.4 MB, free: 8.176 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008626/0.0008625, allocations: 101.4 kB / 297.5 MB, free: 6.871 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000293/0.0002931, allocations: 8 kB / 358.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2855/0.2858, allocations: 51.29 MB / 409.4 MB, free: 27.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1664/0.4523, allocations: 82.49 MB / 491.9 MB, free: 9.027 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003182/0.4526, allocations: 87.94 kB / 492 MB, free: 8.941 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01877/0.4714, allocations: 6.315 MB / 498.3 MB, free: 2.598 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4715, allocations: 0 / 498.3 MB, free: 2.598 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.774e-05/0.4715, allocations: 7.938 kB / 498.3 MB, free: 2.59 MB / 362.7 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.001337/0.4728, allocations: 0.6426 MB / 498.9 MB, free: 1.891 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.215e-05/0.4729, allocations: 12.03 kB / 498.9 MB, free: 1.879 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001255/0.473, allocations: 32.56 kB / 499 MB, free: 1.848 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004957/0.4735, allocations: 292.1 kB / 499.3 MB, free: 1.523 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.121e-05/0.4736, allocations: 20.94 kB / 499.3 MB, free: 1.504 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.568e-05/0.4736, allocations: 24.38 kB / 499.3 MB, free: 1.48 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000764/0.4744, allocations: 336.1 kB / 499.6 MB, free: 1.145 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.4745, allocations: 192 / 499.6 MB, free: 1.145 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.495e-05/0.4745, allocations: 19.92 kB / 499.6 MB, free: 1.125 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.936e-06/0.4745, allocations: 4 kB / 499.7 MB, free: 1.121 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008352/0.4753, allocations: 302.1 kB / 499.9 MB, free: 0.8242 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002305/0.4777, allocations: 1.219 MB / 0.4894 GB, free: 15.51 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008673/0.4786, allocations: 238.5 kB / 0.4896 GB, free: 15.27 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003214/0.4789, allocations: 108.8 kB / 0.4898 GB, free: 15.16 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.877e-05/0.4789, allocations: 0 / 0.4898 GB, free: 15.16 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004913/0.4794, allocations: 174.2 kB / 0.4899 GB, free: 14.97 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.392e-06/0.4794, allocations: 0 / 0.4899 GB, free: 14.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.001502/0.481, allocations: 463.1 kB / 0.4904 GB, free: 14.49 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.513e-05/0.481, allocations: 81.05 kB / 0.4904 GB, free: 14.39 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004745/0.4815, allocations: 328.5 kB / 0.4907 GB, free: 14.07 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.484e-05/0.4816, allocations: 25.7 kB / 0.4908 GB, free: 14.04 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002055/0.4818, allocations: 211.5 kB / 0.491 GB, free: 13.83 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.096e-05/0.4818, allocations: 31.61 kB / 0.491 GB, free: 13.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.485e-05/0.4819, allocations: 4 kB / 0.491 GB, free: 13.79 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001958/0.4821, allocations: 338.8 kB / 0.4913 GB, free: 13.45 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003646/0.4824, allocations: 120.1 kB / 0.4914 GB, free: 13.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004059/0.4829, allocations: 219 kB / 0.4917 GB, free: 13.07 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000786/0.4836, allocations: 371.1 kB / 0.492 GB, free: 12.65 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.4837, allocations: 0 / 0.492 GB, free: 12.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001035/0.4847, allocations: 431.8 kB / 0.4924 GB, free: 12.21 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.498e-05/0.4848, allocations: 33.7 kB / 0.4925 GB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/0.4848, allocations: 8.094 kB / 0.4925 GB, free: 12.17 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002087/0.485, allocations: 32.83 kB / 0.4925 GB, free: 12.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002758/0.4853, allocations: 67.89 kB / 0.4926 GB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001205/0.4865, allocations: 1.304 MB / 0.4938 GB, free: 10.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003905/0.4869, allocations: 67.75 kB / 0.4939 GB, free: 10.56 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.136e-05/0.487, allocations: 16 kB / 0.4939 GB, free: 10.55 MB / 378.7 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 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001899/0.4872, allocations: 145.7 kB / 0.494 GB, free: 10.39 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.444e-05/0.4872, allocations: 31.61 kB / 0.4941 GB, free: 10.36 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.378e-05/0.4873, allocations: 26.61 kB / 0.4941 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.4873, allocations: 4 kB / 0.4941 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.4873, allocations: 0 / 0.4941 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.4873, allocations: 0 / 0.4941 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005331/0.4878, allocations: 459.1 kB / 0.4945 GB, free: 9.828 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.4879, allocations: 4 kB / 0.4945 GB, free: 9.824 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001788/0.488, allocations: 40 kB / 0.4946 GB, free: 9.785 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001086/0.4882, allocations: 28.78 kB / 0.4946 GB, free: 9.754 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.698e-05/0.4882, allocations: 3.984 kB / 0.4946 GB, free: 9.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009397/0.4891, allocations: 1.3 MB / 0.4959 GB, free: 8.312 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.4891, allocations: 3.938 kB / 0.4959 GB, free: 8.309 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000731/0.4899, allocations: 302.8 kB / 0.4962 GB, free: 7.988 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001251/0.49, allocations: 108.8 kB / 0.4963 GB, free: 7.863 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.91e-05/0.4901, allocations: 7.938 kB / 0.4963 GB, free: 7.855 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002302/0.4903, allocations: 35.97 kB / 0.4963 GB, free: 7.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.681e-05/0.4904, allocations: 23.91 kB / 0.4963 GB, free: 7.797 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.076e-05/0.4904, allocations: 0 / 0.4963 GB, free: 7.797 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002631/0.4907, allocations: 231.1 kB / 0.4966 GB, free: 7.574 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4907, allocations: 0 / 0.4966 GB, free: 7.574 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003984/0.4911, allocations: 67.84 kB / 0.4966 GB, free: 7.508 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002508/0.4914, allocations: 107.2 kB / 0.4967 GB, free: 7.391 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00113/0.4925, allocations: 441.9 kB / 0.4972 GB, free: 6.934 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.4925, allocations: 0 / 0.4972 GB, free: 6.934 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004922/0.493, allocations: 219.4 kB / 0.4974 GB, free: 6.707 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004573/0.4935, allocations: 51.73 kB / 0.4974 GB, free: 6.66 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001332/0.4948, allocations: 0.5616 MB / 0.498 GB, free: 6.066 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004775/0.4953, allocations: 0.7521 MB / 0.4987 GB, free: 5.289 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001691/0.4955, allocations: 34.97 kB / 0.4987 GB, free: 5.258 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.573e-05/0.4956, allocations: 19.44 kB / 0.4988 GB, free: 5.238 MB / 378.7 MB Notification: Performance of SimCode: time 1.884e-06/0.4956, allocations: 0 / 0.4988 GB, free: 5.238 MB / 378.7 MB Notification: Performance of Templates: time 0.007979/0.5036, allocations: 2.91 MB / 0.5016 GB, free: 2.359 MB / 378.7 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","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches