Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001281/0.001281, allocations: 68.19 kB / 9.935 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002205/0.003486, allocations: 445.7 kB / 10.37 MB, free: 328 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.001131/0.001131, allocations: 161.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001788/0.002919, allocations: 463.6 kB / 11.71 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9678/0.9678, allocations: 158.6 MB / 171.1 MB, free: 2.582 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1614/1.129, allocations: 49.49 MB / 220.6 MB, free: 1.445 MB / 218.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.102e-06/1.102e-06, allocations: 0 / 221.8 MB, free: 180 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 7.063e-06/8.165e-06, allocations: 6.312 kB / 221.8 MB, free: 172 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.008163/0.008171, allocations: 12.49 MB / 234.3 MB, free: 3.617 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.01627/0.02444, allocations: 18.53 MB / 252.9 MB, free: 1.016 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001322/0.02577, allocations: 197.8 kB / 253 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00163/0.0274, allocations: 1.049 MB / 254.1 MB, free: 15.76 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003679/0.03108, allocations: 2.308 MB / 256.4 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002299/0.03337, allocations: 1.345 MB / 257.7 MB, free: 12.08 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005301/0.03867, allocations: 6.369 MB / 264.1 MB, free: 5.695 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004554/0.03913, allocations: 277.7 kB / 264.4 MB, free: 5.383 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003058/0.04219, allocations: 3.164 MB / 267.6 MB, free: 2.129 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008648/0.04305, allocations: 0.7592 MB / 268.3 MB, free: 1.367 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001257/0.04318, allocations: 68 kB / 268.4 MB, free: 1.301 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00202/0.0452, allocations: 1.136 MB / 269.5 MB, free: 168 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002271/0.04543, allocations: 254 kB / 269.8 MB, free: 15.91 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007322/0.04616, allocations: 0.6464 MB / 270.4 MB, free: 15.26 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002323/0.04848, allocations: 2.564 MB / 273 MB, free: 12.69 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.562e-05/0.0485, allocations: 3.938 kB / 273 MB, free: 12.68 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.0485, allocations: 0 / 273 MB, free: 12.68 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.345e-05/0.04853, allocations: 0 / 273 MB, free: 12.68 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.003155/0.05169, allocations: 4.174 MB / 277.2 MB, free: 8.441 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.05e-05/0.05172, allocations: 8.031 kB / 277.2 MB, free: 8.434 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000241/0.05196, allocations: 271.7 kB / 277.4 MB, free: 8.168 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001927/0.05389, allocations: 2.118 MB / 279.5 MB, free: 5.934 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.151e-05/0.05391, allocations: 33 kB / 279.6 MB, free: 5.902 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.158e-05/0.05398, allocations: 47.95 kB / 279.6 MB, free: 5.855 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004879/0.05447, allocations: 459.4 kB / 280.1 MB, free: 5.391 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.05448, allocations: 4 kB / 280.1 MB, free: 5.387 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.775e-05/0.05452, allocations: 20 kB / 280.1 MB, free: 5.367 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.68e-05/0.05453, allocations: 19.98 kB / 280.1 MB, free: 5.348 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003143/0.05485, allocations: 203.8 kB / 280.3 MB, free: 5.148 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00185/0.0567, allocations: 1.441 MB / 281.8 MB, free: 3.68 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002955/0.05699, allocations: 309.3 kB / 282.1 MB, free: 3.371 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002624/0.05726, allocations: 331.1 kB / 282.4 MB, free: 3.047 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1464/0.2036, allocations: 22.93 MB / 305.3 MB, free: 34.91 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000251/0.2039, allocations: 215.8 kB / 305.5 MB, free: 34.78 MB / 282.7 MB Notification: Performance of pre-optimization done (n=49): time 2.054e-06/0.2039, allocations: 0 / 305.5 MB, free: 34.78 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.0009032/0.2048, allocations: 0.6603 MB / 306.2 MB, free: 34.31 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.383e-05/0.2048, allocations: 60.5 kB / 306.2 MB, free: 34.24 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001127/0.2059, allocations: 2.53 MB / 308.8 MB, free: 32.7 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.916e-05/0.206, allocations: 37.7 kB / 308.8 MB, free: 32.66 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002671/0.2062, allocations: 0.7181 MB / 309.5 MB, free: 32.33 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.097e-05/0.2063, allocations: 173 kB / 309.7 MB, free: 32.24 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001241/0.2064, allocations: 181.6 kB / 309.9 MB, free: 32.09 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.846e-05/0.2065, allocations: 345.5 kB / 310.2 MB, free: 31.78 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.554e-05/0.2066, allocations: 77.44 kB / 310.3 MB, free: 31.71 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001807/0.2067, allocations: 453.1 kB / 310.7 MB, free: 31.16 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003135/0.2071, allocations: 0.6008 MB / 311.3 MB, free: 30.52 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.92e-06/0.2071, allocations: 4 kB / 311.3 MB, free: 30.52 MB / 282.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0005558/0.2076, allocations: 0.7001 MB / 312 MB, free: 29.99 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.2076, allocations: 12 kB / 312 MB, free: 29.98 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.692e-05/0.2077, allocations: 25.95 kB / 312.1 MB, free: 29.95 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002351/0.2079, allocations: 147.8 kB / 312.2 MB, free: 29.81 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002696/0.2082, allocations: 185.3 kB / 312.4 MB, free: 29.64 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003222/0.2085, allocations: 0.6601 MB / 313.1 MB, free: 28.98 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003796/0.2089, allocations: 103.3 kB / 313.2 MB, free: 28.88 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.766e-05/0.2089, allocations: 39.19 kB / 313.2 MB, free: 28.84 MB / 282.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.0002147/0.2092, allocations: 170 kB / 313.4 MB, free: 28.68 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001325/0.2093, allocations: 246.2 kB / 313.6 MB, free: 28.44 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008793/0.2102, allocations: 0.8011 MB / 314.4 MB, free: 27.64 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.2102, allocations: 4 kB / 314.4 MB, free: 27.64 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.432e-06/0.2102, allocations: 4 kB / 314.4 MB, free: 27.64 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.2102, allocations: 3.984 kB / 314.4 MB, free: 27.63 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001097/0.2113, allocations: 1.596 MB / 316 MB, free: 26.38 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.585e-05/0.2113, allocations: 8 kB / 316 MB, free: 26.37 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001267/0.2114, allocations: 59.33 kB / 316.1 MB, free: 26.32 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002562/0.2117, allocations: 370.5 kB / 316.4 MB, free: 25.95 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001848/0.2119, allocations: 143.5 kB / 316.6 MB, free: 25.82 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.23e-05/0.2119, allocations: 15.75 kB / 316.6 MB, free: 25.8 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002616/0.2122, allocations: 0.6249 MB / 317.2 MB, free: 25.16 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2122, allocations: 0 / 317.2 MB, free: 25.16 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003956/0.2126, allocations: 0.6072 MB / 317.8 MB, free: 24.54 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001437/0.2127, allocations: 10.67 kB / 317.8 MB, free: 24.54 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002814/0.213, allocations: 23.98 kB / 317.9 MB, free: 24.51 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.325e-05/0.2131, allocations: 39.92 kB / 317.9 MB, free: 24.47 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.77e-05/0.2131, allocations: 19.92 kB / 317.9 MB, free: 24.45 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005662/0.2136, allocations: 1.339 MB / 319.3 MB, free: 23.27 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2136, allocations: 0 / 319.3 MB, free: 23.27 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006367/0.2143, allocations: 0.5774 MB / 319.8 MB, free: 22.7 MB / 282.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.0007404/0.215, allocations: 0.9343 MB / 320.8 MB, free: 21.91 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004669/0.2155, allocations: 490.1 kB / 321.2 MB, free: 21.46 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.979e-05/0.2155, allocations: 52.41 kB / 321.3 MB, free: 21.41 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002251/0.2157, allocations: 272.9 kB / 321.6 MB, free: 21.12 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009272/0.2167, allocations: 0.7542 MB / 322.3 MB, free: 20.37 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005564/0.2222, allocations: 3.802 MB / 326.1 MB, free: 16.53 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000177/0.2224, allocations: 370.2 kB / 326.5 MB, free: 16.14 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005357/0.223, allocations: 386.9 kB / 326.9 MB, free: 15.76 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005056/0.2235, allocations: 0.5538 MB / 327.4 MB, free: 15.2 MB / 282.7 MB Notification: Performance of SimCode: time 1.112e-06/0.2235, allocations: 4 kB / 327.4 MB, free: 15.2 MB / 282.7 MB Notification: Performance of Templates: time 0.04255/0.266, allocations: 38.65 MB / 366.1 MB, free: 8.629 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.4551421934738755]