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.0009409/0.0009409, allocations: 80.31 kB / 22.21 MB, free: 2.289 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.0009661/0.0009661, allocations: 167 kB / 25.61 MB, free: 8.594 MB / 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.9087/0.9087, allocations: 177.1 MB / 206 MB, free: 4.477 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 3.346e-06/3.346e-06, allocations: 4 kB / 274.2 MB, free: 4.418 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.917e-05/3.251e-05, allocations: 9.484 kB / 274.2 MB, free: 4.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01383/0.01386, allocations: 13.06 MB / 287.2 MB, free: 7.312 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02465/0.03851, allocations: 19.02 MB / 306.3 MB, free: 4.23 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003074/0.04159, allocations: 193.8 kB / 306.4 MB, free: 4.039 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003223/0.04481, allocations: 1.032 MB / 307.5 MB, free: 2.996 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008929/0.05374, allocations: 2.386 MB / 309.9 MB, free: 0.5938 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003205/0.05694, allocations: 1.441 MB / 311.3 MB, free: 15.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006565/0.06351, allocations: 6.765 MB / 318.1 MB, free: 8.359 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004799/0.06399, allocations: 237 kB / 318.3 MB, free: 8.094 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002691/0.06668, allocations: 2.991 MB / 321.3 MB, free: 5.098 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007157/0.0674, allocations: 0.7902 MB / 322.1 MB, free: 4.305 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001051/0.0675, allocations: 68 kB / 322.1 MB, free: 4.238 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002159/0.06966, allocations: 1.206 MB / 323.4 MB, free: 3.031 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001872/0.06985, allocations: 317.7 kB / 323.7 MB, free: 2.719 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006069/0.07045, allocations: 0.7048 MB / 324.4 MB, free: 2.012 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002312/0.07276, allocations: 2.72 MB / 327.1 MB, free: 15.28 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.07277, allocations: 0 / 327.1 MB, free: 15.28 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.41e-07/0.07277, allocations: 0 / 327.1 MB, free: 15.28 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.498e-05/0.0728, allocations: 0 / 327.1 MB, free: 15.28 MB / 314.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.002854/0.07565, allocations: 3.779 MB / 330.9 MB, free: 11.44 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/0.07568, allocations: 12.03 kB / 330.9 MB, free: 11.43 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003116/0.07599, allocations: 425.5 kB / 331.3 MB, free: 11.01 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002176/0.07817, allocations: 2.623 MB / 333.9 MB, free: 8.289 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.551e-05/0.0782, allocations: 33 kB / 334 MB, free: 8.254 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.773e-05/0.07827, allocations: 55.89 kB / 334 MB, free: 8.199 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006226/0.0789, allocations: 476.7 kB / 334.5 MB, free: 7.727 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.07891, allocations: 0 / 334.5 MB, free: 7.727 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.734e-05/0.07896, allocations: 16 kB / 334.5 MB, free: 7.711 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.533e-05/0.07897, allocations: 19.98 kB / 334.5 MB, free: 7.691 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000639/0.07961, allocations: 407.7 kB / 334.9 MB, free: 7.293 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002392/0.082, allocations: 2.171 MB / 337.1 MB, free: 5.082 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003299/0.08233, allocations: 317.7 kB / 337.4 MB, free: 4.762 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003345/0.08267, allocations: 386 kB / 337.8 MB, free: 4.383 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1248/0.2075, allocations: 15.18 MB / 352.9 MB, free: 56.12 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002264/0.2077, allocations: 253.5 kB / 353.2 MB, free: 56.06 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 1.453e-06/0.2077, allocations: 0 / 353.2 MB, free: 56.06 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.001107/0.2088, allocations: 1.016 MB / 354.2 MB, free: 56.01 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.04e-05/0.2088, allocations: 66.88 kB / 354.3 MB, free: 55.95 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001462/0.2103, allocations: 2.959 MB / 357.2 MB, free: 55.51 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.844e-05/0.2103, allocations: 34.92 kB / 357.3 MB, free: 55.47 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007321/0.211, allocations: 1.605 MB / 358.9 MB, free: 54.43 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.449e-05/0.2111, allocations: 177.8 kB / 359 MB, free: 54.3 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001929/0.2113, allocations: 237 kB / 359.3 MB, free: 54.1 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.422e-05/0.2114, allocations: 0.5066 MB / 359.8 MB, free: 53.61 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001449/0.2115, allocations: 107.2 kB / 359.9 MB, free: 53.53 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002534/0.2118, allocations: 0.6188 MB / 360.5 MB, free: 52.74 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004988/0.2123, allocations: 0.7974 MB / 361.3 MB, free: 51.82 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.2123, allocations: 4 kB / 361.3 MB, free: 51.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001002/0.2133, allocations: 1.046 MB / 362.3 MB, free: 50.91 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.2133, allocations: 15.84 kB / 362.4 MB, free: 50.9 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.626e-05/0.2134, allocations: 80 kB / 362.4 MB, free: 50.82 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003405/0.2137, allocations: 253.3 kB / 362.7 MB, free: 50.6 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003653/0.2141, allocations: 173.9 kB / 362.9 MB, free: 50.46 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005441/0.2146, allocations: 1.067 MB / 363.9 MB, free: 49.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006427/0.2153, allocations: 106.4 kB / 364 MB, free: 49.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.198e-05/0.2153, allocations: 52.62 kB / 364.1 MB, free: 49.27 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.0002986/0.2156, allocations: 219.2 kB / 364.3 MB, free: 49.07 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002381/0.2159, allocations: 397.6 kB / 364.7 MB, free: 48.68 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001409/0.2173, allocations: 1.03 MB / 365.7 MB, free: 47.7 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.119e-06/0.2173, allocations: 5.641 kB / 365.7 MB, free: 47.7 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/0.2173, allocations: 4 kB / 365.7 MB, free: 47.69 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.2173, allocations: 7.922 kB / 365.7 MB, free: 47.68 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002032/0.2193, allocations: 2.184 MB / 367.9 MB, free: 45.82 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.639e-05/0.2194, allocations: 75.94 kB / 368 MB, free: 45.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001595/0.2196, allocations: 51.7 kB / 368 MB, free: 45.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003007/0.2199, allocations: 243 kB / 368.3 MB, free: 45.47 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.839e-05/0.2199, allocations: 28 kB / 368.3 MB, free: 45.44 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004929/0.2204, allocations: 1.051 MB / 369.4 MB, free: 44.38 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.2204, allocations: 0 / 369.4 MB, free: 44.38 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007988/0.2212, allocations: 1.004 MB / 370.4 MB, free: 43.34 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004311/0.2216, allocations: 428.6 kB / 370.8 MB, free: 42.93 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002307/0.2218, allocations: 8 kB / 370.8 MB, free: 42.92 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004868/0.2223, allocations: 23.98 kB / 370.8 MB, free: 42.89 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.2224, allocations: 59.92 kB / 370.9 MB, free: 42.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.538e-05/0.2225, allocations: 32 kB / 370.9 MB, free: 42.8 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001023/0.2235, allocations: 1.536 MB / 372.4 MB, free: 41.43 MB / 314.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2235, allocations: 4 kB / 372.4 MB, free: 41.43 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009432/0.2245, allocations: 0.5816 MB / 373 MB, free: 40.89 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.000898/0.2254, allocations: 0.9161 MB / 373.9 MB, free: 40.15 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006748/0.226, allocations: 0.6141 MB / 374.5 MB, free: 39.56 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.226, allocations: 0 / 374.5 MB, free: 39.56 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003589/0.2264, allocations: 390.6 kB / 374.9 MB, free: 39.16 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001668/0.2281, allocations: 0.6153 MB / 375.5 MB, free: 38.55 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003168/0.2312, allocations: 3.776 MB / 379.3 MB, free: 34.73 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002022/0.2314, allocations: 369.7 kB / 379.7 MB, free: 34.34 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006636/0.2321, allocations: 387.5 kB / 380.1 MB, free: 33.96 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000656/0.2327, allocations: 0.6229 MB / 380.7 MB, free: 33.34 MB / 314.7 MB Notification: Performance of SimCode: time 4.81e-07/0.2327, allocations: 0 / 380.7 MB, free: 33.34 MB / 314.7 MB Notification: Performance of Templates: time 0.04433/0.2771, allocations: 37.72 MB / 418.4 MB, free: 12.27 MB / 330.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.637233082205057]