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.001454/0.001454, allocations: 85.91 kB / 22.22 MB, free: 2.285 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.001324/0.001324, allocations: 167.4 kB / 25.61 MB, free: 8.578 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.9332/0.9332, allocations: 177 MB / 205.9 MB, free: 4.449 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.233e-06/1.233e-06, allocations: 0 / 274.1 MB, free: 4.305 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.712e-05/1.835e-05, allocations: 3.281 kB / 274.1 MB, free: 4.301 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.008782/0.0088, allocations: 13.07 MB / 287.2 MB, free: 7.191 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01729/0.02609, allocations: 19.02 MB / 306.2 MB, free: 4.117 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002234/0.02832, allocations: 193.8 kB / 306.4 MB, free: 3.926 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002458/0.03078, allocations: 1.04 MB / 307.4 MB, free: 2.875 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006622/0.0374, allocations: 2.386 MB / 309.8 MB, free: 484 kB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003846/0.04125, allocations: 1.433 MB / 311.2 MB, free: 15.03 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.007906/0.04915, allocations: 6.765 MB / 318 MB, free: 8.246 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004783/0.04963, allocations: 240.9 kB / 318.2 MB, free: 7.977 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002671/0.0523, allocations: 2.998 MB / 321.2 MB, free: 4.973 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007237/0.05303, allocations: 0.7863 MB / 322 MB, free: 4.184 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000112/0.05314, allocations: 68 kB / 322.1 MB, free: 4.117 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002433/0.05557, allocations: 1.202 MB / 323.3 MB, free: 2.914 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001928/0.05577, allocations: 317.7 kB / 323.6 MB, free: 2.602 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008631/0.05663, allocations: 0.7048 MB / 324.3 MB, free: 1.895 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002573/0.0592, allocations: 2.724 MB / 327 MB, free: 15.16 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.05921, allocations: 0 / 327 MB, free: 15.16 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.05921, allocations: 0 / 327 MB, free: 15.16 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.884e-05/0.05924, allocations: 4 kB / 327 MB, free: 15.15 MB / 314.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.003009/0.06224, allocations: 3.775 MB / 330.8 MB, free: 11.32 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.06228, allocations: 8.031 kB / 330.8 MB, free: 11.31 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003354/0.06261, allocations: 429.5 kB / 331.2 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002377/0.06499, allocations: 2.623 MB / 333.9 MB, free: 8.164 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.288e-05/0.06501, allocations: 29 kB / 333.9 MB, free: 8.133 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.273e-05/0.0651, allocations: 59.88 kB / 333.9 MB, free: 8.074 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005412/0.06564, allocations: 476.7 kB / 334.4 MB, free: 7.598 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.06565, allocations: 4 kB / 334.4 MB, free: 7.594 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.282e-05/0.06569, allocations: 16 kB / 334.4 MB, free: 7.578 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.61e-05/0.06571, allocations: 19.98 kB / 334.4 MB, free: 7.559 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004126/0.06612, allocations: 407.7 kB / 334.8 MB, free: 7.168 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002484/0.06861, allocations: 2.171 MB / 337 MB, free: 4.961 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003747/0.06898, allocations: 325.6 kB / 337.3 MB, free: 4.633 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003403/0.06932, allocations: 386 kB / 337.7 MB, free: 4.254 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1291/0.1984, allocations: 15.17 MB / 352.9 MB, free: 56.88 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002645/0.1987, allocations: 256.4 kB / 353.1 MB, free: 56.82 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 1.873e-06/0.1987, allocations: 0 / 353.1 MB, free: 56.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.001217/0.1999, allocations: 1.01 MB / 354.1 MB, free: 56.76 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.363e-05/0.1999, allocations: 67.97 kB / 354.2 MB, free: 56.7 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001631/0.2016, allocations: 2.958 MB / 357.2 MB, free: 56.14 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.173e-05/0.2016, allocations: 31.77 kB / 357.2 MB, free: 56.11 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007044/0.2023, allocations: 1.61 MB / 358.8 MB, free: 55.02 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.786e-05/0.2024, allocations: 177.1 kB / 359 MB, free: 54.87 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001481/0.2025, allocations: 235.5 kB / 359.2 MB, free: 54.67 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.718e-05/0.2026, allocations: 0.5084 MB / 359.7 MB, free: 54.18 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001134/0.2027, allocations: 105.4 kB / 359.8 MB, free: 54.09 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002118/0.2029, allocations: 0.6157 MB / 360.4 MB, free: 53.31 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004503/0.2034, allocations: 0.7988 MB / 361.2 MB, free: 52.39 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.032e-06/0.2034, allocations: 4 kB / 361.2 MB, free: 52.39 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0009027/0.2043, allocations: 1.051 MB / 362.3 MB, free: 51.47 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.2043, allocations: 8 kB / 362.3 MB, free: 51.46 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.032e-05/0.2043, allocations: 80 kB / 362.4 MB, free: 51.39 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000289/0.2046, allocations: 257 kB / 362.6 MB, free: 51.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002804/0.2049, allocations: 170.7 kB / 362.8 MB, free: 51.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004724/0.2054, allocations: 1.066 MB / 363.9 MB, free: 49.98 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000444/0.2058, allocations: 101.9 kB / 364 MB, free: 49.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.702e-05/0.2059, allocations: 60 kB / 364 MB, free: 49.82 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.0002646/0.2062, allocations: 219.9 kB / 364.2 MB, free: 49.62 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001807/0.2063, allocations: 393.6 kB / 364.6 MB, free: 49.23 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001135/0.2075, allocations: 1.037 MB / 365.7 MB, free: 48.27 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/0.2075, allocations: 4 kB / 365.7 MB, free: 48.27 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.2075, allocations: 0 / 365.7 MB, free: 48.27 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.2075, allocations: 3.938 kB / 365.7 MB, free: 48.26 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001715/0.2092, allocations: 2.186 MB / 367.8 MB, free: 46.39 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.651e-05/0.2092, allocations: 78.47 kB / 367.9 MB, free: 46.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001306/0.2094, allocations: 55.61 kB / 368 MB, free: 46.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002234/0.2096, allocations: 238.2 kB / 368.2 MB, free: 46.04 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.795e-05/0.2096, allocations: 36 kB / 368.2 MB, free: 46 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003927/0.21, allocations: 1.031 MB / 369.3 MB, free: 44.95 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.21, allocations: 11.27 kB / 369.3 MB, free: 44.94 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006008/0.2106, allocations: 1.004 MB / 370.3 MB, free: 43.9 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003276/0.2109, allocations: 423.3 kB / 370.7 MB, free: 43.49 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001598/0.2111, allocations: 15.98 kB / 370.7 MB, free: 43.47 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003211/0.2114, allocations: 20.8 kB / 370.7 MB, free: 43.45 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.368e-05/0.2115, allocations: 63.92 kB / 370.8 MB, free: 43.39 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.515e-05/0.2115, allocations: 32 kB / 370.8 MB, free: 43.36 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007813/0.2123, allocations: 1.541 MB / 372.4 MB, free: 41.99 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2123, allocations: 0 / 372.4 MB, free: 41.99 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008324/0.2132, allocations: 0.5735 MB / 372.9 MB, free: 41.41 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.0008291/0.214, allocations: 0.9296 MB / 373.9 MB, free: 40.64 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005855/0.2146, allocations: 0.6085 MB / 374.5 MB, free: 40.05 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.2146, allocations: 0 / 374.5 MB, free: 40.05 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002869/0.2149, allocations: 390.8 kB / 374.9 MB, free: 39.65 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001249/0.2161, allocations: 0.6247 MB / 375.5 MB, free: 39.03 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002789/0.2189, allocations: 3.763 MB / 379.3 MB, free: 35.21 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001721/0.2191, allocations: 369.7 kB / 379.6 MB, free: 34.83 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005474/0.2196, allocations: 387.8 kB / 380 MB, free: 34.45 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000521/0.2201, allocations: 0.6268 MB / 380.6 MB, free: 33.82 MB / 314.7 MB Notification: Performance of SimCode: time 1.052e-06/0.2201, allocations: 4 kB / 380.6 MB, free: 33.82 MB / 314.7 MB Notification: Performance of Templates: time 0.035/0.2551, allocations: 37.7 MB / 418.3 MB, free: 12.71 MB / 330.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.4842339642345905]