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.002349/0.002349, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.002729/0.002729, allocations: 165.3 kB / 24.27 MB, free: 156 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 1.583/1.583, allocations: 177.1 MB / 204.6 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] 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.263e-06/1.263e-06, allocations: 0 / 272.3 MB, free: 1.859 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.426e-05/2.552e-05, allocations: 6.25 kB / 272.3 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01694/0.01697, allocations: 13.34 MB / 285.6 MB, free: 4.457 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1334/0.1504, allocations: 19.34 MB / 305 MB, free: 11.12 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001796/0.1522, allocations: 190.5 kB / 305.2 MB, free: 10.98 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00247/0.1546, allocations: 1.034 MB / 306.2 MB, free: 10.48 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006249/0.1609, allocations: 2.379 MB / 308.6 MB, free: 9.016 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004365/0.1653, allocations: 1.44 MB / 310 MB, free: 8.098 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008259/0.1735, allocations: 6.638 MB / 316.6 MB, free: 4.844 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005897/0.1741, allocations: 240.7 kB / 316.9 MB, free: 4.68 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003432/0.1775, allocations: 1.501 MB / 318.4 MB, free: 3.539 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001094/0.1786, allocations: 0.7589 MB / 319.1 MB, free: 2.777 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001811/0.1788, allocations: 72 kB / 319.2 MB, free: 2.707 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003358/0.1822, allocations: 1.21 MB / 320.4 MB, free: 1.496 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000228/0.1824, allocations: 313.7 kB / 320.7 MB, free: 1.188 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000898/0.1833, allocations: 0.697 MB / 321.4 MB, free: 500 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006668/0.19, allocations: 3.639 MB / 325.1 MB, free: 12.84 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.19, allocations: 0 / 325.1 MB, free: 12.84 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.539e-06/0.19, allocations: 3.984 kB / 325.1 MB, free: 12.83 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.401e-05/0.1901, allocations: 0 / 325.1 MB, free: 12.83 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.00695/0.197, allocations: 3.875 MB / 328.9 MB, free: 8.898 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.197, allocations: 12.03 kB / 329 MB, free: 8.887 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006895/0.1977, allocations: 429.5 kB / 329.4 MB, free: 8.465 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004996/0.2027, allocations: 2.701 MB / 332.1 MB, free: 5.664 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.5e-05/0.2028, allocations: 33 kB / 332.1 MB, free: 5.629 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001462/0.2029, allocations: 55.95 kB / 332.2 MB, free: 5.574 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001356/0.2043, allocations: 0.6055 MB / 332.8 MB, free: 4.965 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.611e-05/0.2043, allocations: 0 / 332.8 MB, free: 4.965 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.07e-05/0.2044, allocations: 27.92 kB / 332.8 MB, free: 4.938 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.63e-05/0.2044, allocations: 19.98 kB / 332.8 MB, free: 4.918 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001487/0.2059, allocations: 0.6758 MB / 333.5 MB, free: 4.246 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006487/0.2124, allocations: 3.132 MB / 336.6 MB, free: 1.066 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001165/0.2135, allocations: 481.8 kB / 337.1 MB, free: 0.582 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001196/0.2147, allocations: 0.5096 MB / 337.6 MB, free: 68 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03142/0.2462, allocations: 15.36 MB / 353 MB, free: 324 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000761/0.2469, allocations: 359.5 kB / 353.3 MB, free: 15.95 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.094e-06/0.2469, allocations: 0 / 353.3 MB, free: 15.95 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.003392/0.2503, allocations: 1.284 MB / 354.6 MB, free: 14.66 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.637e-05/0.2504, allocations: 59.41 kB / 354.7 MB, free: 14.59 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005303/0.2557, allocations: 3.745 MB / 358.4 MB, free: 10.8 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.959e-05/0.2558, allocations: 33.7 kB / 358.4 MB, free: 10.76 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002085/0.2578, allocations: 1.687 MB / 360.1 MB, free: 9.066 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002539/0.2581, allocations: 186.6 kB / 360.3 MB, free: 8.883 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003745/0.2585, allocations: 244 kB / 360.5 MB, free: 8.637 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003017/0.2588, allocations: 0.5238 MB / 361.1 MB, free: 8.105 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005719/0.2593, allocations: 210.5 kB / 361.3 MB, free: 7.898 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001042/0.2604, allocations: 0.7369 MB / 362 MB, free: 6.934 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001696/0.2621, allocations: 1.021 MB / 363 MB, free: 5.68 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.187e-06/0.2621, allocations: 4 kB / 363 MB, free: 5.676 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002667/0.2648, allocations: 1.297 MB / 364.3 MB, free: 4.363 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.685e-05/0.2648, allocations: 10.81 kB / 364.3 MB, free: 4.355 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001261/0.2649, allocations: 82.81 kB / 364.4 MB, free: 4.277 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006585/0.2656, allocations: 280.2 kB / 364.7 MB, free: 4 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006153/0.2662, allocations: 171.7 kB / 364.9 MB, free: 3.832 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001581/0.2678, allocations: 1.154 MB / 366 MB, free: 2.648 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001057/0.2688, allocations: 111.3 kB / 366.1 MB, free: 2.539 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001339/0.269, allocations: 64 kB / 366.2 MB, free: 2.477 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.0008627/0.2698, allocations: 468.9 kB / 366.6 MB, free: 2.008 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005422/0.2704, allocations: 389.7 kB / 367 MB, free: 1.625 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00301/0.2734, allocations: 1.232 MB / 368.3 MB, free: 396 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.187e-06/0.2734, allocations: 7.938 kB / 368.3 MB, free: 388 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.2734, allocations: 0 / 368.3 MB, free: 388 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.234e-05/0.2734, allocations: 7.969 kB / 368.3 MB, free: 380 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005/0.2784, allocations: 2.62 MB / 370.9 MB, free: 13.68 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001126/0.2785, allocations: 68 kB / 371 MB, free: 13.61 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002916/0.2788, allocations: 51.95 kB / 371 MB, free: 13.56 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000575/0.2794, allocations: 271.6 kB / 371.3 MB, free: 13.29 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.522e-05/0.2794, allocations: 39.92 kB / 371.3 MB, free: 13.25 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001342/0.2808, allocations: 1.132 MB / 372.5 MB, free: 12.09 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.2808, allocations: 4 kB / 372.5 MB, free: 12.08 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002487/0.2833, allocations: 1.191 MB / 373.6 MB, free: 10.84 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001062/0.2843, allocations: 423.2 kB / 374.1 MB, free: 10.42 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003045/0.2846, allocations: 16.03 kB / 374.1 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006328/0.2853, allocations: 19.97 kB / 374.1 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001726/0.2854, allocations: 63.88 kB / 374.2 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.305e-05/0.2855, allocations: 44.8 kB / 374.2 MB, free: 10.28 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003457/0.289, allocations: 2.112 MB / 376.3 MB, free: 8.164 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.289, allocations: 0 / 376.3 MB, free: 8.164 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001506/0.2905, allocations: 0.5697 MB / 376.9 MB, free: 7.594 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.001392/0.2919, allocations: 0.835 MB / 377.7 MB, free: 6.75 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001875/0.2938, allocations: 0.8313 MB / 378.5 MB, free: 5.891 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.2938, allocations: 0 / 378.5 MB, free: 5.891 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009697/0.2947, allocations: 486.3 kB / 379 MB, free: 5.387 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002782/0.2975, allocations: 0.6258 MB / 379.6 MB, free: 4.766 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006884/0.3044, allocations: 4.032 MB / 383.7 MB, free: 0.6523 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001221/0.3056, allocations: 1.052 MB / 384.7 MB, free: 15.57 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001205/0.3068, allocations: 386.9 kB / 385.1 MB, free: 15.19 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002717/0.3071, allocations: 164.5 kB / 385.3 MB, free: 15.02 MB / 346.7 MB Notification: Performance of SimCode: time 1.553e-06/0.3071, allocations: 0 / 385.3 MB, free: 15.02 MB / 346.7 MB Notification: Performance of Templates: time 0.06426/0.3714, allocations: 32.46 MB / 417.7 MB, free: 15.05 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.770505899912678]