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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008306/0.0008306, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003495/0.003495, allocations: 160.6 kB / 24.7 MB, free: 9.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8308/0.8308, allocations: 177 MB / 204.9 MB, free: 5.707 MB / 186.7 MB " [Timeout remaining time 179] 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=1000,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=1000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 325.8 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.521e-05/1.681e-05, allocations: 3.125 kB / 325.8 MB, free: 15.18 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.002484/0.0025, allocations: 2.731 MB / 328.6 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007856/0.003286, allocations: 0.7009 MB / 329.3 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001154/0.003401, allocations: 4 kB / 329.3 MB, free: 11.72 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001251/0.003526, allocations: 47.5 kB / 329.3 MB, free: 11.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000138/0.003664, allocations: 119 kB / 329.4 MB, free: 11.56 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002049/0.003869, allocations: 99.73 kB / 329.5 MB, free: 11.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002904/0.00416, allocations: 406.2 kB / 329.9 MB, free: 11.06 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001591/0.004319, allocations: 92.41 kB / 330 MB, free: 10.98 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001653/0.004484, allocations: 219.5 kB / 330.2 MB, free: 10.76 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001295/0.004614, allocations: 131.6 kB / 330.4 MB, free: 10.63 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.83e-05/0.004652, allocations: 40 kB / 330.4 MB, free: 10.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.084e-05/0.004683, allocations: 40 kB / 330.4 MB, free: 10.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.674e-05/0.004729, allocations: 75.69 kB / 330.5 MB, free: 10.48 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.845e-05/0.004818, allocations: 127.7 kB / 330.6 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002915/0.005109, allocations: 406.7 kB / 331 MB, free: 9.957 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.673e-06/0.005111, allocations: 0 / 331 MB, free: 9.957 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.005112, allocations: 0 / 331 MB, free: 9.957 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.107e-06/0.005116, allocations: 0 / 331 MB, free: 9.957 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0007728/0.005889, allocations: 0.6092 MB / 331.6 MB, free: 9.305 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.176e-05/0.00592, allocations: 12.03 kB / 331.7 MB, free: 9.293 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.308e-05/0.005983, allocations: 32.75 kB / 331.7 MB, free: 9.262 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000264/0.006247, allocations: 242.2 kB / 331.9 MB, free: 8.996 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.708e-05/0.006265, allocations: 21.03 kB / 331.9 MB, free: 8.977 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.653e-05/0.006291, allocations: 28.38 kB / 332 MB, free: 8.949 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006072/0.006898, allocations: 300.3 kB / 332.3 MB, free: 8.645 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.006908, allocations: 192 / 332.3 MB, free: 8.645 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.036e-05/0.006929, allocations: 12.38 kB / 332.3 MB, free: 8.633 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.495e-06/0.006936, allocations: 11.94 kB / 332.3 MB, free: 8.621 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003514/0.007288, allocations: 258.4 kB / 332.5 MB, free: 8.367 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009573/0.008245, allocations: 0.8947 MB / 333.4 MB, free: 7.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003356/0.00858, allocations: 166.6 kB / 333.6 MB, free: 7.238 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001254/0.008706, allocations: 76.8 kB / 333.7 MB, free: 7.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.653e-05/0.008722, allocations: 0 / 333.7 MB, free: 7.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002306/0.008953, allocations: 183.5 kB / 333.8 MB, free: 6.953 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 9.32e-07/0.008954, allocations: 0 / 333.8 MB, free: 6.953 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005782/0.009532, allocations: 302.4 kB / 334.1 MB, free: 6.648 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.76e-05/0.00958, allocations: 106.8 kB / 334.2 MB, free: 6.52 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001913/0.009771, allocations: 297.7 kB / 334.5 MB, free: 6.219 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.667e-05/0.009788, allocations: 29.7 kB / 334.6 MB, free: 6.184 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.848e-05/0.009886, allocations: 223.8 kB / 334.8 MB, free: 5.961 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.546e-05/0.009912, allocations: 43.64 kB / 334.8 MB, free: 5.918 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.675e-05/0.009968, allocations: 49.7 kB / 334.9 MB, free: 5.863 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.047e-05/0.01005, allocations: 338.8 kB / 335.2 MB, free: 5.523 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000155/0.0102, allocations: 129.5 kB / 335.3 MB, free: 5.391 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001922/0.0104, allocations: 258.7 kB / 335.6 MB, free: 5.07 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000304/0.0107, allocations: 311.1 kB / 335.9 MB, free: 4.711 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.0107, allocations: 0 / 335.9 MB, free: 4.711 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004579/0.01116, allocations: 421.5 kB / 336.3 MB, free: 4.277 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.559e-05/0.01119, allocations: 33.7 kB / 336.3 MB, free: 4.238 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.01119, allocations: 4 kB / 336.3 MB, free: 4.234 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001224/0.01131, allocations: 36.72 kB / 336.4 MB, free: 4.195 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001174/0.01143, allocations: 60.02 kB / 336.4 MB, free: 4.137 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006274/0.01206, allocations: 1.272 MB / 337.7 MB, free: 2.762 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001469/0.01221, allocations: 47.75 kB / 337.8 MB, free: 2.715 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.516e-05/0.01222, allocations: 16 kB / 337.8 MB, free: 2.699 MB / 298.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: 7 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,opAmp.satNeg,opAmp.satPos,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 28 * 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.0001065/0.01233, allocations: 157.8 kB / 337.9 MB, free: 2.535 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.362e-05/0.01235, allocations: 23.86 kB / 337.9 MB, free: 2.512 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.43e-05/0.01238, allocations: 29.77 kB / 338 MB, free: 2.488 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.01238, allocations: 3.984 kB / 338 MB, free: 2.484 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.854e-06/0.01238, allocations: 0 / 338 MB, free: 2.484 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.01238, allocations: 0 / 338 MB, free: 2.484 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000255/0.01264, allocations: 366.8 kB / 338.3 MB, free: 2.086 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.01264, allocations: 4 kB / 338.3 MB, free: 2.082 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.521e-05/0.01271, allocations: 28 kB / 338.4 MB, free: 2.055 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.46e-05/0.01277, allocations: 28.84 kB / 338.4 MB, free: 2.023 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/0.01278, allocations: 4 kB / 338.4 MB, free: 2.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005843/0.01337, allocations: 1.26 MB / 339.7 MB, free: 0.6484 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.01337, allocations: 4.156 kB / 339.7 MB, free: 0.6445 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003086/0.01367, allocations: 250.5 kB / 339.9 MB, free: 384 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.703e-05/0.0137, allocations: 31.72 kB / 339.9 MB, free: 352 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.786e-05/0.01372, allocations: 4 kB / 339.9 MB, free: 348 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.296e-05/0.01381, allocations: 23.97 kB / 340 MB, free: 324 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.5e-05/0.01387, allocations: 27.97 kB / 340 MB, free: 296 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.937e-06/0.01388, allocations: 0 / 340 MB, free: 296 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001236/0.014, allocations: 201.2 kB / 340.2 MB, free: 96 kB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.014, allocations: 0 / 340.2 MB, free: 96 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002028/0.0142, allocations: 79.84 kB / 340.3 MB, free: 16 kB / 298.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: 5 ($whenCondition1,opAmp.satPos,opAmp.satNeg,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 (12): * Single equations (assignments): 9 * 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 8.992e-05/0.01429, allocations: 99.23 kB / 340.4 MB, free: 15.91 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004896/0.01478, allocations: 415.4 kB / 340.8 MB, free: 15.47 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.432e-06/0.01478, allocations: 3.938 kB / 340.8 MB, free: 15.47 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001942/0.01498, allocations: 203.7 kB / 341 MB, free: 15.26 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001978/0.01518, allocations: 44.84 kB / 341 MB, free: 15.21 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005954/0.01577, allocations: 0.4887 MB / 341.5 MB, free: 14.69 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.244e-05/0.01585, allocations: 159.5 kB / 341.7 MB, free: 14.52 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.693e-05/0.01591, allocations: 32.48 kB / 341.7 MB, free: 14.48 MB / 314.7 MB Notification: Performance of SimCode: time 4.5e-07/0.01591, allocations: 0 / 341.7 MB, free: 14.48 MB / 314.7 MB Notification: Performance of Templates: time 0.004333/0.02024, allocations: 4.789 MB / 346.5 MB, free: 9.703 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.228973592631519]