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.001132/0.001132, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.0009508/0.0009508, allocations: 145.2 kB / 25.59 MB, free: 8.918 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.8892/0.8892, allocations: 173.4 MB / 202.2 MB, free: 8.281 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.433e-06/1.433e-06, allocations: 0 / 269.2 MB, free: 9.824 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.741e-05/1.885e-05, allocations: 5.266 kB / 269.2 MB, free: 9.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01273/0.01275, allocations: 13.06 MB / 282.2 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01574/0.02849, allocations: 18.98 MB / 301.2 MB, free: 9.688 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001143/0.02963, allocations: 185.9 kB / 301.4 MB, free: 9.504 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001629/0.03126, allocations: 1.044 MB / 302.4 MB, free: 8.449 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0037/0.03496, allocations: 2.378 MB / 304.8 MB, free: 6.055 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002307/0.03727, allocations: 1.437 MB / 306.3 MB, free: 4.609 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.005607/0.04288, allocations: 6.683 MB / 312.9 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004054/0.04328, allocations: 248.9 kB / 313.2 MB, free: 13.63 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002596/0.04588, allocations: 2.917 MB / 316.1 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007624/0.04664, allocations: 0.7824 MB / 316.9 MB, free: 9.922 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001042/0.04674, allocations: 68 kB / 316.9 MB, free: 9.855 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002669/0.04941, allocations: 1.206 MB / 318.2 MB, free: 8.648 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000196/0.04961, allocations: 309.8 kB / 318.5 MB, free: 8.344 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006193/0.05023, allocations: 0.7087 MB / 319.2 MB, free: 7.633 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002309/0.05254, allocations: 2.72 MB / 321.9 MB, free: 4.902 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.05254, allocations: 0 / 321.9 MB, free: 4.902 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.153e-06/0.05254, allocations: 3.938 kB / 321.9 MB, free: 4.898 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.753e-05/0.05256, allocations: 0 / 321.9 MB, free: 4.898 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.002789/0.05535, allocations: 3.791 MB / 325.7 MB, free: 1.047 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.129e-05/0.05538, allocations: 8.031 kB / 325.7 MB, free: 1.039 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002943/0.05568, allocations: 425.6 kB / 326.1 MB, free: 0.6211 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002096/0.05777, allocations: 2.611 MB / 328.7 MB, free: 13.91 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.437e-05/0.0578, allocations: 37 kB / 328.7 MB, free: 13.87 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.702e-05/0.05787, allocations: 51.88 kB / 328.8 MB, free: 13.82 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005263/0.0584, allocations: 472.7 kB / 329.3 MB, free: 13.35 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.05841, allocations: 0 / 329.3 MB, free: 13.35 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.114e-05/0.05845, allocations: 20 kB / 329.3 MB, free: 13.33 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.46e-05/0.05847, allocations: 19.98 kB / 329.3 MB, free: 13.31 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004009/0.05887, allocations: 407.7 kB / 329.7 MB, free: 12.91 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002328/0.0612, allocations: 2.186 MB / 331.9 MB, free: 10.69 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000342/0.06154, allocations: 321.6 kB / 332.2 MB, free: 10.37 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003179/0.06185, allocations: 386.4 kB / 332.6 MB, free: 9.988 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.131/0.1928, allocations: 15.14 MB / 347.7 MB, free: 61.9 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002615/0.1931, allocations: 258 kB / 348 MB, free: 61.84 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 1.803e-06/0.1931, allocations: 0 / 348 MB, free: 61.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.001197/0.1943, allocations: 1.004 MB / 349 MB, free: 61.8 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.314e-05/0.1943, allocations: 69.2 kB / 349 MB, free: 61.73 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001694/0.196, allocations: 2.963 MB / 352 MB, free: 61.32 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.091e-05/0.196, allocations: 34.92 kB / 352 MB, free: 61.29 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006853/0.1967, allocations: 1.598 MB / 353.6 MB, free: 61.02 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.107e-05/0.1968, allocations: 181.3 kB / 353.8 MB, free: 60.93 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001607/0.1969, allocations: 234.7 kB / 354 MB, free: 60.88 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.325e-05/0.197, allocations: 0.5109 MB / 354.6 MB, free: 60.4 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/0.1971, allocations: 98.8 kB / 354.7 MB, free: 60.4 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002055/0.1973, allocations: 0.6267 MB / 355.3 MB, free: 59.74 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004057/0.1977, allocations: 0.7968 MB / 356.1 MB, free: 59.09 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.78e-06/0.1977, allocations: 2.656 kB / 356.1 MB, free: 59.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0009371/0.1987, allocations: 1.04 MB / 357.1 MB, free: 58.86 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.148e-05/0.1987, allocations: 13.08 kB / 357.1 MB, free: 58.86 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.036e-05/0.1988, allocations: 87.84 kB / 357.2 MB, free: 58.86 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002842/0.199, allocations: 262.3 kB / 357.5 MB, free: 58.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002663/0.1993, allocations: 168 kB / 357.6 MB, free: 58.84 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004444/0.1998, allocations: 1.061 MB / 358.7 MB, free: 58.03 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004288/0.2002, allocations: 101.6 kB / 358.8 MB, free: 57.98 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.644e-05/0.2002, allocations: 61.86 kB / 358.9 MB, free: 57.98 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.0002499/0.2005, allocations: 218.9 kB / 359.1 MB, free: 57.79 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00017/0.2007, allocations: 387.2 kB / 359.4 MB, free: 57.59 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001082/0.2017, allocations: 1.045 MB / 360.5 MB, free: 57.28 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.2017, allocations: 3.5 kB / 360.5 MB, free: 57.28 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-06/0.2017, allocations: 3.562 kB / 360.5 MB, free: 57.28 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.2018, allocations: 6.422 kB / 360.5 MB, free: 57.28 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001583/0.2033, allocations: 2.174 MB / 362.7 MB, free: 55.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.82e-05/0.2034, allocations: 76.02 kB / 362.8 MB, free: 55.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000123/0.2035, allocations: 53.39 kB / 362.8 MB, free: 55.62 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002186/0.2037, allocations: 244.3 kB / 363 MB, free: 55.41 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.785e-05/0.2038, allocations: 35.94 kB / 363.1 MB, free: 55.38 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000401/0.2042, allocations: 1.048 MB / 364.1 MB, free: 54.32 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.2042, allocations: 4.094 kB / 364.1 MB, free: 54.32 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000605/0.2048, allocations: 0.9986 MB / 365.1 MB, free: 53.33 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003204/0.2051, allocations: 423.7 kB / 365.5 MB, free: 52.95 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001599/0.2052, allocations: 14.94 kB / 365.6 MB, free: 52.94 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003197/0.2056, allocations: 24.17 kB / 365.6 MB, free: 52.92 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.583e-05/0.2056, allocations: 62.92 kB / 365.6 MB, free: 52.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.398e-05/0.2057, allocations: 38.62 kB / 365.7 MB, free: 52.84 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007326/0.2064, allocations: 1.531 MB / 367.2 MB, free: 51.7 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2064, allocations: 0 / 367.2 MB, free: 51.7 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000712/0.2071, allocations: 0.5802 MB / 367.8 MB, free: 51.15 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.0007222/0.2078, allocations: 0.928 MB / 368.7 MB, free: 50.41 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005157/0.2084, allocations: 0.6151 MB / 369.3 MB, free: 49.82 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.2084, allocations: 0 / 369.3 MB, free: 49.82 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002565/0.2086, allocations: 390.6 kB / 369.7 MB, free: 49.42 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001182/0.2098, allocations: 0.6149 MB / 370.3 MB, free: 48.81 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002387/0.2122, allocations: 3.751 MB / 374.1 MB, free: 45.01 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001676/0.2124, allocations: 369.7 kB / 374.4 MB, free: 44.62 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005123/0.2129, allocations: 390.7 kB / 374.8 MB, free: 44.24 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005109/0.2134, allocations: 0.6268 MB / 375.5 MB, free: 43.61 MB / 314.7 MB Notification: Performance of SimCode: time 6.21e-07/0.2134, allocations: 0 / 375.5 MB, free: 43.61 MB / 314.7 MB Notification: Performance of Templates: time 0.0359/0.2493, allocations: 37.67 MB / 413.1 MB, free: 6.598 MB / 314.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.457791506778449]