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.00269/0.00269, allocations: 95.86 kB / 20.96 MB, free: 3.465 MB / 18.57 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.002974/0.002974, allocations: 149.1 kB / 24.26 MB, free: 172 kB / 18.57 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.717/1.717, allocations: 173.3 MB / 200.8 MB, free: 9.34 MB / 186.7 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 2.034e-06/2.034e-06, allocations: 0 / 267.3 MB, free: 6.777 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.99e-05/3.193e-05, allocations: 2.312 kB / 267.3 MB, free: 6.773 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01681/0.01684, allocations: 13.32 MB / 280.6 MB, free: 9.391 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1391/0.156, allocations: 19.29 MB / 299.9 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001976/0.1579, allocations: 192.1 kB / 300.1 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002561/0.1605, allocations: 1.046 MB / 301.2 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006427/0.1669, allocations: 2.374 MB / 303.5 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004972/0.1719, allocations: 1.434 MB / 305 MB, free: 12.24 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009043/0.1809, allocations: 6.558 MB / 311.5 MB, free: 9.719 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000524/0.1815, allocations: 244.8 kB / 311.8 MB, free: 9.559 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001749/0.1832, allocations: 1.507 MB / 313.3 MB, free: 8.82 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00091/0.1841, allocations: 0.7509 MB / 314 MB, free: 8.531 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001899/0.1843, allocations: 70.12 kB / 314.1 MB, free: 8.531 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003377/0.1877, allocations: 1.207 MB / 315.3 MB, free: 8.191 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002202/0.1879, allocations: 309.7 kB / 315.6 MB, free: 7.961 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008286/0.1887, allocations: 0.6988 MB / 316.3 MB, free: 7.355 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003468/0.1922, allocations: 3.634 MB / 319.9 MB, free: 4.016 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.1922, allocations: 4 kB / 319.9 MB, free: 4.012 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1922, allocations: 0 / 319.9 MB, free: 4.012 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.679e-05/0.1922, allocations: 3.938 kB / 319.9 MB, free: 4.008 MB / 266.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.004268/0.1965, allocations: 3.881 MB / 323.8 MB, free: 72 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.1966, allocations: 8.922 kB / 323.8 MB, free: 64 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005499/0.1971, allocations: 434.4 kB / 324.2 MB, free: 15.63 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004446/0.2015, allocations: 2.699 MB / 326.9 MB, free: 12.92 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.594e-05/0.2016, allocations: 36.98 kB / 327 MB, free: 12.88 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001357/0.2017, allocations: 51.95 kB / 327 MB, free: 12.83 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001326/0.2031, allocations: 0.6055 MB / 327.6 MB, free: 12.22 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.2031, allocations: 4 kB / 327.6 MB, free: 12.21 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.087e-05/0.2031, allocations: 20 kB / 327.7 MB, free: 12.2 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.493e-05/0.2032, allocations: 23.73 kB / 327.7 MB, free: 12.18 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00146/0.2046, allocations: 0.6835 MB / 328.4 MB, free: 11.49 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00632/0.2109, allocations: 3.141 MB / 331.5 MB, free: 8.34 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001105/0.2121, allocations: 475 kB / 332 MB, free: 7.867 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009815/0.213, allocations: 0.5096 MB / 332.5 MB, free: 7.359 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03098/0.244, allocations: 15.34 MB / 347.8 MB, free: 7.707 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007873/0.2448, allocations: 351.7 kB / 348.2 MB, free: 7.344 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 2.545e-06/0.2448, allocations: 0 / 348.2 MB, free: 7.344 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.003342/0.2482, allocations: 1.278 MB / 349.4 MB, free: 6.059 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.991e-05/0.2482, allocations: 59.41 kB / 349.5 MB, free: 5.988 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005516/0.2537, allocations: 3.748 MB / 353.2 MB, free: 2.199 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.887e-05/0.2538, allocations: 37.7 kB / 353.3 MB, free: 2.156 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001924/0.2557, allocations: 1.686 MB / 355 MB, free: 472 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002266/0.256, allocations: 184 kB / 355.2 MB, free: 292 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003835/0.2563, allocations: 248 kB / 355.4 MB, free: 36 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0003352/0.2567, allocations: 0.5277 MB / 355.9 MB, free: 15.5 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005633/0.2572, allocations: 213.9 kB / 356.1 MB, free: 15.29 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001048/0.2583, allocations: 0.733 MB / 356.9 MB, free: 14.32 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001685/0.26, allocations: 1.018 MB / 357.9 MB, free: 13.07 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.057e-06/0.26, allocations: 4 kB / 357.9 MB, free: 13.07 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002746/0.2627, allocations: 1.295 MB / 359.2 MB, free: 11.77 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.322e-05/0.2628, allocations: 12 kB / 359.2 MB, free: 11.76 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001263/0.2629, allocations: 80 kB / 359.3 MB, free: 11.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006384/0.2635, allocations: 278.8 kB / 359.5 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006138/0.2641, allocations: 167.7 kB / 359.7 MB, free: 11.24 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001376/0.2655, allocations: 1.151 MB / 360.9 MB, free: 10.06 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009754/0.2665, allocations: 103.3 kB / 361 MB, free: 9.957 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000124/0.2666, allocations: 67.98 kB / 361 MB, free: 9.891 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.0008571/0.2675, allocations: 464.3 kB / 361.5 MB, free: 9.426 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004913/0.268, allocations: 389.7 kB / 361.9 MB, free: 9.043 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002938/0.2709, allocations: 1.226 MB / 363.1 MB, free: 7.809 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.2709, allocations: 4 kB / 363.1 MB, free: 7.805 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.2709, allocations: 0 / 363.1 MB, free: 7.805 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.2709, allocations: 3.984 kB / 363.1 MB, free: 7.801 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005006/0.2759, allocations: 2.636 MB / 365.7 MB, free: 5.098 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001091/0.276, allocations: 68.75 kB / 365.8 MB, free: 5.031 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002908/0.2763, allocations: 63.88 kB / 365.9 MB, free: 4.969 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005777/0.2769, allocations: 265.5 kB / 366.1 MB, free: 4.707 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.66e-05/0.277, allocations: 35.98 kB / 366.2 MB, free: 4.672 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001276/0.2782, allocations: 1.137 MB / 367.3 MB, free: 3.504 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.2782, allocations: 4 kB / 367.3 MB, free: 3.5 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002099/0.2803, allocations: 1.197 MB / 368.5 MB, free: 2.258 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009758/0.2813, allocations: 423.3 kB / 368.9 MB, free: 1.84 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002762/0.2816, allocations: 8 kB / 368.9 MB, free: 1.832 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006028/0.2822, allocations: 23.97 kB / 368.9 MB, free: 1.809 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001731/0.2824, allocations: 59.94 kB / 369 MB, free: 1.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.666e-05/0.2825, allocations: 41.67 kB / 369 MB, free: 1.711 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.003267/0.2857, allocations: 2.118 MB / 371.2 MB, free: 15.59 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2857, allocations: 0 / 371.2 MB, free: 15.59 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001508/0.2872, allocations: 0.5697 MB / 371.7 MB, free: 15.02 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.001354/0.2886, allocations: 0.8299 MB / 372.6 MB, free: 14.32 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002103/0.2907, allocations: 0.8312 MB / 373.4 MB, free: 13.46 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.2907, allocations: 3.938 kB / 373.4 MB, free: 13.46 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009548/0.2916, allocations: 477 kB / 373.9 MB, free: 12.97 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002714/0.2944, allocations: 0.6344 MB / 374.5 MB, free: 12.33 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006678/0.301, allocations: 4.036 MB / 378.5 MB, free: 8.219 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001213/0.3022, allocations: 1.044 MB / 379.6 MB, free: 7.145 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001209/0.3035, allocations: 390.8 kB / 380 MB, free: 6.758 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005009/0.304, allocations: 164.5 kB / 380.1 MB, free: 6.598 MB / 330.7 MB Notification: Performance of SimCode: time 2.044e-06/0.304, allocations: 0 / 380.1 MB, free: 6.598 MB / 330.7 MB Notification: Performance of Templates: time 0.06404/0.368, allocations: 32.42 MB / 412.5 MB, free: 6.656 MB / 362.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 240] 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.826904517016374]