Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001715/0.001715, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002001/0.002001, allocations: 213.2 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.534/1.534, allocations: 230.6 MB / 258.3 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002019/0.002019, allocations: 64.77 kB / 379 MB, free: 2.656 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2434/0.2454, allocations: 53.37 MB / 432.4 MB, free: 6.941 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.0153/0.2607, allocations: 14.08 MB / 446.5 MB, free: 8.812 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02748/0.2882, allocations: 20.38 MB / 466.9 MB, free: 4.352 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001775/0.29, allocations: 193.8 kB / 467 MB, free: 4.16 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002712/0.2927, allocations: 1.131 MB / 468.2 MB, free: 3.027 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006478/0.2992, allocations: 2.32 MB / 470.5 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004002/0.3032, allocations: 1.445 MB / 471.9 MB, free: 15.24 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01004/0.3132, allocations: 6.47 MB / 478.4 MB, free: 8.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005078/0.3137, allocations: 252.9 kB / 478.7 MB, free: 8.469 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001754/0.3155, allocations: 1.108 MB / 479.8 MB, free: 7.355 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001437/0.3169, allocations: 1.052 MB / 480.8 MB, free: 6.297 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001772/0.3171, allocations: 68 kB / 480.9 MB, free: 6.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003854/0.3209, allocations: 1.479 MB / 482.4 MB, free: 4.75 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003427/0.3213, allocations: 317.7 kB / 482.7 MB, free: 4.438 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001366/0.3226, allocations: 1.292 MB / 484 MB, free: 3.137 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005172/0.3278, allocations: 3.648 MB / 487.6 MB, free: 15.47 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.3278, allocations: 4 kB / 487.6 MB, free: 15.47 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3278, allocations: 3.938 kB / 487.6 MB, free: 15.46 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.341e-05/0.3279, allocations: 4 kB / 487.6 MB, free: 15.46 MB / 398.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.005498/0.3334, allocations: 3.553 MB / 491.2 MB, free: 11.86 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.3334, allocations: 12.03 kB / 491.2 MB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004824/0.3339, allocations: 389.6 kB / 491.6 MB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004076/0.338, allocations: 2.351 MB / 493.9 MB, free: 9.012 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.775e-05/0.338, allocations: 37 kB / 494 MB, free: 8.973 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001429/0.3382, allocations: 47.95 kB / 494 MB, free: 8.926 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001452/0.3396, allocations: 0.7108 MB / 494.7 MB, free: 8.211 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.3396, allocations: 0 / 494.7 MB, free: 8.211 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.593e-05/0.3397, allocations: 16 kB / 494.7 MB, free: 8.195 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.543e-05/0.3397, allocations: 27.97 kB / 494.8 MB, free: 8.168 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001662/0.3414, allocations: 0.7929 MB / 495.5 MB, free: 7.375 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005184/0.3466, allocations: 2.824 MB / 498.4 MB, free: 4.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001296/0.3479, allocations: 0.5674 MB / 498.9 MB, free: 3.926 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001097/0.349, allocations: 0.5809 MB / 499.5 MB, free: 3.34 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02669/0.3757, allocations: 13.76 MB / 0.5012 GB, free: 5.191 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008318/0.3765, allocations: 365.6 kB / 0.5016 GB, free: 4.824 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.344e-06/0.3765, allocations: 4 kB / 0.5016 GB, free: 4.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003294/0.3798, allocations: 1.314 MB / 0.5029 GB, free: 3.492 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.271e-05/0.3799, allocations: 67.33 kB / 0.5029 GB, free: 3.414 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003655/0.3835, allocations: 2.796 MB / 0.5057 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.28e-05/0.3836, allocations: 37.7 kB / 0.5057 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001378/0.3849, allocations: 1.4 MB / 0.5071 GB, free: 15.15 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001747/0.3851, allocations: 174.6 kB / 0.5072 GB, free: 14.98 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003138/0.3854, allocations: 226.4 kB / 0.5075 GB, free: 14.75 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.3856, allocations: 337.9 kB / 0.5078 GB, free: 14.41 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006164/0.3862, allocations: 237.8 kB / 0.508 GB, free: 14.18 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009019/0.3871, allocations: 0.5927 MB / 0.5086 GB, free: 13.42 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001575/0.3887, allocations: 0.8802 MB / 0.5095 GB, free: 12.37 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.356e-06/0.3887, allocations: 4 kB / 0.5095 GB, free: 12.37 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002418/0.3911, allocations: 1.281 MB / 0.5107 GB, free: 11.08 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.318e-05/0.3912, allocations: 11.98 kB / 0.5107 GB, free: 11.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001368/0.3913, allocations: 83.94 kB / 0.5108 GB, free: 10.98 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006121/0.3919, allocations: 275 kB / 0.5111 GB, free: 10.71 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006088/0.3925, allocations: 171.7 kB / 0.5112 GB, free: 10.55 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001091/0.3936, allocations: 0.8841 MB / 0.5121 GB, free: 9.637 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000931/0.3945, allocations: 115.3 kB / 0.5122 GB, free: 9.523 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001064/0.3946, allocations: 64 kB / 0.5123 GB, free: 9.461 MB / 430.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.0007496/0.3954, allocations: 417.5 kB / 0.5127 GB, free: 9.043 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004151/0.3958, allocations: 377.7 kB / 0.513 GB, free: 8.672 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002934/0.3987, allocations: 1.263 MB / 0.5142 GB, free: 7.395 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/0.3987, allocations: 4 kB / 0.5143 GB, free: 7.391 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.3987, allocations: 0 / 0.5143 GB, free: 7.391 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.3988, allocations: 7.938 kB / 0.5143 GB, free: 7.383 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003828/0.4026, allocations: 2.153 MB / 0.5164 GB, free: 5.156 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001122/0.4027, allocations: 76.12 kB / 0.5164 GB, free: 5.082 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003263/0.403, allocations: 59.88 kB / 0.5165 GB, free: 5.023 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000513/0.4035, allocations: 275.8 kB / 0.5168 GB, free: 4.754 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.222e-05/0.4036, allocations: 32 kB / 0.5168 GB, free: 4.723 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001018/0.4046, allocations: 0.853 MB / 0.5176 GB, free: 3.844 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.4046, allocations: 7.984 kB / 0.5176 GB, free: 3.836 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002044/0.4067, allocations: 1.139 MB / 0.5187 GB, free: 2.656 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008177/0.4075, allocations: 415.2 kB / 0.5191 GB, free: 2.246 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000286/0.4078, allocations: 8 kB / 0.5191 GB, free: 2.238 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006663/0.4084, allocations: 31.97 kB / 0.5192 GB, free: 2.207 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001651/0.4086, allocations: 67.91 kB / 0.5192 GB, free: 2.141 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.831e-05/0.4087, allocations: 40 kB / 0.5193 GB, free: 2.102 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002659/0.4113, allocations: 1.82 MB / 0.5211 GB, free: 284 kB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4113, allocations: 0 / 0.5211 GB, free: 284 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.001412/0.4128, allocations: 0.5697 MB / 0.5216 GB, free: 15.7 MB / 446.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.001268/0.414, allocations: 0.7758 MB / 0.5224 GB, free: 14.92 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00191/0.4159, allocations: 0.8102 MB / 0.5232 GB, free: 14.09 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.4159, allocations: 4 kB / 0.5232 GB, free: 14.09 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009922/0.4169, allocations: 484.8 kB / 0.5236 GB, free: 13.59 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002295/0.4192, allocations: 0.5937 MB / 0.5242 GB, free: 13 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005857/0.4251, allocations: 3.979 MB / 0.5281 GB, free: 8.965 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001305/0.4264, allocations: 1.604 MB / 0.5297 GB, free: 7.332 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001151/0.4275, allocations: 390.9 kB / 0.53 GB, free: 6.945 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002598/0.4278, allocations: 163.4 kB / 0.5302 GB, free: 6.785 MB / 446.1 MB Notification: Performance of SimCode: time 1.142e-06/0.4278, allocations: 0 / 0.5302 GB, free: 6.785 MB / 446.1 MB Notification: Performance of Templates: time 0.2335/0.6613, allocations: 34.12 MB / 0.5635 GB, free: 87.38 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_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.911306107416749]