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.001322/0.001322, allocations: 80.8 kB / 21.5 MB, free: 2.996 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.001029/0.001029, allocations: 171 kB / 24.91 MB, free: 9.156 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.9843/0.9843, allocations: 177.1 MB / 205.3 MB, free: 5.488 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.984e-06/1.984e-06, allocations: 0 / 273.5 MB, free: 1.277 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.986e-05/2.184e-05, allocations: 6.312 kB / 273.5 MB, free: 1.27 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.00905/0.009072, allocations: 13.12 MB / 286.6 MB, free: 4.094 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1279/0.137, allocations: 19.41 MB / 306 MB, free: 10.57 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009344/0.1379, allocations: 187.2 kB / 306.2 MB, free: 10.44 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001603/0.1395, allocations: 1.076 MB / 307.3 MB, free: 9.926 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003655/0.1432, allocations: 2.341 MB / 309.6 MB, free: 8.613 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00217/0.1454, allocations: 1.397 MB / 311 MB, free: 7.723 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004222/0.1496, allocations: 6.712 MB / 317.7 MB, free: 4.43 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003334/0.1499, allocations: 275.5 kB / 318 MB, free: 4.227 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001794/0.1517, allocations: 2.979 MB / 321 MB, free: 1.406 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005624/0.1523, allocations: 0.7824 MB / 321.7 MB, free: 0.6211 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.843e-05/0.1524, allocations: 68 kB / 321.8 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001646/0.154, allocations: 1.268 MB / 323.1 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001579/0.1542, allocations: 313.8 kB / 323.4 MB, free: 14.98 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004876/0.1547, allocations: 0.7087 MB / 324.1 MB, free: 14.27 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001991/0.1566, allocations: 2.716 MB / 326.8 MB, free: 11.54 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.1566, allocations: 0 / 326.8 MB, free: 11.54 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1566, allocations: 0 / 326.8 MB, free: 11.54 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.292e-05/0.1567, allocations: 0 / 326.8 MB, free: 11.54 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.002369/0.159, allocations: 3.491 MB / 330.3 MB, free: 8 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.028e-05/0.1591, allocations: 8.031 kB / 330.3 MB, free: 7.992 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002167/0.1593, allocations: 271.6 kB / 330.6 MB, free: 7.727 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001804/0.1611, allocations: 2.102 MB / 332.7 MB, free: 5.508 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.229e-05/0.1611, allocations: 36.98 kB / 332.7 MB, free: 5.469 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.498e-05/0.1612, allocations: 44 kB / 332.8 MB, free: 5.426 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004635/0.1617, allocations: 447.5 kB / 333.2 MB, free: 4.98 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.1617, allocations: 7.938 kB / 333.2 MB, free: 4.973 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.845e-05/0.1617, allocations: 23.94 kB / 333.2 MB, free: 4.949 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.408e-05/0.1617, allocations: 19.98 kB / 333.2 MB, free: 4.93 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003063/0.162, allocations: 203.8 kB / 333.4 MB, free: 4.734 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001816/0.1638, allocations: 1.433 MB / 334.9 MB, free: 3.273 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002937/0.1641, allocations: 309.3 kB / 335.2 MB, free: 2.965 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002747/0.1644, allocations: 335.2 kB / 335.5 MB, free: 2.633 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02146/0.1859, allocations: 22.93 MB / 358.4 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002257/0.1861, allocations: 206.1 kB / 358.6 MB, free: 10.63 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 1.913e-06/0.1861, allocations: 0 / 358.6 MB, free: 10.63 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.001194/0.1873, allocations: 0.6558 MB / 359.3 MB, free: 9.961 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.339e-05/0.1873, allocations: 59.41 kB / 359.3 MB, free: 9.891 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001391/0.1887, allocations: 2.519 MB / 361.9 MB, free: 7.344 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.301e-05/0.1887, allocations: 33.7 kB / 361.9 MB, free: 7.305 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003601/0.1891, allocations: 0.7151 MB / 362.6 MB, free: 6.582 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.649e-05/0.1892, allocations: 178.5 kB / 362.8 MB, free: 6.406 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001592/0.1894, allocations: 182.3 kB / 363 MB, free: 6.223 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.95e-05/0.1894, allocations: 337.9 kB / 363.3 MB, free: 5.887 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001031/0.1895, allocations: 73.95 kB / 363.4 MB, free: 5.812 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002608/0.1898, allocations: 439 kB / 363.8 MB, free: 5.219 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004444/0.1902, allocations: 0.6116 MB / 364.4 MB, free: 4.438 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/0.1903, allocations: 4 kB / 364.4 MB, free: 4.434 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0006721/0.1909, allocations: 0.7118 MB / 365.1 MB, free: 3.711 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.1909, allocations: 8 kB / 365.1 MB, free: 3.703 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.936e-05/0.191, allocations: 20 kB / 365.2 MB, free: 3.684 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002651/0.1913, allocations: 152.2 kB / 365.3 MB, free: 3.535 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002901/0.1915, allocations: 175.7 kB / 365.5 MB, free: 3.363 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007172/0.1923, allocations: 0.6498 MB / 366.1 MB, free: 2.688 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004096/0.1927, allocations: 107.4 kB / 366.2 MB, free: 2.582 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.985e-05/0.1927, allocations: 32 kB / 366.3 MB, free: 2.551 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.0002533/0.193, allocations: 175.8 kB / 366.4 MB, free: 2.371 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001639/0.1932, allocations: 239.7 kB / 366.7 MB, free: 2.137 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001001/0.1942, allocations: 0.8019 MB / 367.5 MB, free: 1.328 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.1942, allocations: 4 kB / 367.5 MB, free: 1.324 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.1942, allocations: 5.875 kB / 367.5 MB, free: 1.32 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.728e-06/0.1942, allocations: 7.984 kB / 367.5 MB, free: 1.312 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001357/0.1955, allocations: 1.583 MB / 369.1 MB, free: 15.67 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.885e-05/0.1956, allocations: 16.02 kB / 369.1 MB, free: 15.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001329/0.1957, allocations: 51.97 kB / 369.1 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00021/0.1959, allocations: 136.7 kB / 369.3 MB, free: 15.47 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.589e-05/0.1959, allocations: 11.98 kB / 369.3 MB, free: 15.46 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003879/0.1963, allocations: 0.6273 MB / 369.9 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.1963, allocations: 4 kB / 369.9 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005271/0.1969, allocations: 0.598 MB / 370.5 MB, free: 14.17 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003296/0.1972, allocations: 369.4 kB / 370.9 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001512/0.1973, allocations: 15.94 kB / 370.9 MB, free: 13.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002917/0.1976, allocations: 31.91 kB / 370.9 MB, free: 13.76 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.1e-05/0.1977, allocations: 39.88 kB / 371 MB, free: 13.72 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.267e-05/0.1978, allocations: 18.86 kB / 371 MB, free: 13.7 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008456/0.1986, allocations: 1.336 MB / 372.3 MB, free: 12.36 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1986, allocations: 0 / 372.3 MB, free: 12.36 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008246/0.1994, allocations: 0.5696 MB / 372.9 MB, free: 11.79 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.001118/0.2005, allocations: 0.9268 MB / 373.8 MB, free: 10.84 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000538/0.2011, allocations: 496.4 kB / 374.3 MB, free: 10.33 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.669e-05/0.2011, allocations: 40.5 kB / 374.3 MB, free: 10.29 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002657/0.2014, allocations: 275.9 kB / 374.6 MB, free: 10 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001166/0.2025, allocations: 0.6022 MB / 375.2 MB, free: 9.402 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003061/0.2056, allocations: 3.742 MB / 378.9 MB, free: 5.586 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002099/0.2058, allocations: 365.8 kB / 379.3 MB, free: 5.207 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005777/0.2064, allocations: 390.9 kB / 379.7 MB, free: 4.82 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005764/0.207, allocations: 0.5538 MB / 380.2 MB, free: 4.258 MB / 330.7 MB Notification: Performance of SimCode: time 6.61e-07/0.207, allocations: 0 / 380.2 MB, free: 4.258 MB / 330.7 MB Notification: Performance of Templates: time 0.03991/0.2469, allocations: 37.29 MB / 417.5 MB, free: 15.47 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 -s gbode -gbm=radauIIA3 -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.2266852180473506]