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.001046/0.001046, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001894/0.001894, allocations: 161 kB / 24.56 MB, free: 16 kB / 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.9937/0.9937, allocations: 177.1 MB / 205 MB, free: 5.586 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.542e-06/1.542e-06, allocations: 0 / 273 MB, free: 1.52 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.56e-05/2.714e-05, allocations: 6.25 kB / 273 MB, free: 1.512 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.02208/0.02211, allocations: 13.39 MB / 286.4 MB, free: 4.062 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1455/0.1676, allocations: 19.38 MB / 305.7 MB, free: 11 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00255/0.1702, allocations: 191.4 kB / 305.9 MB, free: 10.86 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002818/0.173, allocations: 1.04 MB / 307 MB, free: 10.36 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007935/0.1809, allocations: 2.384 MB / 309.3 MB, free: 8.879 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004986/0.1859, allocations: 1.432 MB / 310.8 MB, free: 7.957 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008484/0.1944, allocations: 6.759 MB / 317.5 MB, free: 4.703 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000719/0.1951, allocations: 246.2 kB / 317.8 MB, free: 4.535 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003027/0.1981, allocations: 1.506 MB / 319.3 MB, free: 3.195 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001308/0.1994, allocations: 0.7551 MB / 320 MB, free: 2.438 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003622/0.1998, allocations: 68 kB / 320.1 MB, free: 2.371 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004864/0.2047, allocations: 1.213 MB / 321.3 MB, free: 1.156 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003212/0.205, allocations: 305.7 kB / 321.6 MB, free: 0.8555 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001368/0.2063, allocations: 0.7009 MB / 322.3 MB, free: 156 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006916/0.2133, allocations: 2.708 MB / 325 MB, free: 13.43 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.2133, allocations: 0 / 325 MB, free: 13.43 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2133, allocations: 0 / 325 MB, free: 13.43 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001355/0.2134, allocations: 4 kB / 325 MB, free: 13.43 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.005672/0.2191, allocations: 3.731 MB / 328.8 MB, free: 9.641 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.766e-05/0.2191, allocations: 15.97 kB / 328.8 MB, free: 9.625 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006474/0.2198, allocations: 425.6 kB / 329.2 MB, free: 9.207 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003986/0.2238, allocations: 2.697 MB / 331.9 MB, free: 6.41 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.402e-05/0.2238, allocations: 37 kB / 331.9 MB, free: 6.371 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001351/0.2239, allocations: 47.95 kB / 332 MB, free: 6.324 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001111/0.2251, allocations: 0.5163 MB / 332.5 MB, free: 5.801 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.2251, allocations: 0 / 332.5 MB, free: 5.801 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.14e-05/0.2251, allocations: 27.92 kB / 332.5 MB, free: 5.773 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.033e-05/0.2252, allocations: 19.98 kB / 332.5 MB, free: 5.754 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008829/0.2261, allocations: 470.3 kB / 333 MB, free: 5.297 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00487/0.2309, allocations: 2.664 MB / 335.7 MB, free: 2.586 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006916/0.2316, allocations: 353.8 kB / 336 MB, free: 2.23 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006648/0.2323, allocations: 430.9 kB / 336.4 MB, free: 1.805 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02472/0.257, allocations: 15.21 MB / 351.6 MB, free: 2.207 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005501/0.2576, allocations: 271.7 kB / 351.9 MB, free: 1.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 4.058e-06/0.2576, allocations: 0 / 351.9 MB, free: 1.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.002612/0.2602, allocations: 1.061 MB / 353 MB, free: 0.8516 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.055e-05/0.2602, allocations: 67.39 kB / 353 MB, free: 0.7734 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003861/0.2641, allocations: 2.991 MB / 356 MB, free: 13.74 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.35e-05/0.2641, allocations: 37.7 kB / 356.1 MB, free: 13.7 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001488/0.2656, allocations: 1.562 MB / 357.6 MB, free: 12.13 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001663/0.2658, allocations: 170.6 kB / 357.8 MB, free: 11.96 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002917/0.2661, allocations: 232 kB / 358 MB, free: 11.73 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.2663, allocations: 0.5121 MB / 358.5 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003061/0.2666, allocations: 125.9 kB / 358.7 MB, free: 11.08 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005873/0.2672, allocations: 0.634 MB / 359.3 MB, free: 10.22 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009615/0.2681, allocations: 0.8418 MB / 360.1 MB, free: 9.145 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.128e-05/0.2681, allocations: 7.938 kB / 360.1 MB, free: 9.137 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001872/0.27, allocations: 1.105 MB / 361.2 MB, free: 8.02 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.503e-05/0.27, allocations: 8 kB / 361.2 MB, free: 8.012 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001194/0.2702, allocations: 80 kB / 361.3 MB, free: 7.934 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005951/0.2707, allocations: 260.2 kB / 361.6 MB, free: 7.676 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005098/0.2713, allocations: 167.7 kB / 361.7 MB, free: 7.512 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009774/0.2722, allocations: 1.092 MB / 362.8 MB, free: 6.391 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009341/0.2732, allocations: 103.4 kB / 362.9 MB, free: 6.289 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001141/0.2733, allocations: 64 kB / 363 MB, free: 6.227 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.0004451/0.2737, allocations: 212.9 kB / 363.2 MB, free: 6.008 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005708/0.2743, allocations: 385.7 kB / 363.6 MB, free: 5.629 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002196/0.2765, allocations: 1.087 MB / 364.7 MB, free: 4.531 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.989e-06/0.2765, allocations: 4 kB / 364.7 MB, free: 4.527 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.2765, allocations: 0 / 364.7 MB, free: 4.527 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.2765, allocations: 4 kB / 364.7 MB, free: 4.523 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00341/0.2799, allocations: 2.147 MB / 366.8 MB, free: 2.301 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.626e-05/0.28, allocations: 72.12 kB / 366.9 MB, free: 2.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001638/0.2802, allocations: 51.91 kB / 366.9 MB, free: 2.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003184/0.2805, allocations: 243.6 kB / 367.2 MB, free: 1.938 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.474e-05/0.2805, allocations: 35.94 kB / 367.2 MB, free: 1.902 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007441/0.2813, allocations: 1.058 MB / 368.3 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.192e-06/0.2813, allocations: 4.875 kB / 368.3 MB, free: 0.8086 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001212/0.2825, allocations: 1.039 MB / 369.3 MB, free: 15.72 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006115/0.2831, allocations: 427.3 kB / 369.7 MB, free: 15.3 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001942/0.2833, allocations: 15.98 kB / 369.8 MB, free: 15.29 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003514/0.2836, allocations: 19.98 kB / 369.8 MB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.2838, allocations: 63.86 kB / 369.8 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.353e-05/0.2838, allocations: 40 kB / 369.9 MB, free: 15.16 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001603/0.2854, allocations: 1.639 MB / 371.5 MB, free: 13.52 MB / 330.7 MB Notification: Performance of sort global known variables: time 2e-07/0.2854, allocations: 0 / 371.5 MB, free: 13.52 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001398/0.2868, allocations: 0.5696 MB / 372.1 MB, free: 12.95 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.001395/0.2882, allocations: 0.836 MB / 372.9 MB, free: 12.11 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001287/0.2895, allocations: 0.6542 MB / 373.6 MB, free: 11.42 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.2895, allocations: 1.562 kB / 373.6 MB, free: 11.42 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005641/0.2901, allocations: 406.2 kB / 374 MB, free: 10.99 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002313/0.2924, allocations: 0.6303 MB / 374.6 MB, free: 10.36 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00494/0.2973, allocations: 3.77 MB / 378.4 MB, free: 6.512 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003003/0.2976, allocations: 365.8 kB / 378.7 MB, free: 6.133 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001026/0.2986, allocations: 386.9 kB / 379.1 MB, free: 5.75 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002179/0.2989, allocations: 164.5 kB / 379.3 MB, free: 5.59 MB / 330.7 MB Notification: Performance of SimCode: time 1.613e-06/0.2989, allocations: 4 kB / 379.3 MB, free: 5.586 MB / 330.7 MB Notification: Performance of Templates: time 0.05081/0.3497, allocations: 32.62 MB / 411.9 MB, free: 5.453 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.8265689187683165]