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.0009345/0.0009345, allocations: 83.59 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.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.0009426/0.0009426, allocations: 165 kB / 24.56 MB, free: 8 kB / 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.951/0.951, allocations: 177.1 MB / 205 MB, free: 5.609 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 1.683e-06/1.683e-06, allocations: 0 / 273 MB, free: 1.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.59e-05/1.758e-05, allocations: 6.312 kB / 273 MB, free: 1.551 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01299/0.01301, allocations: 13.4 MB / 286.4 MB, free: 4.098 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1317/0.1447, allocations: 19.38 MB / 305.7 MB, free: 11.03 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001211/0.1459, allocations: 191.2 kB / 305.9 MB, free: 10.89 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001624/0.1476, allocations: 1.042 MB / 307 MB, free: 10.39 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003728/0.1513, allocations: 2.386 MB / 309.4 MB, free: 8.91 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002481/0.1538, allocations: 1.432 MB / 310.8 MB, free: 8 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004466/0.1582, allocations: 6.758 MB / 317.5 MB, free: 4.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003328/0.1586, allocations: 249.8 kB / 317.8 MB, free: 4.578 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001873/0.1604, allocations: 2.996 MB / 320.8 MB, free: 1.738 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005479/0.161, allocations: 0.7824 MB / 321.6 MB, free: 0.9531 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001006/0.1611, allocations: 68 kB / 321.6 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00151/0.1626, allocations: 1.206 MB / 322.8 MB, free: 15.68 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001805/0.1628, allocations: 325.8 kB / 323.2 MB, free: 15.36 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005088/0.1633, allocations: 0.7048 MB / 323.9 MB, free: 14.65 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002022/0.1653, allocations: 2.712 MB / 326.6 MB, free: 11.93 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.1653, allocations: 0 / 326.6 MB, free: 11.93 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1653, allocations: 0 / 326.6 MB, free: 11.93 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.696e-05/0.1653, allocations: 3.984 kB / 326.6 MB, free: 11.93 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.002644/0.168, allocations: 3.75 MB / 330.3 MB, free: 8.117 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.207e-05/0.168, allocations: 8.031 kB / 330.3 MB, free: 8.109 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003013/0.1683, allocations: 429.6 kB / 330.8 MB, free: 7.688 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001959/0.1703, allocations: 2.615 MB / 333.4 MB, free: 4.973 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.228e-05/0.1703, allocations: 33 kB / 333.4 MB, free: 4.938 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.501e-05/0.1704, allocations: 55.94 kB / 333.5 MB, free: 4.883 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006139/0.171, allocations: 0.5163 MB / 334 MB, free: 4.359 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.171, allocations: 0 / 334 MB, free: 4.359 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.354e-05/0.171, allocations: 23.92 kB / 334 MB, free: 4.336 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.578e-05/0.171, allocations: 19.98 kB / 334 MB, free: 4.316 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005091/0.1716, allocations: 470.4 kB / 334.5 MB, free: 3.859 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002605/0.1742, allocations: 2.668 MB / 337.1 MB, free: 1.145 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000402/0.1746, allocations: 353.7 kB / 337.5 MB, free: 0.7891 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003878/0.175, allocations: 426.9 kB / 337.9 MB, free: 376 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01337/0.1883, allocations: 15.21 MB / 353.1 MB, free: 0.7695 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002911/0.1886, allocations: 275.8 kB / 353.4 MB, free: 500 kB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.473e-06/0.1886, allocations: 0 / 353.4 MB, free: 500 kB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.001342/0.19, allocations: 1.065 MB / 354.5 MB, free: 15.41 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.568e-05/0.19, allocations: 63.41 kB / 354.5 MB, free: 15.34 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002126/0.1921, allocations: 2.995 MB / 357.5 MB, free: 12.3 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.436e-05/0.1922, allocations: 33.7 kB / 357.5 MB, free: 12.26 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008773/0.193, allocations: 1.562 MB / 359.1 MB, free: 10.69 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.914e-05/0.1931, allocations: 174.6 kB / 359.3 MB, free: 10.52 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001709/0.1933, allocations: 232 kB / 359.5 MB, free: 10.29 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.1934, allocations: 0.5043 MB / 360 MB, free: 9.773 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001717/0.1936, allocations: 129.9 kB / 360.1 MB, free: 9.645 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000377/0.194, allocations: 0.6354 MB / 360.8 MB, free: 8.777 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005955/0.1946, allocations: 0.8379 MB / 361.6 MB, free: 7.707 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/0.1946, allocations: 7.938 kB / 361.6 MB, free: 7.699 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001013/0.1956, allocations: 1.101 MB / 362.7 MB, free: 6.59 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.1956, allocations: 12.22 kB / 362.7 MB, free: 6.578 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.957e-05/0.1957, allocations: 87.98 kB / 362.8 MB, free: 6.492 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003267/0.196, allocations: 255.6 kB / 363.1 MB, free: 6.238 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003447/0.1963, allocations: 167.7 kB / 363.2 MB, free: 6.074 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005875/0.1969, allocations: 1.089 MB / 364.3 MB, free: 4.957 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003917/0.1973, allocations: 103.3 kB / 364.4 MB, free: 4.855 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.498e-05/0.1974, allocations: 60 kB / 364.5 MB, free: 4.797 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.0002673/0.1976, allocations: 220.8 kB / 364.7 MB, free: 4.57 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000327/0.198, allocations: 393.7 kB / 365.1 MB, free: 4.184 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00122/0.1992, allocations: 1.075 MB / 366.1 MB, free: 3.098 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.648e-06/0.1992, allocations: 4 kB / 366.2 MB, free: 3.094 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.1992, allocations: 7.922 kB / 366.2 MB, free: 3.086 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.1992, allocations: 0 / 366.2 MB, free: 3.086 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001862/0.2011, allocations: 2.143 MB / 368.3 MB, free: 0.8672 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.953e-05/0.2011, allocations: 71.98 kB / 368.4 MB, free: 0.7969 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001298/0.2012, allocations: 55.91 kB / 368.4 MB, free: 0.7422 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004839/0.2017, allocations: 239.7 kB / 368.7 MB, free: 0.5039 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.625e-05/0.2018, allocations: 47.86 kB / 368.7 MB, free: 468 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005309/0.2023, allocations: 1.051 MB / 369.8 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.2023, allocations: 4.031 kB / 369.8 MB, free: 15.37 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007818/0.2031, allocations: 1.043 MB / 370.8 MB, free: 14.28 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000343/0.2034, allocations: 419.3 kB / 371.2 MB, free: 13.87 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001516/0.2036, allocations: 12 kB / 371.2 MB, free: 13.86 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002998/0.2039, allocations: 23.97 kB / 371.3 MB, free: 13.83 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/0.204, allocations: 63.81 kB / 371.3 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.246e-05/0.204, allocations: 43.98 kB / 371.4 MB, free: 13.73 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001295/0.2053, allocations: 1.643 MB / 373 MB, free: 12.08 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2053, allocations: 0 / 373 MB, free: 12.08 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007053/0.206, allocations: 0.5697 MB / 373.6 MB, free: 11.51 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.0007392/0.2068, allocations: 0.8319 MB / 374.4 MB, free: 10.67 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006888/0.2074, allocations: 0.6634 MB / 375.1 MB, free: 9.977 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.542e-06/0.2074, allocations: 0 / 375.1 MB, free: 9.977 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003546/0.2078, allocations: 402.3 kB / 375.5 MB, free: 9.551 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001515/0.2093, allocations: 0.6272 MB / 376.1 MB, free: 8.926 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003094/0.2124, allocations: 3.77 MB / 379.9 MB, free: 5.074 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002188/0.2126, allocations: 365.8 kB / 380.2 MB, free: 4.695 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005652/0.2132, allocations: 390.9 kB / 380.6 MB, free: 4.309 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001422/0.2133, allocations: 160.5 kB / 380.7 MB, free: 4.152 MB / 330.7 MB Notification: Performance of SimCode: time 7.81e-07/0.2133, allocations: 0 / 380.7 MB, free: 4.152 MB / 330.7 MB Notification: Performance of Templates: time 0.04515/0.2585, allocations: 38.95 MB / 419.7 MB, free: 13.69 MB / 378.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.5696910242550075]