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.001032/0.001032, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.001066/0.001066, allocations: 160.5 kB / 24.55 MB, free: 12 kB / 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 1.031/1.031, allocations: 177 MB / 204.8 MB, free: 5.586 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.763e-06/1.763e-06, allocations: 0 / 272.9 MB, free: 1.418 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.948e-05/3.124e-05, allocations: 2.312 kB / 272.9 MB, free: 1.414 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004983/0.005015, allocations: 2.914 MB / 275.9 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001567/0.006582, allocations: 0.7166 MB / 276.6 MB, free: 13.76 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002327/0.006814, allocations: 11.94 kB / 276.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001971/0.007011, allocations: 47.5 kB / 276.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002773/0.007289, allocations: 115.1 kB / 276.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003295/0.007618, allocations: 95.75 kB / 276.8 MB, free: 13.49 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004475/0.008066, allocations: 406.2 kB / 277.2 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002206/0.008286, allocations: 92.44 kB / 277.3 MB, free: 13 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002809/0.008567, allocations: 227.5 kB / 277.6 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002135/0.008781, allocations: 135.5 kB / 277.7 MB, free: 12.65 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.201e-05/0.008843, allocations: 40 kB / 277.7 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.323e-05/0.008896, allocations: 39.94 kB / 277.8 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.15e-05/0.008968, allocations: 87.66 kB / 277.8 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001322/0.0091, allocations: 115.7 kB / 278 MB, free: 12.37 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003802/0.00948, allocations: 251.1 kB / 278.2 MB, free: 12.12 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.009483, allocations: 0 / 278.2 MB, free: 12.12 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.009484, allocations: 0 / 278.2 MB, free: 12.12 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.009491, allocations: 0 / 278.2 MB, free: 12.12 MB / 266.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.001036/0.01053, allocations: 0.6935 MB / 278.9 MB, free: 11.39 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.01057, allocations: 12.03 kB / 278.9 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001122/0.01068, allocations: 60.7 kB / 279 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003746/0.01106, allocations: 248.8 kB / 279.2 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.615e-05/0.01108, allocations: 21.03 kB / 279.2 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.747e-05/0.01113, allocations: 28.38 kB / 279.3 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004585/0.01159, allocations: 245 kB / 279.5 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.0116, allocations: 192 / 279.5 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.043e-05/0.01163, allocations: 8.375 kB / 279.5 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.172e-05/0.01164, allocations: 11.94 kB / 279.5 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002611/0.01191, allocations: 107.8 kB / 279.6 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001632/0.01354, allocations: 0.9135 MB / 280.5 MB, free: 9.629 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002702/0.01381, allocations: 79.12 kB / 280.6 MB, free: 9.539 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.845e-05/0.01389, allocations: 39.66 kB / 280.7 MB, free: 9.496 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.943e-05/0.01392, allocations: 8 kB / 280.7 MB, free: 9.488 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002239/0.01414, allocations: 149.7 kB / 280.8 MB, free: 9.309 MB / 266.7 MB Notification: Performance of pre-optimization done (n=13): time 1.763e-06/0.01414, allocations: 0 / 280.8 MB, free: 9.309 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005439/0.01468, allocations: 177.2 kB / 281 MB, free: 9.125 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.862e-05/0.01474, allocations: 106.8 kB / 281.1 MB, free: 8.996 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003031/0.01505, allocations: 336.1 kB / 281.4 MB, free: 8.648 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.497e-05/0.01507, allocations: 29.7 kB / 281.4 MB, free: 8.613 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001597/0.01523, allocations: 270.5 kB / 281.7 MB, free: 8.344 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.063e-05/0.01527, allocations: 47.81 kB / 281.8 MB, free: 8.297 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.66e-05/0.01537, allocations: 59.36 kB / 281.8 MB, free: 8.23 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.01553, allocations: 0.5001 MB / 282.3 MB, free: 7.719 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001087/0.01564, allocations: 61.67 kB / 282.4 MB, free: 7.652 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000198/0.01583, allocations: 264.5 kB / 282.6 MB, free: 7.309 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002769/0.01611, allocations: 256.2 kB / 282.9 MB, free: 6.98 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.01611, allocations: 0 / 282.9 MB, free: 6.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004922/0.01661, allocations: 323.1 kB / 283.2 MB, free: 6.645 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.058e-05/0.01665, allocations: 37.7 kB / 283.2 MB, free: 6.602 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.01666, allocations: 0 / 283.2 MB, free: 6.602 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000275/0.01693, allocations: 56.08 kB / 283.3 MB, free: 6.543 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001704/0.0171, allocations: 51.91 kB / 283.3 MB, free: 6.492 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001147/0.01825, allocations: 1.748 MB / 285.1 MB, free: 4.625 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002324/0.01848, allocations: 43.77 kB / 285.1 MB, free: 4.582 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.568e-05/0.01851, allocations: 12 kB / 285.1 MB, free: 4.57 MB / 266.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.00015/0.01866, allocations: 181.6 kB / 285.3 MB, free: 4.383 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.689e-05/0.0187, allocations: 31.8 kB / 285.4 MB, free: 4.352 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.561e-05/0.01875, allocations: 29.77 kB / 285.4 MB, free: 4.32 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.01875, allocations: 0 / 285.4 MB, free: 4.32 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.278e-06/0.01876, allocations: 12.03 kB / 285.4 MB, free: 4.309 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.01877, allocations: 3.984 kB / 285.4 MB, free: 4.305 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004508/0.01922, allocations: 416.9 kB / 285.8 MB, free: 3.852 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.01922, allocations: 0 / 285.8 MB, free: 3.852 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.386e-05/0.0193, allocations: 19.98 kB / 285.8 MB, free: 3.832 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002033/0.01951, allocations: 43.62 kB / 285.9 MB, free: 3.785 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.675e-05/0.01952, allocations: 4 kB / 285.9 MB, free: 3.781 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001233/0.02076, allocations: 1.744 MB / 287.6 MB, free: 1.914 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.02076, allocations: 4 kB / 287.6 MB, free: 1.91 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002878/0.02105, allocations: 171.6 kB / 287.8 MB, free: 1.711 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.237e-05/0.0211, allocations: 39.86 kB / 287.8 MB, free: 1.672 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.031e-05/0.02113, allocations: 0 / 287.8 MB, free: 1.672 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001171/0.02125, allocations: 19.98 kB / 287.8 MB, free: 1.652 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.939e-05/0.02134, allocations: 23.89 kB / 287.9 MB, free: 1.629 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.448e-05/0.02135, allocations: 4 kB / 287.9 MB, free: 1.625 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001955/0.02155, allocations: 221.1 kB / 288.1 MB, free: 1.414 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.02155, allocations: 0 / 288.1 MB, free: 1.414 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004412/0.02199, allocations: 75.83 kB / 288.2 MB, free: 1.34 MB / 266.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 0.0001803/0.02217, allocations: 107.2 kB / 288.3 MB, free: 1.227 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006896/0.02286, allocations: 381.5 kB / 288.6 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.02286, allocations: 3.938 kB / 288.6 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000271/0.02313, allocations: 222.5 kB / 288.9 MB, free: 0.5742 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004015/0.02353, allocations: 64.77 kB / 288.9 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001545/0.02508, allocations: 473.8 kB / 289.4 MB, free: 20 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001005/0.02518, allocations: 80.31 kB / 289.5 MB, free: 15.92 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001234/0.0253, allocations: 34.27 kB / 289.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.91e-05/0.02538, allocations: 28.48 kB / 289.5 MB, free: 15.86 MB / 282.7 MB Notification: Performance of SimCode: time 1.352e-06/0.02538, allocations: 0 / 289.5 MB, free: 15.86 MB / 282.7 MB Notification: Performance of Templates: time 0.007595/0.03298, allocations: 3.485 MB / 293 MB, free: 12.42 MB / 282.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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0912474719807506]