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.00149/0.00149, allocations: 78.19 kB / 21.42 MB, free: 3.078 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.001139/0.001139, allocations: 151.4 kB / 24.8 MB, free: 9.289 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.9611/0.9611, allocations: 173.3 MB / 201.4 MB, free: 9.199 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 2.114e-06/2.114e-06, allocations: 0 / 268.4 MB, free: 6.203 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.359e-05/2.57e-05, allocations: 10.31 kB / 268.4 MB, free: 6.191 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01003/0.01006, allocations: 13.05 MB / 281.4 MB, free: 9.086 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1245/0.1346, allocations: 18.97 MB / 300.4 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002073/0.1366, allocations: 190.6 kB / 300.6 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002384/0.139, allocations: 1.043 MB / 301.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006098/0.1451, allocations: 2.396 MB / 304 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004225/0.1493, allocations: 1.43 MB / 305.5 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00672/0.1561, allocations: 6.684 MB / 312.2 MB, free: 9.977 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000556/0.1566, allocations: 241.6 kB / 312.4 MB, free: 9.82 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00284/0.1595, allocations: 2.921 MB / 315.3 MB, free: 8.562 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008379/0.1603, allocations: 0.7917 MB / 316.1 MB, free: 8.012 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001617/0.1605, allocations: 68 kB / 316.2 MB, free: 7.945 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002565/0.163, allocations: 1.194 MB / 317.4 MB, free: 6.785 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001347/0.1632, allocations: 322.7 kB / 317.7 MB, free: 6.48 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005237/0.1637, allocations: 0.7107 MB / 318.4 MB, free: 5.781 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002207/0.1659, allocations: 2.711 MB / 321.1 MB, free: 3.336 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1659, allocations: 0 / 321.1 MB, free: 3.336 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.1659, allocations: 0 / 321.1 MB, free: 3.336 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.792e-05/0.1659, allocations: 0 / 321.1 MB, free: 3.336 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.002735/0.1687, allocations: 3.776 MB / 324.9 MB, free: 15.69 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.335e-05/0.1687, allocations: 8.922 kB / 324.9 MB, free: 15.68 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003189/0.169, allocations: 433.5 kB / 325.3 MB, free: 15.26 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002157/0.1712, allocations: 2.615 MB / 327.9 MB, free: 12.62 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.506e-05/0.1712, allocations: 37 kB / 328 MB, free: 12.59 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.771e-05/0.1713, allocations: 54.36 kB / 328 MB, free: 12.54 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005215/0.1718, allocations: 472.7 kB / 328.5 MB, free: 12.06 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.1718, allocations: 0 / 328.5 MB, free: 12.06 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.902e-05/0.1719, allocations: 16 kB / 328.5 MB, free: 12.05 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.45e-05/0.1719, allocations: 23.73 kB / 328.5 MB, free: 12.03 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004159/0.1723, allocations: 407.7 kB / 328.9 MB, free: 11.63 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002493/0.1748, allocations: 2.175 MB / 331.1 MB, free: 9.645 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003684/0.1751, allocations: 312.8 kB / 331.4 MB, free: 9.336 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003332/0.1755, allocations: 399.6 kB / 331.8 MB, free: 8.957 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01607/0.1916, allocations: 15.22 MB / 347 MB, free: 9.473 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002763/0.1918, allocations: 266 kB / 347.3 MB, free: 9.207 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.703e-06/0.1918, allocations: 0 / 347.3 MB, free: 9.207 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.00131/0.1931, allocations: 1.016 MB / 348.3 MB, free: 8.188 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.1e-05/0.1932, allocations: 55.41 kB / 348.3 MB, free: 8.121 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002095/0.1953, allocations: 2.957 MB / 351.3 MB, free: 5.184 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.65e-05/0.1953, allocations: 41.69 kB / 351.3 MB, free: 5.137 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009626/0.1963, allocations: 1.601 MB / 352.9 MB, free: 3.527 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001073/0.1964, allocations: 178.5 kB / 353.1 MB, free: 3.352 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001854/0.1966, allocations: 235.9 kB / 353.3 MB, free: 3.113 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0003882/0.1969, allocations: 0.512 MB / 353.8 MB, free: 2.594 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000135/0.1971, allocations: 101.9 kB / 353.9 MB, free: 2.492 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003476/0.1974, allocations: 0.6235 MB / 354.6 MB, free: 1.633 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006245/0.1981, allocations: 0.7987 MB / 355.4 MB, free: 0.5977 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.047e-06/0.1981, allocations: 4 kB / 355.4 MB, free: 0.5938 MB / 298.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001046/0.1991, allocations: 1.035 MB / 356.4 MB, free: 15.55 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.408e-05/0.1991, allocations: 12 kB / 356.4 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.972e-05/0.1992, allocations: 84.86 kB / 356.5 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000333/0.1995, allocations: 255.5 kB / 356.7 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002924/0.1998, allocations: 163.7 kB / 356.9 MB, free: 15.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006565/0.2005, allocations: 1.069 MB / 358 MB, free: 13.94 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000462/0.2009, allocations: 99.33 kB / 358.1 MB, free: 13.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.927e-05/0.201, allocations: 56 kB / 358.1 MB, free: 13.79 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.0002783/0.2013, allocations: 220.2 kB / 358.3 MB, free: 13.56 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002217/0.2015, allocations: 389.6 kB / 358.7 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001192/0.2027, allocations: 1.036 MB / 359.8 MB, free: 12.13 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.2027, allocations: 12 kB / 359.8 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-06/0.2027, allocations: 3.938 kB / 359.8 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.962e-06/0.2027, allocations: 3.984 kB / 359.8 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002141/0.2049, allocations: 2.182 MB / 362 MB, free: 9.848 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.705e-05/0.2049, allocations: 72 kB / 362 MB, free: 9.777 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001249/0.205, allocations: 51.89 kB / 362.1 MB, free: 9.727 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002436/0.2053, allocations: 243.7 kB / 362.3 MB, free: 9.484 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.293e-05/0.2053, allocations: 35.98 kB / 362.4 MB, free: 9.449 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005257/0.2058, allocations: 1.054 MB / 363.4 MB, free: 8.367 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.2058, allocations: 3.938 kB / 363.4 MB, free: 8.363 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007466/0.2066, allocations: 1.003 MB / 364.4 MB, free: 7.309 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004108/0.207, allocations: 423.3 kB / 364.8 MB, free: 6.891 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002266/0.2072, allocations: 12 kB / 364.8 MB, free: 6.879 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005395/0.2078, allocations: 19.98 kB / 364.9 MB, free: 6.859 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000138/0.2079, allocations: 59.92 kB / 364.9 MB, free: 6.801 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.433e-05/0.208, allocations: 39.98 kB / 365 MB, free: 6.762 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001463/0.2094, allocations: 1.533 MB / 366.5 MB, free: 5.223 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.2094, allocations: 3.938 kB / 366.5 MB, free: 5.219 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008238/0.2103, allocations: 0.5735 MB / 367.1 MB, free: 4.645 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.001157/0.2114, allocations: 0.9248 MB / 368 MB, free: 3.711 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006472/0.2121, allocations: 0.6162 MB / 368.6 MB, free: 3.07 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.2121, allocations: 0 / 368.6 MB, free: 3.07 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003254/0.2124, allocations: 407.1 kB / 369 MB, free: 2.648 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00126/0.2137, allocations: 0.6067 MB / 369.6 MB, free: 2.039 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00311/0.2168, allocations: 3.766 MB / 373.4 MB, free: 14.19 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002408/0.217, allocations: 365.8 kB / 373.7 MB, free: 13.81 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005948/0.2176, allocations: 390.9 kB / 374.1 MB, free: 13.43 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006258/0.2182, allocations: 0.6229 MB / 374.7 MB, free: 12.8 MB / 330.7 MB Notification: Performance of SimCode: time 5.51e-07/0.2182, allocations: 0 / 374.7 MB, free: 12.8 MB / 330.7 MB Notification: Performance of Templates: time 0.04226/0.2605, allocations: 37.46 MB / 412.2 MB, free: 7.84 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.4372863708995283]