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.001635/0.001635, allocations: 117 kB / 21.18 MB, free: 0.6289 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.001758/0.001758, allocations: 209.3 kB / 24.47 MB, free: 3.898 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.446/1.446, allocations: 230.4 MB / 258.1 MB, free: 8.16 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.001991/0.001991, allocations: 67.83 kB / 378.7 MB, free: 2.902 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2386/0.2406, allocations: 53.32 MB / 432 MB, free: 7.387 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01454/0.2551, allocations: 14.08 MB / 446.1 MB, free: 9.246 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02523/0.2804, allocations: 20.38 MB / 466.5 MB, free: 4.793 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002282/0.2827, allocations: 122.9 kB / 466.6 MB, free: 4.672 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003248/0.2859, allocations: 1.125 MB / 467.7 MB, free: 3.539 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007528/0.2934, allocations: 2.319 MB / 470.1 MB, free: 1.203 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004702/0.2981, allocations: 1.445 MB / 471.5 MB, free: 15.75 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01061/0.3087, allocations: 6.457 MB / 478 MB, free: 9.277 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006474/0.3094, allocations: 248.5 kB / 478.2 MB, free: 9 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001779/0.3112, allocations: 1.065 MB / 479.3 MB, free: 7.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001685/0.3129, allocations: 1.056 MB / 480.3 MB, free: 6.867 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001986/0.3131, allocations: 72 kB / 480.4 MB, free: 6.797 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004063/0.3171, allocations: 1.479 MB / 481.9 MB, free: 5.316 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004145/0.3175, allocations: 305.8 kB / 482.2 MB, free: 5.016 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001669/0.3192, allocations: 1.3 MB / 483.5 MB, free: 3.707 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006308/0.3255, allocations: 3.655 MB / 487.1 MB, free: 36 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3255, allocations: 0 / 487.1 MB, free: 36 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.133e-06/0.3255, allocations: 0 / 487.1 MB, free: 36 kB / 382.1 MB Notification: Performance of Transformations before backend: time 8.626e-05/0.3256, allocations: 0 / 487.1 MB, free: 36 kB / 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.006042/0.3316, allocations: 3.622 MB / 490.8 MB, free: 12.34 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.3317, allocations: 8.031 kB / 490.8 MB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005188/0.3322, allocations: 393.6 kB / 491.2 MB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004114/0.3363, allocations: 2.535 MB / 493.7 MB, free: 9.336 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.65e-05/0.3364, allocations: 29 kB / 493.7 MB, free: 9.305 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001371/0.3365, allocations: 51.95 kB / 493.8 MB, free: 9.254 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001352/0.3378, allocations: 0.6992 MB / 494.5 MB, free: 8.547 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.3379, allocations: 0 / 494.5 MB, free: 8.547 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.948e-05/0.3379, allocations: 19.98 kB / 494.5 MB, free: 8.527 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.633e-05/0.338, allocations: 23.98 kB / 494.5 MB, free: 8.504 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001575/0.3395, allocations: 0.785 MB / 495.3 MB, free: 7.723 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005373/0.3449, allocations: 2.892 MB / 498.2 MB, free: 4.762 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001292/0.3462, allocations: 0.6313 MB / 498.8 MB, free: 4.102 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001011/0.3472, allocations: 0.5848 MB / 499.4 MB, free: 3.52 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03536/0.3826, allocations: 30.72 MB / 0.5177 GB, free: 0.543 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007799/0.3833, allocations: 365.6 kB / 0.518 GB, free: 180 kB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.876e-06/0.3833, allocations: 0 / 0.518 GB, free: 180 kB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.003367/0.3867, allocations: 1.39 MB / 0.5194 GB, free: 14.75 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.526e-05/0.3868, allocations: 67.34 kB / 0.5195 GB, free: 14.68 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003792/0.3906, allocations: 2.803 MB / 0.5222 GB, free: 11.85 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.817e-05/0.3906, allocations: 33.7 kB / 0.5222 GB, free: 11.81 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001354/0.392, allocations: 1.392 MB / 0.5236 GB, free: 10.41 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001944/0.3922, allocations: 174.6 kB / 0.5238 GB, free: 10.24 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003135/0.3925, allocations: 230.3 kB / 0.524 GB, free: 10.01 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.3926, allocations: 338 kB / 0.5243 GB, free: 9.676 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000591/0.3932, allocations: 241.8 kB / 0.5245 GB, free: 9.438 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008574/0.3941, allocations: 0.5891 MB / 0.5251 GB, free: 8.676 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001546/0.3956, allocations: 0.8802 MB / 0.526 GB, free: 7.625 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.276e-06/0.3957, allocations: 4 kB / 0.526 GB, free: 7.621 MB / 446.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002398/0.398, allocations: 1.282 MB / 0.5272 GB, free: 6.332 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.3981, allocations: 8 kB / 0.5272 GB, free: 6.324 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001213/0.3982, allocations: 83.98 kB / 0.5273 GB, free: 6.242 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005549/0.3987, allocations: 280.7 kB / 0.5276 GB, free: 5.965 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005873/0.3993, allocations: 171.7 kB / 0.5277 GB, free: 5.797 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001007/0.4003, allocations: 0.8803 MB / 0.5286 GB, free: 4.891 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000997/0.4013, allocations: 115.2 kB / 0.5287 GB, free: 4.777 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001052/0.4014, allocations: 67.98 kB / 0.5288 GB, free: 4.711 MB / 446.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.0007498/0.4022, allocations: 425.5 kB / 0.5292 GB, free: 4.285 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004356/0.4026, allocations: 381.6 kB / 0.5296 GB, free: 3.91 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00283/0.4055, allocations: 1.259 MB / 0.5308 GB, free: 2.637 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.008e-05/0.4055, allocations: 8 kB / 0.5308 GB, free: 2.629 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.4055, allocations: 0 / 0.5308 GB, free: 2.629 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.4055, allocations: 3.938 kB / 0.5308 GB, free: 2.625 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003913/0.4094, allocations: 2.181 MB / 0.5329 GB, free: 372 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001072/0.4095, allocations: 71.98 kB / 0.533 GB, free: 300 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000318/0.4098, allocations: 71.81 kB / 0.5331 GB, free: 228 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004782/0.4103, allocations: 262.8 kB / 0.5333 GB, free: 15.96 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.716e-05/0.4104, allocations: 28 kB / 0.5333 GB, free: 15.94 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009659/0.4113, allocations: 0.8647 MB / 0.5342 GB, free: 15.05 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.813e-06/0.4113, allocations: 8.016 kB / 0.5342 GB, free: 15.04 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001986/0.4133, allocations: 1.135 MB / 0.5353 GB, free: 13.86 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000915/0.4142, allocations: 486.4 kB / 0.5358 GB, free: 13.37 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002994/0.4145, allocations: 16 kB / 0.5358 GB, free: 13.35 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006324/0.4152, allocations: 31.95 kB / 0.5358 GB, free: 13.32 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001488/0.4153, allocations: 55.95 kB / 0.5359 GB, free: 13.27 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.584e-05/0.4154, allocations: 43.98 kB / 0.5359 GB, free: 13.22 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002509/0.4179, allocations: 1.82 MB / 0.5377 GB, free: 11.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4179, allocations: 0 / 0.5377 GB, free: 11.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001339/0.4192, allocations: 0.5697 MB / 0.5382 GB, free: 10.83 MB / 462.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.001144/0.4204, allocations: 0.7797 MB / 0.539 GB, free: 10.04 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001818/0.4222, allocations: 0.811 MB / 0.5398 GB, free: 9.207 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.4222, allocations: 0 / 0.5398 GB, free: 9.207 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009477/0.4231, allocations: 476 kB / 0.5402 GB, free: 8.719 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002476/0.4256, allocations: 0.6108 MB / 0.5408 GB, free: 8.102 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005867/0.4315, allocations: 4.041 MB / 0.5448 GB, free: 3.996 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001206/0.4327, allocations: 1.604 MB / 0.5464 GB, free: 2.363 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003205/0.433, allocations: 167.4 kB / 0.5465 GB, free: 2.199 MB / 462.1 MB Notification: Performance of SimCode: time 6.82e-07/0.433, allocations: 0 / 0.5465 GB, free: 2.199 MB / 462.1 MB Notification: Performance of Templates: time 0.2199/0.6529, allocations: 48.17 MB / 0.5936 GB, free: 84.09 MB / 462.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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 10.743059876840562]