Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 72.08 kB / 21.69 MB, free: 2.859 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 146.1 kB / 24.98 MB, free: 8.344 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9544/0.9544, allocations: 173.3 MB / 201.5 MB, free: 9.363 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5016,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.844e-06/1.844e-06, allocations: 0 / 268.1 MB, free: 6.773 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.426e-05/2.61e-05, allocations: 10.25 kB / 268.1 MB, free: 6.762 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01215/0.01218, allocations: 13.34 MB / 281.4 MB, free: 9.367 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1253/0.1375, allocations: 19.3 MB / 300.7 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001561/0.139, allocations: 189 kB / 300.9 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002248/0.1413, allocations: 1.046 MB / 301.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005898/0.1472, allocations: 2.385 MB / 304.3 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003974/0.1511, allocations: 1.434 MB / 305.7 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006126/0.1573, allocations: 6.556 MB / 312.3 MB, free: 9.703 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004412/0.1577, allocations: 241 kB / 312.5 MB, free: 9.543 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001327/0.159, allocations: 1.507 MB / 314 MB, free: 8.805 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006635/0.1597, allocations: 0.7558 MB / 314.8 MB, free: 8.512 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001294/0.1598, allocations: 69.09 kB / 314.9 MB, free: 8.512 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002226/0.1621, allocations: 1.204 MB / 316.1 MB, free: 8.176 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001475/0.1622, allocations: 321.3 kB / 316.4 MB, free: 7.934 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005269/0.1627, allocations: 0.6918 MB / 317.1 MB, free: 7.359 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002055/0.1648, allocations: 2.711 MB / 319.8 MB, free: 4.945 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.1648, allocations: 0 / 319.8 MB, free: 4.945 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1648, allocations: 0 / 319.8 MB, free: 4.945 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.601e-05/0.1648, allocations: 0 / 319.8 MB, free: 4.945 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.002367/0.1672, allocations: 3.726 MB / 323.5 MB, free: 1.164 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.1672, allocations: 8.922 kB / 323.5 MB, free: 1.156 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002713/0.1675, allocations: 433.5 kB / 323.9 MB, free: 0.7305 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002191/0.1697, allocations: 2.693 MB / 326.6 MB, free: 14.02 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.293e-05/0.1697, allocations: 33 kB / 326.7 MB, free: 13.98 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.382e-05/0.1698, allocations: 51.95 kB / 326.7 MB, free: 13.93 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006848/0.1705, allocations: 0.5163 MB / 327.2 MB, free: 13.4 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.1705, allocations: 0 / 327.2 MB, free: 13.4 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.757e-05/0.1705, allocations: 20 kB / 327.3 MB, free: 13.38 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.053e-05/0.1706, allocations: 23.73 kB / 327.3 MB, free: 13.36 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005883/0.1712, allocations: 470.4 kB / 327.7 MB, free: 12.91 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002956/0.1741, allocations: 2.672 MB / 330.4 MB, free: 10.23 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000583/0.1747, allocations: 350.6 kB / 330.8 MB, free: 9.875 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004274/0.1751, allocations: 430 kB / 331.2 MB, free: 9.453 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01567/0.1908, allocations: 15.18 MB / 346.4 MB, free: 9.957 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003703/0.1912, allocations: 283.7 kB / 346.6 MB, free: 9.66 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 2.485e-06/0.1912, allocations: 0 / 346.6 MB, free: 9.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.001548/0.1927, allocations: 1.059 MB / 347.7 MB, free: 8.594 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.673e-05/0.1927, allocations: 59.41 kB / 347.8 MB, free: 8.523 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00259/0.1953, allocations: 2.994 MB / 350.7 MB, free: 5.488 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.958e-05/0.1954, allocations: 37.69 kB / 350.8 MB, free: 5.445 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009145/0.1963, allocations: 1.563 MB / 352.3 MB, free: 3.879 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/0.1964, allocations: 165.9 kB / 352.5 MB, free: 3.719 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001876/0.1966, allocations: 236 kB / 352.7 MB, free: 3.48 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.1967, allocations: 0.5121 MB / 353.3 MB, free: 2.961 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001982/0.1969, allocations: 129.9 kB / 353.4 MB, free: 2.828 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004166/0.1973, allocations: 0.6353 MB / 354 MB, free: 1.957 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006584/0.198, allocations: 0.8324 MB / 354.8 MB, free: 0.8945 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/0.198, allocations: 4 kB / 354.8 MB, free: 0.8906 MB / 298.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001373/0.1994, allocations: 1.103 MB / 356 MB, free: 15.78 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.1994, allocations: 12.03 kB / 356 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.565e-05/0.1994, allocations: 83.5 kB / 356 MB, free: 15.69 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003773/0.1998, allocations: 266.3 kB / 356.3 MB, free: 15.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003197/0.2001, allocations: 167.7 kB / 356.5 MB, free: 15.27 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006754/0.2008, allocations: 1.081 MB / 357.6 MB, free: 14.15 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005101/0.2013, allocations: 95.33 kB / 357.6 MB, free: 14.06 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.552e-05/0.2014, allocations: 64 kB / 357.7 MB, free: 14 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.0003266/0.2017, allocations: 220.3 kB / 357.9 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002611/0.202, allocations: 393.6 kB / 358.3 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00143/0.2034, allocations: 1.074 MB / 359.4 MB, free: 12.31 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.928e-06/0.2034, allocations: 7.984 kB / 359.4 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.2034, allocations: 0 / 359.4 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.2034, allocations: 3.984 kB / 359.4 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002159/0.2056, allocations: 2.154 MB / 361.5 MB, free: 10.07 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.743e-05/0.2057, allocations: 68 kB / 361.6 MB, free: 10.01 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001523/0.2058, allocations: 59.89 kB / 361.7 MB, free: 9.949 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002884/0.2061, allocations: 239.7 kB / 361.9 MB, free: 9.711 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.033e-05/0.2061, allocations: 31.98 kB / 361.9 MB, free: 9.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008796/0.207, allocations: 1.072 MB / 363 MB, free: 8.578 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.207, allocations: 8.031 kB / 363 MB, free: 8.57 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009102/0.2079, allocations: 1.032 MB / 364 MB, free: 7.488 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004341/0.2084, allocations: 427.3 kB / 364.5 MB, free: 7.066 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000169/0.2085, allocations: 8 kB / 364.5 MB, free: 7.059 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000323/0.2089, allocations: 23.98 kB / 364.5 MB, free: 7.035 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001175/0.209, allocations: 59.92 kB / 364.6 MB, free: 6.977 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.737e-05/0.209, allocations: 43.98 kB / 364.6 MB, free: 6.934 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001846/0.2109, allocations: 1.639 MB / 366.2 MB, free: 5.289 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2109, allocations: 0 / 366.2 MB, free: 5.289 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001258/0.2121, allocations: 0.5735 MB / 366.8 MB, free: 4.715 MB / 314.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.001028/0.2132, allocations: 0.8315 MB / 367.6 MB, free: 4.02 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001051/0.2142, allocations: 0.6634 MB / 368.3 MB, free: 3.332 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2142, allocations: 0 / 368.3 MB, free: 3.332 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005192/0.2147, allocations: 414.4 kB / 368.7 MB, free: 2.902 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00186/0.2166, allocations: 0.6146 MB / 369.3 MB, free: 2.289 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004466/0.2211, allocations: 3.763 MB / 373.1 MB, free: 14.45 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002883/0.2213, allocations: 365.8 kB / 373.4 MB, free: 14.07 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008237/0.2222, allocations: 386.9 kB / 373.8 MB, free: 13.68 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002106/0.2224, allocations: 164.5 kB / 374 MB, free: 13.52 MB / 330.7 MB Notification: Performance of SimCode: time 1.282e-06/0.2224, allocations: 0 / 374 MB, free: 13.52 MB / 330.7 MB Notification: Performance of Templates: time 0.04924/0.2716, allocations: 32.59 MB / 406.6 MB, free: 13.42 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.576478192117065]