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.001081/0.001081, allocations: 76.48 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.004945/0.006025, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.00111/0.00111, allocations: 148.9 kB / 11.24 MB, free: 2.93 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.003682/0.004792, allocations: 459.6 kB / 11.69 MB, free: 2.477 MB / 13.93 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.9261/0.9261, allocations: 173.4 MB / 185.8 MB, free: 8.984 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0773/1.003, allocations: 52.49 MB / 238.3 MB, free: 4.426 MB / 234.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.122e-06/1.122e-06, allocations: 3.938 kB / 239.5 MB, free: 3.188 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.899e-06/1.102e-05, allocations: 2.312 kB / 239.5 MB, free: 3.184 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.008379/0.00839, allocations: 13.15 MB / 252.7 MB, free: 5.984 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01854/0.02693, allocations: 19.47 MB / 272.2 MB, free: 2.441 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001202/0.02813, allocations: 189.9 kB / 272.3 MB, free: 2.254 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001772/0.02991, allocations: 1.072 MB / 273.4 MB, free: 1.172 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1085/0.1384, allocations: 2.335 MB / 275.7 MB, free: 2.426 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003262/0.1416, allocations: 1.39 MB / 277.1 MB, free: 2.25 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006686/0.1483, allocations: 6.498 MB / 283.6 MB, free: 1.023 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004656/0.1488, allocations: 279.1 kB / 283.9 MB, free: 0.875 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00346/0.1522, allocations: 3.296 MB / 287.2 MB, free: 16.33 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007378/0.153, allocations: 0.7871 MB / 288 MB, free: 16.18 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.562e-05/0.1531, allocations: 67.47 kB / 288.1 MB, free: 16.18 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001984/0.1551, allocations: 1.259 MB / 289.3 MB, free: 16.12 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001542/0.1552, allocations: 254 kB / 289.6 MB, free: 15.99 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005699/0.1558, allocations: 0.6435 MB / 290.2 MB, free: 15.86 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001957/0.1577, allocations: 2.546 MB / 292.8 MB, free: 15.34 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.489e-05/0.1578, allocations: 0 / 292.8 MB, free: 15.34 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1578, allocations: 0 / 292.8 MB, free: 15.34 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.717e-05/0.1578, allocations: 0 / 292.8 MB, free: 15.34 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.002993/0.1608, allocations: 4.149 MB / 296.9 MB, free: 12.87 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.1608, allocations: 12.03 kB / 296.9 MB, free: 12.86 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002382/0.1611, allocations: 264.8 kB / 297.2 MB, free: 12.7 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001946/0.163, allocations: 2.1 MB / 299.3 MB, free: 10.92 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.601e-05/0.163, allocations: 37.62 kB / 299.3 MB, free: 10.89 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.828e-05/0.1631, allocations: 50.58 kB / 299.4 MB, free: 10.86 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004442/0.1636, allocations: 455.8 kB / 299.8 MB, free: 10.61 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.1636, allocations: 0 / 299.8 MB, free: 10.61 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.679e-05/0.1636, allocations: 23.59 kB / 299.8 MB, free: 10.6 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.429e-05/0.1636, allocations: 18.39 kB / 299.8 MB, free: 10.59 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002984/0.1639, allocations: 204.5 kB / 300 MB, free: 10.43 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001915/0.1658, allocations: 1.433 MB / 301.5 MB, free: 9.465 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002913/0.1661, allocations: 329.3 kB / 301.8 MB, free: 9.223 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002624/0.1664, allocations: 328.8 kB / 302.1 MB, free: 8.984 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02268/0.1891, allocations: 22.82 MB / 324.9 MB, free: 2.449 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002597/0.1893, allocations: 219.9 kB / 325.2 MB, free: 2.23 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.643e-06/0.1893, allocations: 0 / 325.2 MB, free: 2.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.00096/0.1903, allocations: 0.6545 MB / 325.8 MB, free: 1.582 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.101e-05/0.1903, allocations: 59.41 kB / 325.9 MB, free: 1.512 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001433/0.1918, allocations: 2.518 MB / 328.4 MB, free: 15.49 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.307e-05/0.1918, allocations: 37.69 kB / 328.4 MB, free: 15.45 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003459/0.1921, allocations: 0.7113 MB / 329.1 MB, free: 14.89 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.997e-05/0.1922, allocations: 183.5 kB / 329.3 MB, free: 14.72 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001461/0.1924, allocations: 185.7 kB / 329.5 MB, free: 14.55 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.496e-05/0.1924, allocations: 340.7 kB / 329.8 MB, free: 14.23 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.675e-05/0.1925, allocations: 73.95 kB / 329.9 MB, free: 14.15 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002409/0.1928, allocations: 447.9 kB / 330.3 MB, free: 13.57 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005554/0.1933, allocations: 0.6039 MB / 330.9 MB, free: 12.87 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.1933, allocations: 0 / 330.9 MB, free: 12.87 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0006418/0.194, allocations: 0.7078 MB / 331.6 MB, free: 12.24 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.194, allocations: 20.2 kB / 331.7 MB, free: 12.22 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.664e-05/0.194, allocations: 20 kB / 331.7 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002529/0.1943, allocations: 150.8 kB / 331.8 MB, free: 12.05 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002913/0.1946, allocations: 190.5 kB / 332 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004046/0.195, allocations: 0.6455 MB / 332.7 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004351/0.1954, allocations: 103.3 kB / 332.8 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.457e-05/0.1955, allocations: 32 kB / 332.8 MB, free: 11.09 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.0002392/0.1957, allocations: 171.1 kB / 333 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000165/0.1959, allocations: 243.6 kB / 333.2 MB, free: 10.69 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001007/0.1969, allocations: 0.8017 MB / 334 MB, free: 9.895 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.174e-06/0.1969, allocations: 8 kB / 334 MB, free: 9.887 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-06/0.1969, allocations: 0 / 334 MB, free: 9.887 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.1969, allocations: 1.125 kB / 334 MB, free: 9.887 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001302/0.1982, allocations: 1.592 MB / 335.6 MB, free: 8.629 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.533e-05/0.1983, allocations: 10.69 kB / 335.6 MB, free: 8.621 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001318/0.1984, allocations: 59.23 kB / 335.7 MB, free: 8.566 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000315/0.1987, allocations: 385.4 kB / 336 MB, free: 8.191 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002054/0.1989, allocations: 127.3 kB / 336.2 MB, free: 8.07 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.615e-05/0.1989, allocations: 15.98 kB / 336.2 MB, free: 8.055 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003555/0.1993, allocations: 0.6271 MB / 336.8 MB, free: 7.414 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.1993, allocations: 3.984 kB / 336.8 MB, free: 7.41 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004977/0.1998, allocations: 0.5959 MB / 337.4 MB, free: 6.793 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001558/0.1999, allocations: 15.84 kB / 337.4 MB, free: 6.781 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000285/0.2002, allocations: 23.97 kB / 337.5 MB, free: 6.758 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.917e-05/0.2003, allocations: 43.91 kB / 337.5 MB, free: 6.715 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.086e-05/0.2003, allocations: 19.98 kB / 337.5 MB, free: 6.695 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007768/0.2011, allocations: 1.33 MB / 338.8 MB, free: 5.523 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2011, allocations: 0 / 338.8 MB, free: 5.523 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008843/0.202, allocations: 0.5696 MB / 339.4 MB, free: 4.953 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.0008279/0.2028, allocations: 0.9218 MB / 340.3 MB, free: 4.176 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005246/0.2034, allocations: 496.8 kB / 340.8 MB, free: 3.707 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-05/0.2034, allocations: 40.5 kB / 340.9 MB, free: 3.668 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002554/0.2036, allocations: 284.3 kB / 341.1 MB, free: 3.383 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001281/0.2049, allocations: 0.8385 MB / 342 MB, free: 2.539 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005985/0.2109, allocations: 3.78 MB / 345.8 MB, free: 14.71 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002204/0.2111, allocations: 369.7 kB / 346.1 MB, free: 14.32 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007347/0.2119, allocations: 386.9 kB / 346.5 MB, free: 13.94 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005737/0.2124, allocations: 0.5499 MB / 347 MB, free: 13.38 MB / 330.7 MB Notification: Performance of SimCode: time 7.32e-07/0.2124, allocations: 0 / 347 MB, free: 13.38 MB / 330.7 MB Notification: Performance of Templates: time 0.04142/0.2539, allocations: 38.46 MB / 385.5 MB, free: 7.516 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 -ignoreHideResult -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.3225228879600763]