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.001593/0.001593, allocations: 108.6 kB / 21.18 MB, free: 0.7812 MB / 14.72 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.001669/0.001669, allocations: 185.9 kB / 24.47 MB, free: 4.207 MB / 14.72 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 1.409/1.409, allocations: 225.6 MB / 253.3 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001608/0.001608, allocations: 51.92 kB / 371.7 MB, free: 9.391 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2453/0.247, allocations: 52.18 MB / 423.9 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01641/0.2634, allocations: 14.09 MB / 438 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0285/0.2919, allocations: 20.34 MB / 458.3 MB, free: 12.18 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002095/0.294, allocations: 189.8 kB / 458.5 MB, free: 11.99 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002979/0.2969, allocations: 1.13 MB / 459.6 MB, free: 10.86 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006996/0.3039, allocations: 2.316 MB / 461.9 MB, free: 8.52 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004594/0.3085, allocations: 1.437 MB / 463.4 MB, free: 7.078 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01046/0.319, allocations: 6.408 MB / 469.8 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006218/0.3196, allocations: 249 kB / 470 MB, free: 384 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001701/0.3213, allocations: 1.108 MB / 471.1 MB, free: 15.26 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001394/0.3227, allocations: 1.052 MB / 472.2 MB, free: 14.2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001608/0.3229, allocations: 72 kB / 472.2 MB, free: 14.13 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003843/0.3267, allocations: 1.471 MB / 473.7 MB, free: 12.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003139/0.327, allocations: 309.7 kB / 474 MB, free: 12.36 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0013/0.3283, allocations: 1.292 MB / 475.3 MB, free: 11.05 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004899/0.3332, allocations: 3.655 MB / 479 MB, free: 7.383 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.3332, allocations: 4 kB / 479 MB, free: 7.379 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3332, allocations: 0 / 479 MB, free: 7.379 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.329e-05/0.3333, allocations: 0 / 479 MB, free: 7.379 MB / 382.1 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.005247/0.3385, allocations: 3.551 MB / 482.5 MB, free: 3.773 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.3385, allocations: 8.031 kB / 482.5 MB, free: 3.766 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004209/0.339, allocations: 393.5 kB / 482.9 MB, free: 3.379 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00372/0.3427, allocations: 2.358 MB / 485.3 MB, free: 0.9219 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.749e-05/0.3427, allocations: 33 kB / 485.3 MB, free: 0.8867 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001175/0.3428, allocations: 51.95 kB / 485.4 MB, free: 0.8359 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001335/0.3442, allocations: 0.7031 MB / 486.1 MB, free: 128 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.3442, allocations: 0 / 486.1 MB, free: 128 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.871e-05/0.3443, allocations: 23.98 kB / 486.1 MB, free: 104 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.925e-05/0.3443, allocations: 16 kB / 486.1 MB, free: 88 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001562/0.3458, allocations: 0.7929 MB / 486.9 MB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005035/0.3509, allocations: 2.831 MB / 489.7 MB, free: 12.41 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001205/0.3521, allocations: 0.5636 MB / 490.3 MB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000998/0.3531, allocations: 0.5849 MB / 490.9 MB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02553/0.3786, allocations: 13.72 MB / 0.4928 GB, free: 13.15 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007689/0.3794, allocations: 369.6 kB / 0.4931 GB, free: 12.78 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.535e-06/0.3794, allocations: 0 / 0.4931 GB, free: 12.78 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003212/0.3826, allocations: 1.314 MB / 0.4944 GB, free: 11.45 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.121e-05/0.3827, allocations: 67.34 kB / 0.4945 GB, free: 11.37 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003606/0.3863, allocations: 2.799 MB / 0.4972 GB, free: 8.551 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.562e-05/0.3863, allocations: 33.7 kB / 0.4972 GB, free: 8.512 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001311/0.3876, allocations: 1.396 MB / 0.4986 GB, free: 7.109 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002188/0.3878, allocations: 178.6 kB / 0.4988 GB, free: 6.934 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002954/0.3881, allocations: 226.3 kB / 0.499 GB, free: 6.707 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.3883, allocations: 345.9 kB / 0.4993 GB, free: 6.363 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005638/0.3889, allocations: 229.9 kB / 0.4995 GB, free: 6.137 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008345/0.3897, allocations: 0.5928 MB / 0.5001 GB, free: 5.375 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001464/0.3912, allocations: 0.8841 MB / 0.501 GB, free: 4.32 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/0.3912, allocations: 4 kB / 0.501 GB, free: 4.316 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002343/0.3935, allocations: 1.285 MB / 0.5022 GB, free: 3.02 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.473e-05/0.3935, allocations: 12 kB / 0.5022 GB, free: 3.008 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001287/0.3937, allocations: 80 kB / 0.5023 GB, free: 2.93 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005769/0.3942, allocations: 278.9 kB / 0.5026 GB, free: 2.656 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005651/0.3948, allocations: 167.6 kB / 0.5027 GB, free: 2.492 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001002/0.3958, allocations: 0.8803 MB / 0.5036 GB, free: 1.586 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009343/0.3967, allocations: 115.3 kB / 0.5037 GB, free: 1.473 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001008/0.3968, allocations: 67.94 kB / 0.5038 GB, free: 1.406 MB / 414.1 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.0007353/0.3976, allocations: 421.5 kB / 0.5042 GB, free: 0.9844 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000416/0.398, allocations: 381.6 kB / 0.5045 GB, free: 0.6094 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002745/0.4007, allocations: 1.267 MB / 0.5058 GB, free: 15.33 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.706e-06/0.4007, allocations: 7.938 kB / 0.5058 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.4007, allocations: 0 / 0.5058 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.4008, allocations: 7.922 kB / 0.5058 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003791/0.4045, allocations: 2.153 MB / 0.5079 GB, free: 13.08 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000113/0.4047, allocations: 68 kB / 0.508 GB, free: 13.02 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003087/0.405, allocations: 68 kB / 0.508 GB, free: 12.95 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004704/0.4054, allocations: 262.8 kB / 0.5083 GB, free: 12.69 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.78e-05/0.4055, allocations: 31.98 kB / 0.5083 GB, free: 12.66 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009724/0.4065, allocations: 0.8646 MB / 0.5091 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.4065, allocations: 0 / 0.5091 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001923/0.4084, allocations: 1.139 MB / 0.5103 GB, free: 10.6 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008785/0.4093, allocations: 407.2 kB / 0.5106 GB, free: 10.2 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002797/0.4096, allocations: 12 kB / 0.5107 GB, free: 10.18 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006294/0.4102, allocations: 31.95 kB / 0.5107 GB, free: 10.15 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000149/0.4103, allocations: 63.94 kB / 0.5107 GB, free: 10.09 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.353e-05/0.4104, allocations: 39.98 kB / 0.5108 GB, free: 10.05 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00246/0.4129, allocations: 1.827 MB / 0.5126 GB, free: 8.219 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4129, allocations: 0 / 0.5126 GB, free: 8.219 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001304/0.4142, allocations: 0.5657 MB / 0.5131 GB, free: 7.652 MB / 430.1 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.001145/0.4153, allocations: 0.7719 MB / 0.5139 GB, free: 6.875 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001768/0.4171, allocations: 0.8183 MB / 0.5147 GB, free: 6.031 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.4171, allocations: 0 / 0.5147 GB, free: 6.031 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000933/0.418, allocations: 480.8 kB / 0.5151 GB, free: 5.539 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002331/0.4204, allocations: 0.5951 MB / 0.5157 GB, free: 4.938 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006232/0.4266, allocations: 4.039 MB / 0.5197 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001305/0.4279, allocations: 1.596 MB / 0.5212 GB, free: 15.21 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003841/0.4283, allocations: 167.4 kB / 0.5214 GB, free: 15.05 MB / 446.1 MB Notification: Performance of SimCode: time 1.553e-06/0.4283, allocations: 0 / 0.5214 GB, free: 15.05 MB / 446.1 MB Notification: Performance of Templates: time 0.2539/0.6822, allocations: 48.07 MB / 0.5683 GB, free: 86.11 MB / 446.1 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 11.024595713010058]