Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001796/0.001796, allocations: 106 kB / 21.18 MB, free: 0.707 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.002072/0.002072, allocations: 185.3 kB / 24.47 MB, free: 4.074 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.414/1.414, allocations: 207.6 MB / 235.2 MB, free: 10.02 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001842/0.001842, allocations: 55.86 kB / 347.6 MB, free: 9.648 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.2557, allocations: 49.15 MB / 396.8 MB, free: 9.496 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01318/0.2689, allocations: 13.41 MB / 410.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03177/0.3006, allocations: 19.4 MB / 429.6 MB, free: 368 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003566/0.3042, allocations: 195.6 kB / 429.8 MB, free: 224 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00387/0.3081, allocations: 1.104 MB / 430.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009008/0.3171, allocations: 2.288 MB / 433.2 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00553/0.3226, allocations: 1.383 MB / 434.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01174/0.3344, allocations: 6.269 MB / 440.8 MB, free: 7.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008195/0.3352, allocations: 253 kB / 441.1 MB, free: 6.949 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001947/0.3371, allocations: 1.011 MB / 442.1 MB, free: 5.934 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00212/0.3392, allocations: 1.036 MB / 443.1 MB, free: 4.891 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003765/0.3396, allocations: 68 kB / 443.2 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005602/0.3452, allocations: 1.152 MB / 444.4 MB, free: 3.672 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000633/0.3459, allocations: 309.7 kB / 444.7 MB, free: 3.367 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002474/0.3483, allocations: 1.304 MB / 446 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008302/0.3566, allocations: 3.683 MB / 449.6 MB, free: 14.35 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.3566, allocations: 0 / 449.6 MB, free: 14.35 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3566, allocations: 0 / 449.6 MB, free: 14.35 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001043/0.3567, allocations: 4 kB / 449.7 MB, free: 14.35 MB / 366.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.005731/0.3625, allocations: 3.574 MB / 453.2 MB, free: 10.71 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.3625, allocations: 15.98 kB / 453.2 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004278/0.3629, allocations: 389.6 kB / 453.6 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003713/0.3667, allocations: 2.371 MB / 456 MB, free: 7.848 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.993e-05/0.3667, allocations: 44.92 kB / 456 MB, free: 7.805 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001384/0.3668, allocations: 43.95 kB / 456.1 MB, free: 7.762 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001375/0.3682, allocations: 0.7148 MB / 456.8 MB, free: 7.043 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.987e-05/0.3682, allocations: 3.984 kB / 456.8 MB, free: 7.039 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.717e-05/0.3683, allocations: 20 kB / 456.8 MB, free: 7.02 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.526e-05/0.3683, allocations: 27.92 kB / 456.8 MB, free: 6.992 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001574/0.3699, allocations: 0.7928 MB / 457.6 MB, free: 6.191 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004879/0.3748, allocations: 2.844 MB / 460.5 MB, free: 3.301 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001228/0.376, allocations: 0.5634 MB / 461 MB, free: 2.727 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001007/0.377, allocations: 0.5772 MB / 461.6 MB, free: 2.152 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02512/0.4021, allocations: 13.77 MB / 475.4 MB, free: 3.992 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007724/0.4029, allocations: 361.5 kB / 475.7 MB, free: 3.625 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.394e-06/0.4029, allocations: 0 / 475.7 MB, free: 3.625 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.003318/0.4062, allocations: 1.334 MB / 477.1 MB, free: 2.281 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.274e-05/0.4063, allocations: 63.34 kB / 477.1 MB, free: 2.207 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003561/0.4098, allocations: 2.813 MB / 479.9 MB, free: 15.38 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.258e-05/0.4099, allocations: 41.69 kB / 480 MB, free: 15.33 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001293/0.4112, allocations: 1.4 MB / 481.4 MB, free: 13.92 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001722/0.4114, allocations: 170.6 kB / 481.6 MB, free: 13.75 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003274/0.4117, allocations: 226.4 kB / 481.8 MB, free: 13.53 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.4119, allocations: 345.9 kB / 482.1 MB, free: 13.18 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005796/0.4124, allocations: 233.9 kB / 482.3 MB, free: 12.96 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008631/0.4133, allocations: 0.5927 MB / 482.9 MB, free: 12.2 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001474/0.4148, allocations: 0.8841 MB / 483.8 MB, free: 11.14 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.955e-06/0.4148, allocations: 4 kB / 483.8 MB, free: 11.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002452/0.4172, allocations: 1.289 MB / 485.1 MB, free: 9.84 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.4173, allocations: 11.94 kB / 485.1 MB, free: 9.828 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001249/0.4174, allocations: 83.98 kB / 485.2 MB, free: 9.746 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005923/0.418, allocations: 280.8 kB / 485.5 MB, free: 9.469 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005779/0.4186, allocations: 159.7 kB / 485.6 MB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00107/0.4196, allocations: 0.8803 MB / 486.5 MB, free: 8.406 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001117/0.4207, allocations: 119.3 kB / 486.6 MB, free: 8.289 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001187/0.4209, allocations: 64 kB / 486.7 MB, free: 8.227 MB / 398.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.0008355/0.4217, allocations: 417.5 kB / 487.1 MB, free: 7.809 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005239/0.4222, allocations: 389.5 kB / 487.5 MB, free: 7.426 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00288/0.4251, allocations: 1.271 MB / 488.8 MB, free: 6.137 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.054e-05/0.4251, allocations: 4 kB / 488.8 MB, free: 6.133 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.303e-06/0.4251, allocations: 4 kB / 488.8 MB, free: 6.129 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.4251, allocations: 0 / 488.8 MB, free: 6.129 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004238/0.4294, allocations: 2.162 MB / 490.9 MB, free: 3.895 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001104/0.4295, allocations: 75.97 kB / 491 MB, free: 3.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003184/0.4298, allocations: 67.88 kB / 491.1 MB, free: 3.754 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000511/0.4303, allocations: 260.8 kB / 491.3 MB, free: 3.496 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.455e-05/0.4304, allocations: 39.98 kB / 491.4 MB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009966/0.4314, allocations: 0.8685 MB / 492.2 MB, free: 2.562 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.4314, allocations: 0 / 492.2 MB, free: 2.562 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002096/0.4335, allocations: 1.139 MB / 493.4 MB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008804/0.4343, allocations: 415.1 kB / 493.8 MB, free: 0.9766 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003785/0.4347, allocations: 16 kB / 493.8 MB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007144/0.4354, allocations: 31.95 kB / 493.8 MB, free: 0.9297 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001532/0.4356, allocations: 59.94 kB / 493.9 MB, free: 0.8711 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.872e-05/0.4357, allocations: 39.98 kB / 493.9 MB, free: 0.832 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002955/0.4386, allocations: 1.832 MB / 495.7 MB, free: 14.99 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4386, allocations: 4 kB / 495.8 MB, free: 14.99 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001379/0.44, allocations: 0.5774 MB / 496.3 MB, free: 14.41 MB / 414.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.00125/0.4412, allocations: 0.7769 MB / 497.1 MB, free: 13.63 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001862/0.4431, allocations: 0.8103 MB / 497.9 MB, free: 12.8 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.4431, allocations: 0 / 497.9 MB, free: 12.8 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009432/0.4441, allocations: 476 kB / 498.4 MB, free: 12.31 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001781/0.4458, allocations: 0.5016 MB / 498.9 MB, free: 11.8 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006325/0.4522, allocations: 4.011 MB / 0.4911 GB, free: 7.734 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00143/0.4536, allocations: 1.608 MB / 0.4927 GB, free: 6.098 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001093/0.4547, allocations: 395 kB / 0.4931 GB, free: 5.707 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002738/0.455, allocations: 159.4 kB / 0.4932 GB, free: 5.551 MB / 414.1 MB Notification: Performance of SimCode: time 1.253e-06/0.455, allocations: 0 / 0.4932 GB, free: 5.551 MB / 414.1 MB Notification: Performance of Templates: time 0.06619/0.5211, allocations: 34.27 MB / 0.5267 GB, free: 3.215 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.667294747196138]