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.001127/0.001127, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001612/0.002739, allocations: 449.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.001052/0.001052, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001438/0.00249, allocations: 455.6 kB / 11.71 MB, free: 2.461 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.9274/0.9274, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08051/1.008, allocations: 53.65 MB / 243.3 MB, free: 15.58 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.202e-06/1.202e-06, allocations: 0 / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.693e-05/1.813e-05, allocations: 8.922 kB / 244.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.008454/0.008472, allocations: 13.16 MB / 257.7 MB, free: 1.109 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.1224/0.1308, allocations: 19.49 MB / 277.2 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00187/0.1327, allocations: 190.2 kB / 277.3 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002116/0.1348, allocations: 1.075 MB / 278.4 MB, free: 0.543 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006117/0.1409, allocations: 2.334 MB / 280.8 MB, free: 124 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003631/0.1446, allocations: 1.398 MB / 282.2 MB, free: 15.9 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.007833/0.1524, allocations: 6.575 MB / 288.7 MB, free: 14.61 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005973/0.153, allocations: 288 kB / 289 MB, free: 14.45 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003599/0.1566, allocations: 3.375 MB / 292.4 MB, free: 13.91 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009314/0.1575, allocations: 0.7847 MB / 293.2 MB, free: 13.75 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000234/0.1578, allocations: 68.78 kB / 293.2 MB, free: 13.75 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00344/0.1612, allocations: 1.268 MB / 294.5 MB, free: 13.7 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002312/0.1614, allocations: 249.7 kB / 294.8 MB, free: 13.57 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001004/0.1624, allocations: 0.6425 MB / 295.4 MB, free: 13.44 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003181/0.1656, allocations: 2.55 MB / 297.9 MB, free: 12.02 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.614e-05/0.1656, allocations: 0 / 297.9 MB, free: 12.02 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1656, allocations: 0 / 297.9 MB, free: 12.02 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001153/0.1657, allocations: 0 / 297.9 MB, free: 12.02 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.003415/0.1692, allocations: 4.15 MB / 302.1 MB, free: 8.305 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.373e-05/0.1692, allocations: 8.031 kB / 302.1 MB, free: 8.297 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002866/0.1695, allocations: 268.6 kB / 302.4 MB, free: 8.113 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002213/0.1717, allocations: 2.1 MB / 304.5 MB, free: 5.992 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.992e-05/0.1717, allocations: 33 kB / 304.5 MB, free: 5.957 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.738e-05/0.1718, allocations: 53.5 kB / 304.5 MB, free: 5.91 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006407/0.1725, allocations: 447.5 kB / 305 MB, free: 5.461 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.1725, allocations: 3.984 kB / 305 MB, free: 5.457 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.787e-05/0.1725, allocations: 19.94 kB / 305 MB, free: 5.438 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.184e-05/0.1725, allocations: 23.92 kB / 305 MB, free: 5.414 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004374/0.173, allocations: 207.8 kB / 305.2 MB, free: 5.211 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002567/0.1755, allocations: 1.437 MB / 306.7 MB, free: 3.816 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003995/0.1759, allocations: 316.2 kB / 307 MB, free: 3.516 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00036/0.1763, allocations: 340.4 kB / 307.3 MB, free: 3.191 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02993/0.2062, allocations: 22.85 MB / 330.2 MB, free: 11.66 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003431/0.2066, allocations: 213.3 kB / 330.4 MB, free: 11.45 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.364e-06/0.2066, allocations: 0 / 330.4 MB, free: 11.45 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.00131/0.2079, allocations: 0.6504 MB / 331 MB, free: 10.8 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.778e-05/0.2079, allocations: 62.41 kB / 331.1 MB, free: 10.73 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001943/0.2099, allocations: 2.515 MB / 333.6 MB, free: 8.711 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.139e-05/0.2099, allocations: 33.7 kB / 333.6 MB, free: 8.672 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004733/0.2104, allocations: 0.7159 MB / 334.3 MB, free: 8.109 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001265/0.2105, allocations: 179.8 kB / 334.5 MB, free: 7.945 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002025/0.2107, allocations: 182.9 kB / 334.7 MB, free: 7.777 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.374e-05/0.2108, allocations: 342.9 kB / 335 MB, free: 7.453 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001347/0.2109, allocations: 73.95 kB / 335.1 MB, free: 7.379 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003188/0.2113, allocations: 439.4 kB / 335.5 MB, free: 6.805 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005519/0.2118, allocations: 0.605 MB / 336.1 MB, free: 6.105 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.565e-06/0.2118, allocations: 4 kB / 336.1 MB, free: 6.102 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0009326/0.2128, allocations: 0.7192 MB / 336.9 MB, free: 5.453 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.2128, allocations: 11.94 kB / 336.9 MB, free: 5.441 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.689e-05/0.2128, allocations: 24 kB / 336.9 MB, free: 5.418 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003378/0.2132, allocations: 148.5 kB / 337 MB, free: 5.277 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004173/0.2136, allocations: 188.5 kB / 337.2 MB, free: 5.094 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005283/0.2141, allocations: 0.6454 MB / 337.9 MB, free: 4.434 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006368/0.2148, allocations: 103.3 kB / 338 MB, free: 4.332 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.185e-05/0.2148, allocations: 40 kB / 338 MB, free: 4.293 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.0002946/0.2151, allocations: 174.1 kB / 338.2 MB, free: 4.113 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002296/0.2154, allocations: 239.7 kB / 338.4 MB, free: 3.879 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00137/0.2167, allocations: 0.8017 MB / 339.2 MB, free: 3.07 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.2168, allocations: 4 kB / 339.2 MB, free: 3.066 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-06/0.2168, allocations: 4 kB / 339.2 MB, free: 3.062 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/0.2168, allocations: 9.172 kB / 339.2 MB, free: 3.055 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001848/0.2186, allocations: 1.578 MB / 340.8 MB, free: 1.801 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.584e-05/0.2187, allocations: 15.98 kB / 340.8 MB, free: 1.785 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001859/0.2188, allocations: 63.97 kB / 340.9 MB, free: 1.723 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004642/0.2193, allocations: 384 kB / 341.3 MB, free: 1.348 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002811/0.2196, allocations: 122.1 kB / 341.4 MB, free: 1.23 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.451e-05/0.2196, allocations: 19.98 kB / 341.4 MB, free: 1.211 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004748/0.2201, allocations: 0.6226 MB / 342 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.2201, allocations: 4 kB / 342 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006778/0.2208, allocations: 0.5941 MB / 342.6 MB, free: 15.95 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002144/0.221, allocations: 12 kB / 342.6 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004368/0.2214, allocations: 31.94 kB / 342.7 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/0.2215, allocations: 35.94 kB / 342.7 MB, free: 15.88 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.098e-05/0.2216, allocations: 19.98 kB / 342.7 MB, free: 15.86 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008562/0.2224, allocations: 1.33 MB / 344.1 MB, free: 14.68 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.2224, allocations: 0 / 344.1 MB, free: 14.68 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008905/0.2233, allocations: 0.5735 MB / 344.6 MB, free: 14.11 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.0008971/0.2242, allocations: 0.9307 MB / 345.6 MB, free: 13.32 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005714/0.2248, allocations: 495.9 kB / 346 MB, free: 12.82 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.974e-05/0.2248, allocations: 44.5 kB / 346.1 MB, free: 12.77 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002864/0.2251, allocations: 274.4 kB / 346.4 MB, free: 12.48 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001305/0.2264, allocations: 0.8362 MB / 347.2 MB, free: 11.64 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006255/0.2327, allocations: 3.792 MB / 351 MB, free: 7.797 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000217/0.2329, allocations: 365.7 kB / 351.3 MB, free: 7.418 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000623/0.2335, allocations: 390.9 kB / 351.7 MB, free: 7.031 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005911/0.2341, allocations: 0.5599 MB / 352.3 MB, free: 6.465 MB / 330.7 MB Notification: Performance of SimCode: time 1.042e-06/0.2341, allocations: 0 / 352.3 MB, free: 6.465 MB / 330.7 MB Notification: Performance of Templates: time 0.04652/0.2807, allocations: 38.5 MB / 390.8 MB, free: 492 kB / 362.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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3761131623759866]