Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009639/0.0009639, allocations: 71.77 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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009862/0.0009862, allocations: 165.9 kB / 24.99 MB, free: 8.336 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9777/0.9777, allocations: 177.1 MB / 205.3 MB, free: 5.645 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 273 MB, free: 1.867 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.192e-05/2.341e-05, allocations: 10.25 kB / 273 MB, free: 1.855 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01312/0.01315, allocations: 13.36 MB / 286.4 MB, free: 4.441 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1249/0.138, allocations: 19.34 MB / 305.8 MB, free: 11.15 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001078/0.1391, allocations: 190.4 kB / 305.9 MB, free: 11.01 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001637/0.1407, allocations: 1.032 MB / 307 MB, free: 10.51 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003896/0.1446, allocations: 2.383 MB / 309.4 MB, free: 9.039 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002536/0.1472, allocations: 1.434 MB / 310.8 MB, free: 8.16 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004861/0.152, allocations: 6.635 MB / 317.4 MB, free: 4.91 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003151/0.1523, allocations: 238.9 kB / 317.7 MB, free: 4.746 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008831/0.1532, allocations: 1.512 MB / 319.2 MB, free: 3.621 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005196/0.1537, allocations: 0.7512 MB / 319.9 MB, free: 2.867 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.262e-05/0.1538, allocations: 72 kB / 320 MB, free: 2.797 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00149/0.1553, allocations: 1.206 MB / 321.2 MB, free: 1.59 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001321/0.1554, allocations: 309.7 kB / 321.5 MB, free: 1.285 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004168/0.1559, allocations: 0.7048 MB / 322.2 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002074/0.1579, allocations: 2.712 MB / 324.9 MB, free: 13.86 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.1579, allocations: 0 / 324.9 MB, free: 13.86 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1579, allocations: 0 / 324.9 MB, free: 13.86 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.753e-05/0.158, allocations: 0 / 324.9 MB, free: 13.86 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.002803/0.1608, allocations: 3.727 MB / 328.6 MB, free: 10.07 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.1608, allocations: 12.03 kB / 328.7 MB, free: 10.06 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003098/0.1611, allocations: 429.5 kB / 329.1 MB, free: 9.637 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002247/0.1634, allocations: 2.69 MB / 331.8 MB, free: 6.848 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.637e-05/0.1634, allocations: 33 kB / 331.8 MB, free: 6.812 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.154e-05/0.1635, allocations: 55.94 kB / 331.8 MB, free: 6.758 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006479/0.1641, allocations: 0.5163 MB / 332.4 MB, free: 6.234 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.1641, allocations: 0 / 332.4 MB, free: 6.234 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.849e-05/0.1642, allocations: 23.94 kB / 332.4 MB, free: 6.211 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.845e-05/0.1642, allocations: 23.97 kB / 332.4 MB, free: 6.188 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005424/0.1647, allocations: 470.4 kB / 332.9 MB, free: 5.73 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002682/0.1674, allocations: 2.667 MB / 335.5 MB, free: 3.016 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004276/0.1678, allocations: 353.8 kB / 335.9 MB, free: 2.66 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004181/0.1683, allocations: 438 kB / 336.3 MB, free: 2.227 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01431/0.1826, allocations: 15.21 MB / 351.5 MB, free: 2.633 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002984/0.1829, allocations: 271 kB / 351.8 MB, free: 2.359 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 2.054e-06/0.1829, allocations: 0 / 351.8 MB, free: 2.359 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.001372/0.1842, allocations: 1.065 MB / 352.9 MB, free: 1.277 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.272e-05/0.1843, allocations: 59.34 kB / 352.9 MB, free: 1.207 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003255/0.1875, allocations: 3.002 MB / 355.9 MB, free: 14.16 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.125e-05/0.1876, allocations: 33.7 kB / 355.9 MB, free: 14.12 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001118/0.1887, allocations: 1.558 MB / 357.5 MB, free: 12.56 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/0.1888, allocations: 174.6 kB / 357.7 MB, free: 12.39 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001829/0.189, allocations: 236 kB / 357.9 MB, free: 12.15 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.1891, allocations: 0.5082 MB / 358.4 MB, free: 11.63 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001876/0.1893, allocations: 121.9 kB / 358.5 MB, free: 11.51 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003814/0.1897, allocations: 0.6354 MB / 359.2 MB, free: 10.64 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006217/0.1903, allocations: 0.8379 MB / 360 MB, free: 9.578 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.655e-06/0.1903, allocations: 7.938 kB / 360 MB, free: 9.57 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001029/0.1913, allocations: 1.106 MB / 361.1 MB, free: 8.449 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.1913, allocations: 12.06 kB / 361.1 MB, free: 8.438 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.418e-05/0.1914, allocations: 83.98 kB / 361.2 MB, free: 8.355 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003492/0.1917, allocations: 251.6 kB / 361.5 MB, free: 8.105 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003121/0.1921, allocations: 167.7 kB / 361.6 MB, free: 7.941 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008203/0.1929, allocations: 1.092 MB / 362.7 MB, free: 6.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004204/0.1933, allocations: 99.34 kB / 362.8 MB, free: 6.723 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.819e-05/0.1934, allocations: 64 kB / 362.9 MB, free: 6.66 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.0002853/0.1937, allocations: 216.9 kB / 363.1 MB, free: 6.438 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000227/0.1939, allocations: 393.7 kB / 363.5 MB, free: 6.051 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001319/0.1952, allocations: 1.075 MB / 364.5 MB, free: 4.965 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.1952, allocations: 4 kB / 364.5 MB, free: 4.961 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.1952, allocations: 4 kB / 364.6 MB, free: 4.957 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.752e-06/0.1952, allocations: 3.984 kB / 364.6 MB, free: 4.953 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001929/0.1971, allocations: 2.139 MB / 366.7 MB, free: 2.742 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.607e-05/0.1972, allocations: 72 kB / 366.8 MB, free: 2.672 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000135/0.1973, allocations: 51.89 kB / 366.8 MB, free: 2.621 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002627/0.1976, allocations: 247.7 kB / 367.1 MB, free: 2.375 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.741e-05/0.1976, allocations: 43.86 kB / 367.1 MB, free: 2.332 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005509/0.1982, allocations: 1.058 MB / 368.2 MB, free: 1.242 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1982, allocations: 4.031 kB / 368.2 MB, free: 1.238 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008038/0.199, allocations: 1.031 MB / 369.2 MB, free: 160 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003665/0.1994, allocations: 428.3 kB / 369.6 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001592/0.1995, allocations: 8 kB / 369.6 MB, free: 15.72 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003091/0.1998, allocations: 19.97 kB / 369.6 MB, free: 15.7 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000238/0.2001, allocations: 71.67 kB / 369.7 MB, free: 15.64 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.259e-05/0.2001, allocations: 43.98 kB / 369.8 MB, free: 15.59 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001294/0.2014, allocations: 1.643 MB / 371.4 MB, free: 13.95 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2014, allocations: 0 / 371.4 MB, free: 13.95 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007312/0.2021, allocations: 0.5697 MB / 372 MB, free: 13.38 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.0007323/0.2029, allocations: 0.8278 MB / 372.8 MB, free: 12.54 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007166/0.2036, allocations: 0.6673 MB / 373.5 MB, free: 11.84 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.2036, allocations: 0 / 373.5 MB, free: 11.84 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003615/0.2039, allocations: 402.3 kB / 373.9 MB, free: 11.42 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001301/0.2052, allocations: 0.6255 MB / 374.5 MB, free: 10.8 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00314/0.2084, allocations: 3.774 MB / 378.3 MB, free: 6.941 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002168/0.2086, allocations: 361.8 kB / 378.6 MB, free: 6.566 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005875/0.2092, allocations: 390.8 kB / 379 MB, free: 6.18 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001429/0.2093, allocations: 164.5 kB / 379.1 MB, free: 6.02 MB / 330.7 MB Notification: Performance of SimCode: time 7.52e-07/0.2093, allocations: 0 / 379.1 MB, free: 6.02 MB / 330.7 MB Notification: Performance of Templates: time 0.03551/0.2448, allocations: 32.62 MB / 411.8 MB, free: 5.891 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.5697211320511997]