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.001107/0.001107, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001312/0.002419, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0007544/0.0007544, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001081/0.001836, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9463/0.9463, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07612/1.022, allocations: 53.67 MB / 243.4 MB, free: 15.5 MB / 250.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.183e-06/1.183e-06, allocations: 0 / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.513e-05/1.631e-05, allocations: 5.828 kB / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.008962/0.008978, allocations: 13.16 MB / 257.9 MB, free: 1.016 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.1249/0.1338, allocations: 19.5 MB / 277.4 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001875/0.1357, allocations: 193.2 kB / 277.5 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002096/0.1378, allocations: 1.072 MB / 278.6 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005752/0.1436, allocations: 2.334 MB / 281 MB, free: 96 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003526/0.1471, allocations: 1.4 MB / 282.4 MB, free: 15.87 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.006992/0.1541, allocations: 6.577 MB / 288.9 MB, free: 14.58 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005271/0.1546, allocations: 287 kB / 289.2 MB, free: 14.41 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003516/0.1581, allocations: 3.377 MB / 292.6 MB, free: 13.88 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009245/0.1591, allocations: 0.7858 MB / 293.4 MB, free: 13.72 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001791/0.1592, allocations: 70.47 kB / 293.4 MB, free: 13.72 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002609/0.1618, allocations: 1.261 MB / 294.7 MB, free: 13.67 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001837/0.162, allocations: 252.6 kB / 294.9 MB, free: 13.54 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006174/0.1626, allocations: 0.6391 MB / 295.6 MB, free: 13.41 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002622/0.1653, allocations: 2.552 MB / 298.1 MB, free: 11.93 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.241e-05/0.1653, allocations: 0 / 298.1 MB, free: 11.93 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1653, allocations: 0 / 298.1 MB, free: 11.93 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.679e-05/0.1654, allocations: 0 / 298.1 MB, free: 11.93 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.003464/0.1688, allocations: 4.151 MB / 302.3 MB, free: 8.227 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.308e-05/0.1689, allocations: 8.031 kB / 302.3 MB, free: 8.219 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003343/0.1692, allocations: 270.5 kB / 302.6 MB, free: 8.02 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00256/0.1718, allocations: 2.101 MB / 304.7 MB, free: 5.898 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.631e-05/0.1718, allocations: 37 kB / 304.7 MB, free: 5.859 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.708e-05/0.1719, allocations: 47.98 kB / 304.7 MB, free: 5.812 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005388/0.1724, allocations: 446.5 kB / 305.2 MB, free: 5.367 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.1724, allocations: 0 / 305.2 MB, free: 5.367 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.039e-05/0.1725, allocations: 24 kB / 305.2 MB, free: 5.344 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.674e-05/0.1725, allocations: 23.92 kB / 305.2 MB, free: 5.32 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003146/0.1728, allocations: 207.8 kB / 305.4 MB, free: 5.117 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002051/0.1748, allocations: 1.437 MB / 306.9 MB, free: 3.727 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003262/0.1752, allocations: 315.6 kB / 307.2 MB, free: 3.422 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002867/0.1755, allocations: 333.2 kB / 307.5 MB, free: 3.105 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02306/0.1985, allocations: 22.85 MB / 330.4 MB, free: 11.57 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002587/0.1988, allocations: 209 kB / 330.6 MB, free: 11.37 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.224e-06/0.1988, allocations: 0 / 330.6 MB, free: 11.37 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0009922/0.1998, allocations: 0.6631 MB / 331.2 MB, free: 10.71 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.354e-05/0.1998, allocations: 65.36 kB / 331.3 MB, free: 10.63 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002067/0.2019, allocations: 2.51 MB / 333.8 MB, free: 8.617 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.439e-05/0.2019, allocations: 37.7 kB / 333.8 MB, free: 8.574 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004539/0.2024, allocations: 0.7124 MB / 334.5 MB, free: 8.016 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001274/0.2025, allocations: 175.9 kB / 334.7 MB, free: 7.855 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002054/0.2027, allocations: 180.6 kB / 334.9 MB, free: 7.691 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.222e-05/0.2028, allocations: 340.8 kB / 335.2 MB, free: 7.367 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000143/0.2029, allocations: 75.28 kB / 335.3 MB, free: 7.293 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003211/0.2033, allocations: 446 kB / 335.7 MB, free: 6.711 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006201/0.2039, allocations: 0.6441 MB / 336.4 MB, free: 5.969 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/0.2039, allocations: 4 kB / 336.4 MB, free: 5.965 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0009853/0.2049, allocations: 0.7003 MB / 337.1 MB, free: 5.336 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.2049, allocations: 16.88 kB / 337.1 MB, free: 5.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.268e-05/0.205, allocations: 23.98 kB / 337.1 MB, free: 5.297 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003554/0.2053, allocations: 150 kB / 337.3 MB, free: 5.156 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004347/0.2058, allocations: 183.7 kB / 337.4 MB, free: 4.977 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005845/0.2063, allocations: 0.6508 MB / 338.1 MB, free: 4.309 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007199/0.2071, allocations: 107.2 kB / 338.2 MB, free: 4.203 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.755e-05/0.2071, allocations: 39.98 kB / 338.2 MB, free: 4.164 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.0003214/0.2075, allocations: 170.8 kB / 338.4 MB, free: 3.988 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002423/0.2077, allocations: 237.4 kB / 338.6 MB, free: 3.758 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00145/0.2092, allocations: 0.8043 MB / 339.4 MB, free: 2.953 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.772e-06/0.2092, allocations: 7.984 kB / 339.5 MB, free: 2.945 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-06/0.2092, allocations: 0 / 339.5 MB, free: 2.945 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.2092, allocations: 3.938 kB / 339.5 MB, free: 2.941 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002061/0.2112, allocations: 1.583 MB / 341 MB, free: 1.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.717e-05/0.2113, allocations: 8 kB / 341 MB, free: 1.672 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001943/0.2115, allocations: 71.83 kB / 341.1 MB, free: 1.602 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004702/0.212, allocations: 369.4 kB / 341.5 MB, free: 1.238 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000298/0.2123, allocations: 140.3 kB / 341.6 MB, free: 1.105 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.569e-05/0.2123, allocations: 8 kB / 341.6 MB, free: 1.098 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005073/0.2128, allocations: 0.6295 MB / 342.3 MB, free: 464 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.2128, allocations: 0 / 342.3 MB, free: 464 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007618/0.2136, allocations: 0.5985 MB / 342.9 MB, free: 15.83 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002229/0.2138, allocations: 12.86 kB / 342.9 MB, free: 15.82 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004842/0.2143, allocations: 23.92 kB / 342.9 MB, free: 15.8 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001172/0.2144, allocations: 43.92 kB / 342.9 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.657e-05/0.2144, allocations: 12 kB / 342.9 MB, free: 15.74 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001128/0.2156, allocations: 1.334 MB / 344.3 MB, free: 14.57 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2156, allocations: 0 / 344.3 MB, free: 14.57 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001128/0.2167, allocations: 0.5813 MB / 344.9 MB, free: 13.98 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.001155/0.2178, allocations: 0.9203 MB / 345.8 MB, free: 13.21 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007473/0.2186, allocations: 0.499 MB / 346.3 MB, free: 12.7 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.982e-05/0.2186, allocations: 40.5 kB / 346.3 MB, free: 12.65 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004299/0.2191, allocations: 302.2 kB / 346.6 MB, free: 12.34 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003729/0.2228, allocations: 5.879 MB / 352.5 MB, free: 5.352 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008842/0.2316, allocations: 3.785 MB / 356.3 MB, free: 1.508 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002914/0.2319, allocations: 361.8 kB / 356.6 MB, free: 1.133 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008718/0.2328, allocations: 386.9 kB / 357 MB, free: 0.75 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008125/0.2336, allocations: 0.5567 MB / 357.6 MB, free: 192 kB / 330.7 MB Notification: Performance of SimCode: time 1.272e-06/0.2336, allocations: 0 / 357.6 MB, free: 192 kB / 330.7 MB Notification: Performance of Templates: time 0.05091/0.2845, allocations: 38.19 MB / 395.8 MB, free: 10.5 MB / 378.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.351614199578762]