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.00115/0.00115, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.001278/0.001278, allocations: 139.9 kB / 24.89 MB, free: 9.207 MB / 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 0.9272/0.9272, allocations: 173.3 MB / 201.5 MB, free: 9.211 MB / 186.7 MB " [Timeout remaining time 179] 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 1.383e-06/1.383e-06, allocations: 0 / 268.5 MB, free: 6.188 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.433e-05/2.571e-05, allocations: 6.312 kB / 268.5 MB, free: 6.18 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.02177/0.02179, allocations: 13.1 MB / 281.6 MB, free: 9.02 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1381/0.1599, allocations: 19.37 MB / 301 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002134/0.162, allocations: 194.4 kB / 301.1 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002344/0.1643, allocations: 1.072 MB / 302.2 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006416/0.1707, allocations: 2.344 MB / 304.6 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004714/0.1755, allocations: 1.397 MB / 306 MB, free: 11.78 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006974/0.1824, allocations: 6.63 MB / 312.6 MB, free: 9.539 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005968/0.183, allocations: 284.2 kB / 312.9 MB, free: 9.332 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002865/0.1859, allocations: 2.906 MB / 315.8 MB, free: 8.07 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001003/0.1869, allocations: 0.7908 MB / 316.6 MB, free: 7.625 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001777/0.1871, allocations: 68 kB / 316.6 MB, free: 7.559 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00282/0.1899, allocations: 1.243 MB / 317.9 MB, free: 6.352 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001414/0.19, allocations: 318.2 kB / 318.2 MB, free: 6.051 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006623/0.1907, allocations: 0.7115 MB / 318.9 MB, free: 5.352 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002679/0.1934, allocations: 2.705 MB / 321.6 MB, free: 2.91 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.1934, allocations: 4 kB / 321.6 MB, free: 2.906 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1934, allocations: 0 / 321.6 MB, free: 2.906 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.038e-05/0.1935, allocations: 4 kB / 321.6 MB, free: 2.902 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.002353/0.1958, allocations: 3.48 MB / 325.1 MB, free: 15.57 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.1958, allocations: 12.92 kB / 325.1 MB, free: 15.56 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002904/0.1961, allocations: 267.7 kB / 325.4 MB, free: 15.3 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002004/0.1981, allocations: 2.098 MB / 327.5 MB, free: 13.16 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.468e-05/0.1982, allocations: 44.92 kB / 327.5 MB, free: 13.12 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.073e-05/0.1982, allocations: 42.89 kB / 327.5 MB, free: 13.08 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005007/0.1987, allocations: 451.5 kB / 328 MB, free: 12.62 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.1988, allocations: 0 / 328 MB, free: 12.62 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.73e-05/0.1988, allocations: 20 kB / 328 MB, free: 12.61 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.653e-05/0.1988, allocations: 23.92 kB / 328 MB, free: 12.58 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003225/0.1991, allocations: 203.8 kB / 328.2 MB, free: 12.38 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002062/0.2012, allocations: 1.44 MB / 329.7 MB, free: 10.97 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003186/0.2015, allocations: 323.7 kB / 330 MB, free: 10.66 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002741/0.2018, allocations: 328.9 kB / 330.3 MB, free: 10.34 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02279/0.2246, allocations: 22.9 MB / 353.2 MB, free: 2.746 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000273/0.2248, allocations: 210.7 kB / 353.4 MB, free: 2.527 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 2.194e-06/0.2248, allocations: 0 / 353.4 MB, free: 2.527 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.001054/0.2259, allocations: 0.6482 MB / 354.1 MB, free: 1.871 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.32e-05/0.2259, allocations: 63.41 kB / 354.1 MB, free: 1.797 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001614/0.2275, allocations: 2.515 MB / 356.6 MB, free: 15.25 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.794e-05/0.2276, allocations: 37.7 kB / 356.7 MB, free: 15.21 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003798/0.228, allocations: 0.7228 MB / 357.4 MB, free: 14.48 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001043/0.2281, allocations: 170.5 kB / 357.6 MB, free: 14.31 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001604/0.2282, allocations: 190.3 kB / 357.8 MB, free: 14.12 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.829e-05/0.2283, allocations: 337.9 kB / 358.1 MB, free: 13.78 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001055/0.2284, allocations: 73.95 kB / 358.2 MB, free: 13.71 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002634/0.2287, allocations: 443 kB / 358.6 MB, free: 13.1 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004604/0.2291, allocations: 0.6037 MB / 359.2 MB, free: 12.33 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/0.2292, allocations: 8 kB / 359.2 MB, free: 12.32 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0007575/0.2299, allocations: 0.708 MB / 359.9 MB, free: 11.61 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.2299, allocations: 12 kB / 359.9 MB, free: 11.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-05/0.23, allocations: 20 kB / 359.9 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000284/0.2303, allocations: 152.1 kB / 360.1 MB, free: 11.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003048/0.2306, allocations: 175 kB / 360.3 MB, free: 11.26 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004527/0.231, allocations: 0.6537 MB / 360.9 MB, free: 10.58 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005559/0.2316, allocations: 99.38 kB / 361 MB, free: 10.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.822e-05/0.2317, allocations: 40 kB / 361.1 MB, free: 10.44 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.0002856/0.2319, allocations: 165.5 kB / 361.2 MB, free: 10.27 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000194/0.2321, allocations: 243.7 kB / 361.4 MB, free: 10.03 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001084/0.2332, allocations: 0.7995 MB / 362.2 MB, free: 9.227 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.2332, allocations: 4 kB / 362.3 MB, free: 9.223 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.2332, allocations: 0 / 362.3 MB, free: 9.223 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.2332, allocations: 11.92 kB / 362.3 MB, free: 9.211 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001601/0.2348, allocations: 1.579 MB / 363.8 MB, free: 7.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-05/0.2349, allocations: 19.92 kB / 363.9 MB, free: 7.551 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001401/0.235, allocations: 60.03 kB / 363.9 MB, free: 7.492 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000228/0.2352, allocations: 132.8 kB / 364.1 MB, free: 7.359 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.995e-05/0.2353, allocations: 15.98 kB / 364.1 MB, free: 7.344 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000418/0.2357, allocations: 0.6309 MB / 364.7 MB, free: 6.691 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.2357, allocations: 0 / 364.7 MB, free: 6.691 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005688/0.2363, allocations: 0.5969 MB / 365.3 MB, free: 6.059 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003916/0.2367, allocations: 373.4 kB / 365.7 MB, free: 5.688 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000167/0.2368, allocations: 15.98 kB / 365.7 MB, free: 5.672 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002957/0.2371, allocations: 19.92 kB / 365.7 MB, free: 5.652 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/0.2372, allocations: 43.94 kB / 365.7 MB, free: 5.609 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.067e-05/0.2373, allocations: 15.98 kB / 365.8 MB, free: 5.594 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009051/0.2382, allocations: 1.328 MB / 367.1 MB, free: 4.254 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2382, allocations: 0 / 367.1 MB, free: 4.254 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009477/0.2391, allocations: 0.5735 MB / 367.7 MB, free: 3.68 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.0009589/0.2401, allocations: 0.9245 MB / 368.6 MB, free: 2.75 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006321/0.2407, allocations: 487.2 kB / 369.1 MB, free: 2.25 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.418e-05/0.2407, allocations: 44.44 kB / 369.1 MB, free: 2.207 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002867/0.241, allocations: 273.3 kB / 369.4 MB, free: 1.918 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001305/0.2423, allocations: 0.6033 MB / 370 MB, free: 1.316 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003477/0.2458, allocations: 3.745 MB / 373.7 MB, free: 13.5 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002278/0.246, allocations: 365.8 kB / 374.1 MB, free: 13.12 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.00066/0.2467, allocations: 386.8 kB / 374.4 MB, free: 12.73 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006168/0.2473, allocations: 0.5577 MB / 375 MB, free: 12.17 MB / 330.7 MB Notification: Performance of SimCode: time 1.122e-06/0.2473, allocations: 4 kB / 375 MB, free: 12.16 MB / 330.7 MB Notification: Performance of Templates: time 0.04401/0.2913, allocations: 37.23 MB / 412.2 MB, free: 7.434 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 -s gbode -gbm=radauIIA3 -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","",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.296698971185833]