Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001353/0.001353, allocations: 112.2 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00146/0.00146, allocations: 189.6 kB / 23.72 MB, free: 4.68 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002113/0.002113, allocations: 51.91 kB / 370.9 MB, free: 9.359 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2367/0.2389, allocations: 52.18 MB / 423.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01463/0.2535, allocations: 14.09 MB / 437.2 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02584/0.2793, allocations: 20.33 MB / 457.5 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00189/0.2812, allocations: 189.8 kB / 457.7 MB, free: 11.95 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002653/0.2839, allocations: 1.127 MB / 458.8 MB, free: 10.82 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006479/0.2903, allocations: 2.324 MB / 461.2 MB, free: 8.477 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004141/0.2945, allocations: 1.441 MB / 462.6 MB, free: 7.031 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01033/0.3048, allocations: 6.392 MB / 469 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005822/0.3054, allocations: 252.9 kB / 469.2 MB, free: 348 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001549/0.307, allocations: 1.112 MB / 470.4 MB, free: 15.22 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0012/0.3082, allocations: 1.052 MB / 471.4 MB, free: 14.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001813/0.3083, allocations: 68 kB / 471.5 MB, free: 14.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003891/0.3122, allocations: 1.471 MB / 472.9 MB, free: 12.62 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003356/0.3126, allocations: 317.7 kB / 473.3 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001292/0.3139, allocations: 1.304 MB / 474.6 MB, free: 11 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004687/0.3185, allocations: 3.648 MB / 478.2 MB, free: 7.336 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3185, allocations: 0 / 478.2 MB, free: 7.336 MB / 382.1 MB Notification: Performance of FrontEnd: time 6.181e-06/0.3185, allocations: 4 kB / 478.2 MB, free: 7.332 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.825e-05/0.3186, allocations: 0 / 478.2 MB, free: 7.332 MB / 382.1 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.005456/0.324, allocations: 3.543 MB / 481.8 MB, free: 3.734 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.3241, allocations: 12.03 kB / 481.8 MB, free: 3.723 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004221/0.3245, allocations: 389.5 kB / 482.1 MB, free: 3.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003729/0.3282, allocations: 2.362 MB / 484.5 MB, free: 0.8789 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.436e-05/0.3283, allocations: 33 kB / 484.5 MB, free: 0.8438 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001342/0.3284, allocations: 59.89 kB / 484.6 MB, free: 0.7852 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001421/0.3298, allocations: 0.7031 MB / 485.3 MB, free: 76 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.3298, allocations: 0 / 485.3 MB, free: 76 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001024/0.3299, allocations: 16 kB / 485.3 MB, free: 60 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.372e-05/0.33, allocations: 19.98 kB / 485.3 MB, free: 40 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001788/0.3317, allocations: 0.793 MB / 486.1 MB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005418/0.3372, allocations: 2.828 MB / 489 MB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001351/0.3385, allocations: 0.5635 MB / 489.5 MB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001135/0.3396, allocations: 0.5811 MB / 490.1 MB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02701/0.3666, allocations: 13.72 MB / 0.492 GB, free: 13.1 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008536/0.3675, allocations: 369.5 kB / 0.4924 GB, free: 12.73 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.604e-06/0.3675, allocations: 0 / 0.4924 GB, free: 12.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.00357/0.3711, allocations: 1.314 MB / 0.4937 GB, free: 11.4 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.23e-05/0.3711, allocations: 63.33 kB / 0.4937 GB, free: 11.33 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003871/0.375, allocations: 2.803 MB / 0.4965 GB, free: 8.504 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.86e-05/0.3751, allocations: 37.7 kB / 0.4965 GB, free: 8.461 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001372/0.3764, allocations: 1.396 MB / 0.4978 GB, free: 7.059 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001682/0.3766, allocations: 170.6 kB / 0.498 GB, free: 6.891 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003279/0.3769, allocations: 230.3 kB / 0.4982 GB, free: 6.66 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002049/0.3771, allocations: 330 kB / 0.4985 GB, free: 6.332 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006419/0.3778, allocations: 241.8 kB / 0.4988 GB, free: 6.094 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009315/0.3787, allocations: 0.5927 MB / 0.4994 GB, free: 5.332 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001595/0.3803, allocations: 0.8763 MB / 0.5002 GB, free: 4.285 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.3803, allocations: 7.938 kB / 0.5002 GB, free: 4.277 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002418/0.3827, allocations: 1.289 MB / 0.5015 GB, free: 2.977 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.3828, allocations: 15.94 kB / 0.5015 GB, free: 2.961 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001186/0.3829, allocations: 80 kB / 0.5016 GB, free: 2.883 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000584/0.3835, allocations: 280.6 kB / 0.5018 GB, free: 2.609 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006334/0.3841, allocations: 171.7 kB / 0.502 GB, free: 2.441 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001101/0.3852, allocations: 0.8764 MB / 0.5029 GB, free: 1.539 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009323/0.3861, allocations: 115.2 kB / 0.503 GB, free: 1.426 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001125/0.3862, allocations: 64 kB / 0.503 GB, free: 1.363 MB / 414.1 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.0007223/0.387, allocations: 425.5 kB / 0.5034 GB, free: 0.9375 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004414/0.3874, allocations: 381.6 kB / 0.5038 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002987/0.3904, allocations: 1.255 MB / 0.505 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.3904, allocations: 8 kB / 0.505 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.3904, allocations: 4 kB / 0.505 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.3904, allocations: 11.86 kB / 0.505 GB, free: 15.27 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003895/0.3943, allocations: 2.153 MB / 0.5071 GB, free: 13.04 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001058/0.3944, allocations: 71.94 kB / 0.5072 GB, free: 12.97 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003282/0.3947, allocations: 59.94 kB / 0.5073 GB, free: 12.91 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005032/0.3953, allocations: 260.9 kB / 0.5075 GB, free: 12.66 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.007e-05/0.3953, allocations: 32 kB / 0.5076 GB, free: 12.62 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001005/0.3963, allocations: 0.8585 MB / 0.5084 GB, free: 11.74 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.788e-06/0.3963, allocations: 4.031 kB / 0.5084 GB, free: 11.74 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002071/0.3984, allocations: 1.135 MB / 0.5095 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007423/0.3991, allocations: 415.2 kB / 0.5099 GB, free: 10.16 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002965/0.3994, allocations: 11.94 kB / 0.5099 GB, free: 10.14 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006813/0.4001, allocations: 35.97 kB / 0.5099 GB, free: 10.11 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000158/0.4003, allocations: 63.86 kB / 0.51 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001106/0.4004, allocations: 40 kB / 0.51 GB, free: 10.01 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002497/0.4029, allocations: 1.824 MB / 0.5118 GB, free: 8.18 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4029, allocations: 0 / 0.5118 GB, free: 8.18 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001424/0.4043, allocations: 0.5696 MB / 0.5124 GB, free: 7.609 MB / 430.1 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.001195/0.4055, allocations: 0.772 MB / 0.5131 GB, free: 6.828 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001909/0.4074, allocations: 0.8186 MB / 0.5139 GB, free: 5.984 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.4074, allocations: 0 / 0.5139 GB, free: 5.984 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009684/0.4084, allocations: 480.3 kB / 0.5144 GB, free: 5.492 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002739/0.4111, allocations: 0.5915 MB / 0.515 GB, free: 4.895 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006447/0.4176, allocations: 3.979 MB / 0.5189 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001315/0.4189, allocations: 1.604 MB / 0.5204 GB, free: 15.23 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001142/0.42, allocations: 387 kB / 0.5208 GB, free: 14.85 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002525/0.4203, allocations: 159.4 kB / 0.5209 GB, free: 14.7 MB / 446.1 MB Notification: Performance of SimCode: time 7.61e-07/0.4203, allocations: 0 / 0.5209 GB, free: 14.7 MB / 446.1 MB Notification: Performance of Templates: time 0.2377/0.6579, allocations: 34.07 MB / 0.5542 GB, free: 102.2 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.846188759431243]