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.001077/0.001077, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001519/0.002597, allocations: 449.7 kB / 10.37 MB, free: 324 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.001066/0.001066, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001381/0.002446, allocations: 463.6 kB / 11.72 MB, free: 2.453 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.9012/0.9012, allocations: 177.4 MB / 189.9 MB, free: 4.836 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0772/0.9784, allocations: 53.87 MB / 243.7 MB, free: 14.91 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 2.836e-06/2.836e-06, allocations: 4 kB / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.095e-05/2.379e-05, allocations: 2.312 kB / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01222/0.01225, allocations: 13.15 MB / 258.2 MB, free: 460 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.1206/0.1328, allocations: 19.5 MB / 277.7 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001181/0.134, allocations: 190.4 kB / 277.8 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001723/0.1357, allocations: 1.069 MB / 278.9 MB, free: 484 kB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004557/0.1403, allocations: 2.344 MB / 281.3 MB, free: 28 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003074/0.1433, allocations: 1.392 MB / 282.6 MB, free: 15.81 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.006204/0.1495, allocations: 6.588 MB / 289.2 MB, free: 14.52 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004319/0.15, allocations: 284.6 kB / 289.5 MB, free: 14.36 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00279/0.1528, allocations: 3.368 MB / 292.9 MB, free: 13.82 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006783/0.1534, allocations: 0.7906 MB / 293.7 MB, free: 13.66 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.771e-05/0.1535, allocations: 69.56 kB / 293.7 MB, free: 13.66 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002107/0.1556, allocations: 1.263 MB / 295 MB, free: 13.61 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001675/0.1558, allocations: 254.5 kB / 295.3 MB, free: 13.48 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005342/0.1563, allocations: 0.6382 MB / 295.9 MB, free: 13.35 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002085/0.1584, allocations: 2.544 MB / 298.4 MB, free: 11.6 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.468e-05/0.1584, allocations: 7.938 kB / 298.4 MB, free: 11.59 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1584, allocations: 0 / 298.4 MB, free: 11.59 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.367e-05/0.1585, allocations: 0 / 298.4 MB, free: 11.59 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.002892/0.1614, allocations: 4.153 MB / 302.6 MB, free: 7.879 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.957e-05/0.1614, allocations: 8.625 kB / 302.6 MB, free: 7.871 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002334/0.1617, allocations: 269.7 kB / 302.9 MB, free: 7.621 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001887/0.1635, allocations: 2.108 MB / 305 MB, free: 5.496 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.311e-05/0.1636, allocations: 33 kB / 305 MB, free: 5.461 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.871e-05/0.1636, allocations: 44 kB / 305 MB, free: 5.418 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004746/0.1641, allocations: 443.5 kB / 305.5 MB, free: 4.977 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.1641, allocations: 4 kB / 305.5 MB, free: 4.973 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.846e-05/0.1642, allocations: 20 kB / 305.5 MB, free: 4.953 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.554e-05/0.1642, allocations: 27.92 kB / 305.5 MB, free: 4.926 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003085/0.1645, allocations: 203.8 kB / 305.7 MB, free: 4.723 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001853/0.1663, allocations: 1.437 MB / 307.2 MB, free: 3.332 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003032/0.1666, allocations: 317.8 kB / 307.5 MB, free: 3.027 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002803/0.1669, allocations: 335.7 kB / 307.8 MB, free: 2.707 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02191/0.1888, allocations: 22.85 MB / 330.7 MB, free: 11.18 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002476/0.1891, allocations: 216.4 kB / 330.9 MB, free: 10.96 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.234e-06/0.1891, allocations: 7.938 kB / 330.9 MB, free: 10.96 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0009477/0.19, allocations: 0.6542 MB / 331.5 MB, free: 10.3 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.107e-05/0.1901, allocations: 62.31 kB / 331.6 MB, free: 10.23 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001315/0.1914, allocations: 2.51 MB / 334.1 MB, free: 8.223 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.378e-05/0.1914, allocations: 37.7 kB / 334.1 MB, free: 8.18 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003342/0.1917, allocations: 0.7153 MB / 334.8 MB, free: 7.617 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.353e-05/0.1918, allocations: 171 kB / 335 MB, free: 7.461 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001436/0.192, allocations: 183 kB / 335.2 MB, free: 7.293 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.359e-05/0.1921, allocations: 339.2 kB / 335.5 MB, free: 6.973 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.884e-05/0.1922, allocations: 73.97 kB / 335.6 MB, free: 6.898 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002414/0.1924, allocations: 454.4 kB / 336 MB, free: 6.309 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004183/0.1928, allocations: 0.6029 MB / 336.6 MB, free: 5.609 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.1928, allocations: 4 kB / 336.6 MB, free: 5.605 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0006548/0.1935, allocations: 0.7012 MB / 337.4 MB, free: 4.93 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.1935, allocations: 15.94 kB / 337.4 MB, free: 4.914 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.864e-05/0.1935, allocations: 24.89 kB / 337.4 MB, free: 4.891 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002593/0.1938, allocations: 145.9 kB / 337.5 MB, free: 4.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003103/0.1941, allocations: 185 kB / 337.7 MB, free: 4.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000408/0.1945, allocations: 0.6533 MB / 338.4 MB, free: 3.902 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004107/0.1949, allocations: 111.2 kB / 338.5 MB, free: 3.793 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.794e-05/0.195, allocations: 36 kB / 338.5 MB, free: 3.758 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.0002435/0.1952, allocations: 170.1 kB / 338.7 MB, free: 3.582 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001698/0.1954, allocations: 235.7 kB / 338.9 MB, free: 3.352 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001006/0.1964, allocations: 0.8085 MB / 339.7 MB, free: 2.539 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.1964, allocations: 4 kB / 339.7 MB, free: 2.535 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.1964, allocations: 0 / 339.7 MB, free: 2.535 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.1964, allocations: 3.938 kB / 339.7 MB, free: 2.531 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001341/0.1978, allocations: 1.585 MB / 341.3 MB, free: 1.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.699e-05/0.1978, allocations: 8 kB / 341.3 MB, free: 1.262 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001443/0.1979, allocations: 72.7 kB / 341.4 MB, free: 1.191 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003239/0.1983, allocations: 372.4 kB / 341.8 MB, free: 0.8281 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000214/0.1985, allocations: 137.1 kB / 341.9 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.44e-05/0.1985, allocations: 8 kB / 341.9 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003621/0.1989, allocations: 0.6277 MB / 342.5 MB, free: 44 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1989, allocations: 4.031 kB / 342.5 MB, free: 40 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005103/0.1994, allocations: 0.5971 MB / 343.1 MB, free: 15.42 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001604/0.1995, allocations: 10.25 kB / 343.1 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002967/0.1998, allocations: 19.92 kB / 343.2 MB, free: 15.39 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.089e-05/0.1999, allocations: 47.92 kB / 343.2 MB, free: 15.34 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.086e-05/0.1999, allocations: 15.98 kB / 343.2 MB, free: 15.33 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007689/0.2007, allocations: 1.329 MB / 344.5 MB, free: 14.16 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2007, allocations: 4 kB / 344.5 MB, free: 14.16 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007198/0.2014, allocations: 0.589 MB / 345.1 MB, free: 13.57 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.0008408/0.2023, allocations: 0.9144 MB / 346 MB, free: 12.79 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005245/0.2028, allocations: 498.7 kB / 346.5 MB, free: 12.29 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.178e-05/0.2028, allocations: 44.69 kB / 346.6 MB, free: 12.24 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002651/0.2031, allocations: 272.2 kB / 346.8 MB, free: 11.95 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001259/0.2044, allocations: 0.8337 MB / 347.7 MB, free: 11.13 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005957/0.2103, allocations: 3.795 MB / 351.5 MB, free: 7.277 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002149/0.2105, allocations: 365.8 kB / 351.8 MB, free: 6.898 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005799/0.2111, allocations: 386.9 kB / 352.2 MB, free: 6.516 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005769/0.2117, allocations: 0.5538 MB / 352.8 MB, free: 5.953 MB / 330.7 MB Notification: Performance of SimCode: time 8.82e-07/0.2117, allocations: 0 / 352.8 MB, free: 5.953 MB / 330.7 MB Notification: Performance of Templates: time 0.03941/0.2511, allocations: 38.49 MB / 391.3 MB, free: 15.95 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1975157223641872]