Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009222/0.0009222, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.005126/0.006049, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001089/0.001089, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001484/0.002572, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9295/0.9295, allocations: 177.5 MB / 190 MB, free: 4.809 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07909/1.009, allocations: 53.86 MB / 243.9 MB, free: 14.87 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5016,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.302e-06/1.302e-06, allocations: 0 / 245.2 MB, free: 13.6 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.929e-06/1.123e-05, allocations: 5.406 kB / 245.2 MB, free: 13.59 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.007855/0.007867, allocations: 13.16 MB / 258.3 MB, free: 388 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.1181/0.126, allocations: 19.5 MB / 277.8 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001371/0.1273, allocations: 191.4 kB / 278 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00187/0.1292, allocations: 1.07 MB / 279.1 MB, free: 0.5312 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004461/0.1337, allocations: 2.338 MB / 281.4 MB, free: 88 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002814/0.1365, allocations: 1.395 MB / 282.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.006151/0.1426, allocations: 6.589 MB / 289.4 MB, free: 14.57 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004191/0.1431, allocations: 286.2 kB / 289.7 MB, free: 14.41 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002685/0.1457, allocations: 3.369 MB / 293.1 MB, free: 13.88 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000694/0.1464, allocations: 0.7919 MB / 293.9 MB, free: 13.72 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001116/0.1465, allocations: 65.03 kB / 293.9 MB, free: 13.72 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002041/0.1486, allocations: 1.267 MB / 295.2 MB, free: 13.67 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001554/0.1487, allocations: 253.3 kB / 295.4 MB, free: 13.54 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004794/0.1492, allocations: 0.6393 MB / 296.1 MB, free: 13.41 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001971/0.1512, allocations: 2.549 MB / 298.6 MB, free: 11.62 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.234e-05/0.1512, allocations: 0 / 298.6 MB, free: 11.62 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.512e-06/0.1512, allocations: 0 / 298.6 MB, free: 11.62 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.011e-05/0.1513, allocations: 0 / 298.6 MB, free: 11.62 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.002995/0.1542, allocations: 4.153 MB / 302.8 MB, free: 7.898 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.128e-05/0.1543, allocations: 12.62 kB / 302.8 MB, free: 7.887 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002574/0.1545, allocations: 263.7 kB / 303.1 MB, free: 7.629 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001912/0.1564, allocations: 2.1 MB / 305.2 MB, free: 5.508 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.347e-05/0.1565, allocations: 33 kB / 305.2 MB, free: 5.473 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.051e-05/0.1566, allocations: 54.95 kB / 305.2 MB, free: 5.422 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004861/0.157, allocations: 449.9 kB / 305.7 MB, free: 4.977 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.1571, allocations: 0 / 305.7 MB, free: 4.977 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.677e-05/0.1571, allocations: 16 kB / 305.7 MB, free: 4.961 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.905e-05/0.1571, allocations: 27.92 kB / 305.7 MB, free: 4.934 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003072/0.1574, allocations: 203.8 kB / 305.9 MB, free: 4.73 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00179/0.1592, allocations: 1.433 MB / 307.4 MB, free: 3.34 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000298/0.1595, allocations: 322.4 kB / 307.7 MB, free: 3.035 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000272/0.1598, allocations: 336.1 kB / 308 MB, free: 2.711 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02238/0.1822, allocations: 22.86 MB / 330.9 MB, free: 11.17 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004973/0.1827, allocations: 211.2 kB / 331.1 MB, free: 10.96 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.735e-06/0.1827, allocations: 2.531 kB / 331.1 MB, free: 10.96 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0009447/0.1836, allocations: 0.6519 MB / 331.7 MB, free: 10.31 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.126e-05/0.1836, allocations: 62.39 kB / 331.8 MB, free: 10.24 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001298/0.1849, allocations: 2.516 MB / 334.3 MB, free: 8.223 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.305e-05/0.185, allocations: 33.7 kB / 334.3 MB, free: 8.184 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003333/0.1853, allocations: 0.7118 MB / 335 MB, free: 7.625 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.854e-05/0.1854, allocations: 184.2 kB / 335.2 MB, free: 7.457 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001438/0.1855, allocations: 177.7 kB / 335.4 MB, free: 7.293 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.741e-05/0.1856, allocations: 344.6 kB / 335.7 MB, free: 6.969 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.196e-05/0.1857, allocations: 69.97 kB / 335.8 MB, free: 6.898 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002466/0.1859, allocations: 442.5 kB / 336.2 MB, free: 6.324 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004273/0.1864, allocations: 0.6466 MB / 336.9 MB, free: 5.578 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.1864, allocations: 4 kB / 336.9 MB, free: 5.574 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.000635/0.187, allocations: 0.7033 MB / 337.6 MB, free: 4.895 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.187, allocations: 15.94 kB / 337.6 MB, free: 4.879 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.165e-05/0.1871, allocations: 23.98 kB / 337.6 MB, free: 4.855 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000253/0.1873, allocations: 141 kB / 337.8 MB, free: 4.719 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002954/0.1876, allocations: 187.7 kB / 337.9 MB, free: 4.535 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004105/0.188, allocations: 0.6492 MB / 338.6 MB, free: 3.871 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004105/0.1885, allocations: 111.2 kB / 338.7 MB, free: 3.762 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002919/0.1887, allocations: 36 kB / 338.7 MB, free: 3.727 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.0002559/0.189, allocations: 179.7 kB / 338.9 MB, free: 3.543 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001665/0.1892, allocations: 231.7 kB / 339.1 MB, free: 3.316 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001039/0.1902, allocations: 0.8023 MB / 339.9 MB, free: 2.516 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.1902, allocations: 7.984 kB / 339.9 MB, free: 2.508 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.1902, allocations: 0.875 kB / 339.9 MB, free: 2.508 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.1902, allocations: 3.938 kB / 339.9 MB, free: 2.504 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001426/0.1916, allocations: 1.581 MB / 341.5 MB, free: 1.242 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.631e-05/0.1917, allocations: 11.94 kB / 341.5 MB, free: 1.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001361/0.1918, allocations: 59.89 kB / 341.6 MB, free: 1.172 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003168/0.1921, allocations: 381.5 kB / 342 MB, free: 0.7969 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002013/0.1923, allocations: 132.7 kB / 342.1 MB, free: 0.6719 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.529e-05/0.1924, allocations: 13.81 kB / 342.1 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003503/0.1927, allocations: 0.6308 MB / 342.7 MB, free: 12 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1927, allocations: 0 / 342.7 MB, free: 12 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005006/0.1932, allocations: 0.5958 MB / 343.3 MB, free: 15.39 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001413/0.1934, allocations: 12 kB / 343.4 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003012/0.1937, allocations: 19.92 kB / 343.4 MB, free: 15.36 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.764e-05/0.1937, allocations: 51.89 kB / 343.4 MB, free: 15.31 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.025e-05/0.1938, allocations: 16 kB / 343.4 MB, free: 15.3 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007476/0.1945, allocations: 1.333 MB / 344.8 MB, free: 14.12 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1945, allocations: 0 / 344.8 MB, free: 14.12 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000734/0.1953, allocations: 0.5774 MB / 345.3 MB, free: 13.54 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.0008657/0.1961, allocations: 0.9227 MB / 346.3 MB, free: 12.77 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007533/0.1969, allocations: 0.5004 MB / 346.8 MB, free: 12.25 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.054e-05/0.1969, allocations: 40.5 kB / 346.8 MB, free: 12.21 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002829/0.1972, allocations: 302.6 kB / 347.1 MB, free: 11.89 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00278/0.2, allocations: 5.884 MB / 353 MB, free: 4.914 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006027/0.206, allocations: 3.778 MB / 356.8 MB, free: 1.078 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002259/0.2062, allocations: 365.8 kB / 357.1 MB, free: 0.6992 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005794/0.2068, allocations: 386.9 kB / 357.5 MB, free: 324 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005982/0.2074, allocations: 0.5557 MB / 358.1 MB, free: 15.75 MB / 346.7 MB Notification: Performance of SimCode: time 7.72e-07/0.2074, allocations: 0 / 358.1 MB, free: 15.75 MB / 346.7 MB Notification: Performance of Templates: time 0.04098/0.2484, allocations: 38.17 MB / 396.2 MB, free: 10.07 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2671886747702956]