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.001024/0.001024, allocations: 81.91 kB / 21.42 MB, free: 3.07 MB / 18.57 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.001178/0.001178, allocations: 169.2 kB / 24.82 MB, free: 9.273 MB / 18.57 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.9536/0.9536, allocations: 177 MB / 205.1 MB, free: 5.488 MB / 186.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.453e-06/1.453e-06, allocations: 0 / 273.3 MB, free: 1.254 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.835e-05/1.98e-05, allocations: 2.312 kB / 273.3 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.009108/0.009128, allocations: 13.08 MB / 286.4 MB, free: 4.117 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1247/0.1339, allocations: 19.02 MB / 305.4 MB, free: 10.84 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002136/0.136, allocations: 191.8 kB / 305.6 MB, free: 10.71 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002707/0.1387, allocations: 1.03 MB / 306.6 MB, free: 10.23 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006722/0.1454, allocations: 2.387 MB / 309 MB, free: 8.926 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004098/0.1495, allocations: 1.436 MB / 310.4 MB, free: 8.047 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006123/0.1557, allocations: 6.761 MB / 317.2 MB, free: 4.793 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004953/0.1562, allocations: 247.9 kB / 317.5 MB, free: 4.625 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002458/0.1586, allocations: 2.996 MB / 320.4 MB, free: 1.73 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006948/0.1593, allocations: 0.7824 MB / 321.2 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001526/0.1595, allocations: 68 kB / 321.3 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002753/0.1622, allocations: 1.21 MB / 322.5 MB, free: 15.67 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001865/0.1624, allocations: 321.7 kB / 322.8 MB, free: 15.35 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006511/0.1631, allocations: 0.7009 MB / 323.5 MB, free: 14.65 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002938/0.166, allocations: 2.716 MB / 326.2 MB, free: 11.92 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.166, allocations: 0 / 326.2 MB, free: 11.92 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.11e-07/0.166, allocations: 0 / 326.2 MB, free: 11.92 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.976e-05/0.1661, allocations: 3.938 kB / 326.2 MB, free: 11.92 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.003541/0.1696, allocations: 3.789 MB / 330 MB, free: 8.07 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.1697, allocations: 11.98 kB / 330 MB, free: 8.059 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003651/0.17, allocations: 429.6 kB / 330.5 MB, free: 7.637 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00222/0.1722, allocations: 2.611 MB / 333.1 MB, free: 4.926 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.44e-05/0.1723, allocations: 33 kB / 333.1 MB, free: 4.891 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.205e-05/0.1723, allocations: 55.88 kB / 333.2 MB, free: 4.836 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005596/0.1729, allocations: 480.7 kB / 333.6 MB, free: 4.355 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.1729, allocations: 0 / 333.6 MB, free: 4.355 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.982e-05/0.173, allocations: 19.94 kB / 333.6 MB, free: 4.336 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.513e-05/0.173, allocations: 19.98 kB / 333.7 MB, free: 4.316 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004064/0.1734, allocations: 407.7 kB / 334.1 MB, free: 3.922 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002423/0.1758, allocations: 2.176 MB / 336.2 MB, free: 1.707 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000638/0.1764, allocations: 313.7 kB / 336.5 MB, free: 1.391 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003058/0.1767, allocations: 393.9 kB / 336.9 MB, free: 1 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01752/0.1943, allocations: 15.26 MB / 352.2 MB, free: 1.391 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003565/0.1946, allocations: 251.8 kB / 352.4 MB, free: 1.133 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 2.786e-06/0.1946, allocations: 0 / 352.4 MB, free: 1.133 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.001657/0.1963, allocations: 1.006 MB / 353.4 MB, free: 116 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.863e-05/0.1963, allocations: 71.33 kB / 353.5 MB, free: 32 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00255/0.1989, allocations: 2.961 MB / 356.5 MB, free: 13.03 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.093e-05/0.1989, allocations: 33.7 kB / 356.5 MB, free: 12.99 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001423/0.2003, allocations: 1.605 MB / 358.1 MB, free: 11.38 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001291/0.2005, allocations: 178.5 kB / 358.3 MB, free: 11.2 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002332/0.2007, allocations: 240 kB / 358.5 MB, free: 10.96 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.2008, allocations: 0.5081 MB / 359 MB, free: 10.44 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001715/0.201, allocations: 105.9 kB / 359.1 MB, free: 10.34 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004229/0.2014, allocations: 0.605 MB / 359.7 MB, free: 9.496 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000688/0.2021, allocations: 0.8027 MB / 360.5 MB, free: 8.461 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-06/0.2021, allocations: 3.984 kB / 360.5 MB, free: 8.457 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00125/0.2034, allocations: 1.047 MB / 361.6 MB, free: 7.398 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.246e-05/0.2034, allocations: 12.06 kB / 361.6 MB, free: 7.387 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.607e-05/0.2035, allocations: 83.94 kB / 361.7 MB, free: 7.305 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004018/0.2039, allocations: 255.6 kB / 361.9 MB, free: 7.051 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000385/0.2043, allocations: 167.7 kB / 362.1 MB, free: 6.887 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007571/0.205, allocations: 1.065 MB / 363.2 MB, free: 5.789 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006745/0.2057, allocations: 106.6 kB / 363.3 MB, free: 5.688 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.589e-05/0.2058, allocations: 56 kB / 363.3 MB, free: 5.633 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.0003476/0.2061, allocations: 216.3 kB / 363.5 MB, free: 5.41 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003089/0.2064, allocations: 397.6 kB / 363.9 MB, free: 5.02 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001877/0.2083, allocations: 1.038 MB / 365 MB, free: 3.973 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.2083, allocations: 4 kB / 365 MB, free: 3.969 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.914e-06/0.2083, allocations: 0 / 365 MB, free: 3.969 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.2083, allocations: 7.984 kB / 365 MB, free: 3.961 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002584/0.2109, allocations: 2.189 MB / 367.2 MB, free: 1.691 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.408e-05/0.211, allocations: 68 kB / 367.2 MB, free: 1.625 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001723/0.2112, allocations: 55.89 kB / 367.3 MB, free: 1.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003511/0.2115, allocations: 247.1 kB / 367.5 MB, free: 1.328 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.465e-05/0.2116, allocations: 28 kB / 367.5 MB, free: 1.301 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000699/0.2123, allocations: 1.054 MB / 368.6 MB, free: 220 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.2123, allocations: 4.031 kB / 368.6 MB, free: 216 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001022/0.2133, allocations: 0.992 MB / 369.6 MB, free: 15.17 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000529/0.2138, allocations: 431.2 kB / 370 MB, free: 14.75 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002057/0.214, allocations: 8 kB / 370 MB, free: 14.74 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004691/0.2145, allocations: 19.98 kB / 370 MB, free: 14.72 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001217/0.2146, allocations: 67.86 kB / 370.1 MB, free: 14.65 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.492e-05/0.2147, allocations: 36 kB / 370.1 MB, free: 14.62 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001399/0.2161, allocations: 1.541 MB / 371.7 MB, free: 13.07 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.2161, allocations: 0 / 371.7 MB, free: 13.07 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001414/0.2175, allocations: 0.5735 MB / 372.3 MB, free: 12.5 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.004112/0.2216, allocations: 0.924 MB / 373.2 MB, free: 11.57 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000835/0.2224, allocations: 0.6162 MB / 373.8 MB, free: 10.93 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.2224, allocations: 0 / 373.8 MB, free: 10.93 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004289/0.2229, allocations: 398.2 kB / 374.2 MB, free: 10.51 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004738/0.2276, allocations: 0.6208 MB / 374.8 MB, free: 9.887 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007384/0.235, allocations: 3.75 MB / 378.6 MB, free: 6.055 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002723/0.2352, allocations: 365.8 kB / 378.9 MB, free: 5.676 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.004075/0.2393, allocations: 390.9 kB / 379.3 MB, free: 5.289 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008204/0.2401, allocations: 0.6229 MB / 379.9 MB, free: 4.664 MB / 330.7 MB Notification: Performance of SimCode: time 1.123e-06/0.2401, allocations: 0 / 379.9 MB, free: 4.664 MB / 330.7 MB Notification: Performance of Templates: time 0.06907/0.3092, allocations: 37.51 MB / 417.4 MB, free: 15.64 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 -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.422356578055769]