Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.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.0009033/0.0009033, allocations: 88.73 kB / 21.5 MB, free: 2.984 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.0009573/0.0009573, allocations: 168.9 kB / 24.91 MB, free: 8.762 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.9141/0.9141, allocations: 177 MB / 205.2 MB, free: 5.43 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.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5016,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand") translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5016,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.283e-06/1.283e-06, allocations: 0 / 273.4 MB, free: 1.172 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.038e-05/1.166e-05, allocations: 2.312 kB / 273.4 MB, free: 1.168 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.00806/0.008072, allocations: 13.11 MB / 286.5 MB, free: 3.996 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1266/0.1347, allocations: 19.4 MB / 305.9 MB, free: 10.91 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001286/0.1359, allocations: 194.6 kB / 306.1 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001769/0.1377, allocations: 1.066 MB / 307.2 MB, free: 10.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004271/0.142, allocations: 2.341 MB / 309.5 MB, free: 8.754 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002698/0.1447, allocations: 1.401 MB / 310.9 MB, free: 7.82 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004798/0.1495, allocations: 6.717 MB / 317.6 MB, free: 4.523 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004074/0.1499, allocations: 279.6 kB / 317.9 MB, free: 4.316 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002029/0.1519, allocations: 2.982 MB / 320.9 MB, free: 1.422 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006129/0.1525, allocations: 0.7863 MB / 321.7 MB, free: 0.6328 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.133e-05/0.1526, allocations: 68 kB / 321.8 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001997/0.1546, allocations: 1.26 MB / 323 MB, free: 15.3 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001707/0.1548, allocations: 313.7 kB / 323.3 MB, free: 15 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005711/0.1554, allocations: 0.7054 MB / 324 MB, free: 14.29 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00229/0.1576, allocations: 2.716 MB / 326.7 MB, free: 11.56 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.1576, allocations: 0 / 326.7 MB, free: 11.56 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1577, allocations: 4 kB / 326.7 MB, free: 11.56 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.423e-05/0.1577, allocations: 0 / 326.7 MB, free: 11.56 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.002694/0.1604, allocations: 3.487 MB / 330.2 MB, free: 8.023 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.167e-05/0.1604, allocations: 15.98 kB / 330.3 MB, free: 8.008 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002562/0.1607, allocations: 263.7 kB / 330.5 MB, free: 7.75 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001811/0.1625, allocations: 2.102 MB / 332.6 MB, free: 5.531 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.066e-05/0.1625, allocations: 36.98 kB / 332.6 MB, free: 5.492 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.937e-05/0.1626, allocations: 51.92 kB / 332.7 MB, free: 5.441 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000464/0.1631, allocations: 455.5 kB / 333.1 MB, free: 4.984 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.1631, allocations: 0 / 333.1 MB, free: 4.984 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.766e-05/0.1631, allocations: 23.94 kB / 333.2 MB, free: 4.961 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.515e-05/0.1631, allocations: 19.98 kB / 333.2 MB, free: 4.941 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003045/0.1634, allocations: 203.8 kB / 333.4 MB, free: 4.746 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001774/0.1652, allocations: 1.433 MB / 334.8 MB, free: 3.285 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002959/0.1655, allocations: 317.2 kB / 335.1 MB, free: 2.969 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002696/0.1658, allocations: 334.8 kB / 335.5 MB, free: 2.641 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02259/0.1884, allocations: 22.92 MB / 358.4 MB, free: 10.86 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002474/0.1886, allocations: 210 kB / 358.6 MB, free: 10.64 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 1.954e-06/0.1886, allocations: 0 / 358.6 MB, free: 10.64 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0009381/0.1895, allocations: 0.6519 MB / 359.2 MB, free: 9.977 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.945e-05/0.1896, allocations: 63.41 kB / 359.3 MB, free: 9.902 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001362/0.1909, allocations: 2.512 MB / 361.8 MB, free: 7.363 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.162e-05/0.191, allocations: 37.7 kB / 361.8 MB, free: 7.32 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003414/0.1913, allocations: 0.7151 MB / 362.6 MB, free: 6.598 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.931e-05/0.1914, allocations: 178.5 kB / 362.7 MB, free: 6.422 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001509/0.1915, allocations: 186.3 kB / 362.9 MB, free: 6.234 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.651e-05/0.1916, allocations: 337.9 kB / 363.2 MB, free: 5.898 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.976e-05/0.1917, allocations: 73.95 kB / 363.3 MB, free: 5.824 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002441/0.192, allocations: 439 kB / 363.7 MB, free: 5.227 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004234/0.1924, allocations: 0.6194 MB / 364.4 MB, free: 4.438 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.708e-06/0.1924, allocations: 0 / 364.4 MB, free: 4.438 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0006533/0.193, allocations: 0.7078 MB / 365.1 MB, free: 3.719 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.1931, allocations: 12 kB / 365.1 MB, free: 3.707 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.945e-05/0.1931, allocations: 20 kB / 365.1 MB, free: 3.688 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005075/0.1936, allocations: 145.3 kB / 365.2 MB, free: 3.543 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002832/0.1939, allocations: 171.7 kB / 365.4 MB, free: 3.375 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004049/0.1943, allocations: 0.6575 MB / 366.1 MB, free: 2.691 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003824/0.1947, allocations: 95.39 kB / 366.2 MB, free: 2.598 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.889e-05/0.1948, allocations: 36 kB / 366.2 MB, free: 2.562 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 (vin1.counter,$PRE.vin1.counter,vin2.counter,$PRE.vin2.counter,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0002356/0.195, allocations: 177.5 kB / 366.4 MB, free: 2.379 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001585/0.1951, allocations: 235.7 kB / 366.6 MB, free: 2.148 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009866/0.1961, allocations: 0.7998 MB / 367.4 MB, free: 1.348 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.91e-06/0.1961, allocations: 4 kB / 367.4 MB, free: 1.344 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-06/0.1961, allocations: 7.938 kB / 367.4 MB, free: 1.336 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.1961, allocations: 7.969 kB / 367.4 MB, free: 1.328 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001337/0.1975, allocations: 1.591 MB / 369 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.91e-05/0.1975, allocations: 11.98 kB / 369 MB, free: 15.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001308/0.1977, allocations: 55.91 kB / 369.1 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002025/0.1979, allocations: 132.2 kB / 369.2 MB, free: 15.48 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.713e-05/0.1979, allocations: 15.98 kB / 369.2 MB, free: 15.46 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003518/0.1982, allocations: 0.6281 MB / 369.9 MB, free: 14.81 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.1982, allocations: 4.812 kB / 369.9 MB, free: 14.81 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004938/0.1987, allocations: 0.5977 MB / 370.5 MB, free: 14.18 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002977/0.199, allocations: 373.4 kB / 370.8 MB, free: 13.81 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001448/0.1992, allocations: 15.92 kB / 370.8 MB, free: 13.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002855/0.1995, allocations: 27.98 kB / 370.9 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.963e-05/0.1995, allocations: 35.94 kB / 370.9 MB, free: 13.73 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.18e-05/0.1996, allocations: 19.98 kB / 370.9 MB, free: 13.71 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007807/0.2004, allocations: 1.332 MB / 372.3 MB, free: 12.37 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.2004, allocations: 0 / 372.3 MB, free: 12.37 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007341/0.2011, allocations: 0.5696 MB / 372.8 MB, free: 11.8 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008984/0.202, allocations: 0.9281 MB / 373.7 MB, free: 10.86 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006303/0.2026, allocations: 483.9 kB / 374.2 MB, free: 10.36 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-05/0.2027, allocations: 40.5 kB / 374.3 MB, free: 10.32 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002754/0.2029, allocations: 283.9 kB / 374.5 MB, free: 10.02 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001169/0.2041, allocations: 0.6122 MB / 375.2 MB, free: 9.418 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003131/0.2072, allocations: 3.742 MB / 378.9 MB, free: 5.602 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004873/0.2077, allocations: 365.8 kB / 379.2 MB, free: 5.223 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.00075/0.2085, allocations: 390.9 kB / 379.6 MB, free: 4.836 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006224/0.2091, allocations: 0.5538 MB / 380.2 MB, free: 4.273 MB / 330.7 MB Notification: Performance of SimCode: time 2.364e-06/0.2091, allocations: 0 / 380.2 MB, free: 4.273 MB / 330.7 MB Notification: Performance of Templates: time 0.04316/0.2523, allocations: 37.27 MB / 417.5 MB, free: 15.48 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.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.23380945622921]