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.001146/0.001146, allocations: 80.06 kB / 21.18 MB, free: 3.383 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.00128/0.00128, allocations: 145.1 kB / 24.54 MB, free: 28 kB / 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.8981/0.8981, allocations: 173.4 MB / 201.2 MB, free: 9.297 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.653e-06/1.653e-06, allocations: 0 / 268 MB, free: 6.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.804e-05/1.97e-05, allocations: 2.312 kB / 268 MB, free: 6.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01287/0.01289, allocations: 13.38 MB / 281.4 MB, free: 8.988 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1235/0.1364, allocations: 19.35 MB / 300.7 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002381/0.1387, allocations: 188.6 kB / 300.9 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002457/0.1412, allocations: 1.043 MB / 301.9 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006318/0.1475, allocations: 2.388 MB / 304.3 MB, free: 12.17 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004332/0.1518, allocations: 1.435 MB / 305.8 MB, free: 11.78 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006853/0.1587, allocations: 6.679 MB / 312.4 MB, free: 9.516 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005206/0.1592, allocations: 242.1 kB / 312.7 MB, free: 9.355 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002907/0.1621, allocations: 2.929 MB / 315.6 MB, free: 8.094 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001066/0.1632, allocations: 0.7855 MB / 316.4 MB, free: 7.805 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001923/0.1634, allocations: 66.69 kB / 316.5 MB, free: 7.781 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002945/0.1663, allocations: 1.194 MB / 317.6 MB, free: 6.621 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001801/0.1665, allocations: 321.8 kB / 318 MB, free: 6.316 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008047/0.1673, allocations: 0.7104 MB / 318.7 MB, free: 5.617 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002967/0.1703, allocations: 2.713 MB / 321.4 MB, free: 3.172 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1703, allocations: 0 / 321.4 MB, free: 3.172 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1703, allocations: 0 / 321.4 MB, free: 3.172 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.784e-05/0.1704, allocations: 0 / 321.4 MB, free: 3.172 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.002744/0.1731, allocations: 3.737 MB / 325.1 MB, free: 15.38 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.1732, allocations: 12.92 kB / 325.1 MB, free: 15.36 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004039/0.1736, allocations: 429.5 kB / 325.6 MB, free: 14.94 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002476/0.176, allocations: 2.619 MB / 328.2 MB, free: 12.3 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.804e-05/0.1761, allocations: 36.98 kB / 328.2 MB, free: 12.27 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.431e-05/0.1761, allocations: 51.95 kB / 328.3 MB, free: 12.21 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007646/0.1769, allocations: 0.5124 MB / 328.8 MB, free: 11.69 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.1769, allocations: 3.938 kB / 328.8 MB, free: 11.69 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.582e-05/0.177, allocations: 23.98 kB / 328.8 MB, free: 11.66 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.057e-05/0.177, allocations: 23.92 kB / 328.8 MB, free: 11.64 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005495/0.1775, allocations: 474.3 kB / 329.3 MB, free: 11.18 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00311/0.1806, allocations: 2.666 MB / 332 MB, free: 8.5 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004583/0.1811, allocations: 350.6 kB / 332.3 MB, free: 8.148 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004113/0.1815, allocations: 433.7 kB / 332.7 MB, free: 7.727 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01464/0.1962, allocations: 15.18 MB / 347.9 MB, free: 8.227 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003268/0.1965, allocations: 278.5 kB / 348.2 MB, free: 7.941 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 2.355e-06/0.1965, allocations: 0 / 348.2 MB, free: 7.941 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.001501/0.198, allocations: 1.059 MB / 349.2 MB, free: 6.875 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.623e-05/0.198, allocations: 63.39 kB / 349.3 MB, free: 6.801 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002335/0.2004, allocations: 2.991 MB / 352.3 MB, free: 3.77 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.807e-05/0.2004, allocations: 33.7 kB / 352.3 MB, free: 3.73 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008941/0.2013, allocations: 1.567 MB / 353.9 MB, free: 2.156 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001035/0.2014, allocations: 166.7 kB / 354 MB, free: 1.996 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000182/0.2016, allocations: 236 kB / 354.3 MB, free: 1.758 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.2017, allocations: 0.5121 MB / 354.8 MB, free: 1.238 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001816/0.2019, allocations: 129.9 kB / 354.9 MB, free: 1.109 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003772/0.2023, allocations: 0.6284 MB / 355.5 MB, free: 248 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006402/0.2029, allocations: 0.8324 MB / 356.4 MB, free: 15.18 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.123e-06/0.2029, allocations: 4 kB / 356.4 MB, free: 15.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001136/0.2041, allocations: 1.105 MB / 357.5 MB, free: 14.07 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.2041, allocations: 8.219 kB / 357.5 MB, free: 14.06 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.447e-05/0.2041, allocations: 84 kB / 357.6 MB, free: 13.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003552/0.2045, allocations: 262.3 kB / 357.8 MB, free: 13.72 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000313/0.2048, allocations: 171.7 kB / 358 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006273/0.2054, allocations: 1.073 MB / 359.1 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004895/0.2059, allocations: 114.8 kB / 359.2 MB, free: 12.34 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.108e-05/0.206, allocations: 64 kB / 359.2 MB, free: 12.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.0002976/0.2063, allocations: 216.3 kB / 359.5 MB, free: 12.05 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002484/0.2066, allocations: 389.7 kB / 359.8 MB, free: 11.67 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001322/0.2079, allocations: 1.079 MB / 360.9 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-06/0.2079, allocations: 8 kB / 360.9 MB, free: 10.58 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.2079, allocations: 0 / 360.9 MB, free: 10.58 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.2079, allocations: 0 / 360.9 MB, free: 10.58 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00207/0.21, allocations: 2.149 MB / 363.1 MB, free: 8.359 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.563e-05/0.21, allocations: 68 kB / 363.1 MB, free: 8.293 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001378/0.2102, allocations: 55.91 kB / 363.2 MB, free: 8.238 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002785/0.2104, allocations: 246 kB / 363.4 MB, free: 7.996 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.869e-05/0.2105, allocations: 28 kB / 363.5 MB, free: 7.969 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005872/0.2111, allocations: 1.072 MB / 364.5 MB, free: 6.867 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.2111, allocations: 0 / 364.5 MB, free: 6.867 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008513/0.2119, allocations: 1.044 MB / 365.6 MB, free: 5.777 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003889/0.2123, allocations: 427.2 kB / 366 MB, free: 5.355 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001618/0.2125, allocations: 11.98 kB / 366 MB, free: 5.344 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003125/0.2128, allocations: 27.97 kB / 366 MB, free: 5.316 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.2129, allocations: 59.92 kB / 366.1 MB, free: 5.258 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.602e-05/0.2129, allocations: 36 kB / 366.1 MB, free: 5.223 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001392/0.2143, allocations: 1.651 MB / 367.8 MB, free: 3.566 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2143, allocations: 0 / 367.8 MB, free: 3.566 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008766/0.2152, allocations: 0.5696 MB / 368.4 MB, free: 2.996 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.0008908/0.2161, allocations: 0.8214 MB / 369.2 MB, free: 2.305 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008845/0.217, allocations: 0.6661 MB / 369.8 MB, free: 1.617 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.217, allocations: 0 / 369.8 MB, free: 1.617 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003957/0.2174, allocations: 406.5 kB / 370.2 MB, free: 1.191 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001363/0.2187, allocations: 0.6201 MB / 370.9 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003385/0.2221, allocations: 3.765 MB / 374.6 MB, free: 12.73 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002292/0.2224, allocations: 365.8 kB / 375 MB, free: 12.35 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006283/0.223, allocations: 390.9 kB / 375.4 MB, free: 11.96 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001466/0.2231, allocations: 160.5 kB / 375.5 MB, free: 11.81 MB / 330.7 MB Notification: Performance of SimCode: time 1.222e-06/0.2231, allocations: 0 / 375.5 MB, free: 11.81 MB / 330.7 MB Notification: Performance of Templates: time 0.05175/0.2749, allocations: 38.9 MB / 414.4 MB, free: 5.383 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 -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.438072103075683]