Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001901/0.001901, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.002153/0.002153, allocations: 207.5 kB / 23.73 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.531/1.531, allocations: 230.5 MB / 257.4 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002207/0.002207, allocations: 63.89 kB / 378.2 MB, free: 2.355 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2385/0.2407, allocations: 53.41 MB / 431.6 MB, free: 6.551 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01396/0.2547, allocations: 11.82 MB / 443.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02426/0.2789, allocations: 17.53 MB / 461 MB, free: 9.086 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002262/0.2812, allocations: 193.8 kB / 461.2 MB, free: 8.895 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003131/0.2843, allocations: 1.026 MB / 462.2 MB, free: 7.867 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007141/0.2914, allocations: 2.304 MB / 464.5 MB, free: 5.543 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00439/0.2958, allocations: 1.406 MB / 465.9 MB, free: 4.137 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0102/0.306, allocations: 6.486 MB / 472.4 MB, free: 13.63 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007002/0.3067, allocations: 241 kB / 472.6 MB, free: 13.36 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001837/0.3086, allocations: 1.112 MB / 473.7 MB, free: 12.24 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001934/0.3105, allocations: 1.009 MB / 474.7 MB, free: 11.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003261/0.3108, allocations: 68 kB / 474.8 MB, free: 11.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004045/0.3149, allocations: 1.202 MB / 476 MB, free: 9.957 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004017/0.3153, allocations: 313.7 kB / 476.3 MB, free: 9.648 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001876/0.3171, allocations: 0.9546 MB / 477.3 MB, free: 8.688 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00519/0.3223, allocations: 3.687 MB / 481 MB, free: 4.984 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.3223, allocations: 0 / 481 MB, free: 4.984 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.3223, allocations: 4 kB / 481 MB, free: 4.98 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.792e-05/0.3224, allocations: 3.938 kB / 481 MB, free: 4.977 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.005574/0.3279, allocations: 3.547 MB / 484.5 MB, free: 1.375 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.328, allocations: 11.98 kB / 484.5 MB, free: 1.363 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004683/0.3285, allocations: 389.6 kB / 484.9 MB, free: 0.9805 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004067/0.3325, allocations: 2.362 MB / 487.3 MB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.49e-05/0.3326, allocations: 36.98 kB / 487.3 MB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001248/0.3327, allocations: 47.98 kB / 487.4 MB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001414/0.3341, allocations: 0.7109 MB / 488.1 MB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.3341, allocations: 0 / 488.1 MB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.606e-05/0.3342, allocations: 16 kB / 488.1 MB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.491e-05/0.3342, allocations: 19.98 kB / 488.1 MB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001712/0.3359, allocations: 0.789 MB / 488.9 MB, free: 12.89 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005239/0.3412, allocations: 2.576 MB / 491.5 MB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001305/0.3425, allocations: 0.5632 MB / 492 MB, free: 9.715 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001044/0.3435, allocations: 0.5811 MB / 492.6 MB, free: 9.129 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02635/0.3699, allocations: 13.72 MB / 0.4945 GB, free: 11.02 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007978/0.3707, allocations: 361.6 kB / 0.4948 GB, free: 10.66 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.414e-06/0.3707, allocations: 0 / 0.4948 GB, free: 10.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003208/0.3739, allocations: 1.318 MB / 0.4961 GB, free: 9.332 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.134e-05/0.3739, allocations: 63.39 kB / 0.4961 GB, free: 9.258 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003653/0.3776, allocations: 2.794 MB / 0.4989 GB, free: 6.441 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.369e-05/0.3776, allocations: 33.7 kB / 0.4989 GB, free: 6.402 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001354/0.379, allocations: 1.4 MB / 0.5003 GB, free: 4.996 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001672/0.3791, allocations: 174.6 kB / 0.5004 GB, free: 4.824 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002958/0.3794, allocations: 222.4 kB / 0.5007 GB, free: 4.602 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.3796, allocations: 345.9 kB / 0.501 GB, free: 4.258 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006015/0.3802, allocations: 233.9 kB / 0.5012 GB, free: 4.027 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008933/0.3811, allocations: 0.5888 MB / 0.5018 GB, free: 3.273 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001571/0.3827, allocations: 0.8841 MB / 0.5026 GB, free: 2.215 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/0.3827, allocations: 4 kB / 0.5026 GB, free: 2.211 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002353/0.385, allocations: 1.278 MB / 0.5039 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.225e-05/0.3851, allocations: 10.5 kB / 0.5039 GB, free: 0.918 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001182/0.3852, allocations: 80 kB / 0.504 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005647/0.3857, allocations: 280.7 kB / 0.5043 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005868/0.3863, allocations: 175.6 kB / 0.5044 GB, free: 400 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001075/0.3874, allocations: 0.8871 MB / 0.5053 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009482/0.3883, allocations: 107.3 kB / 0.5054 GB, free: 15.38 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001207/0.3885, allocations: 64 kB / 0.5054 GB, free: 15.31 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.0007123/0.3892, allocations: 422.3 kB / 0.5059 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003837/0.3896, allocations: 385.7 kB / 0.5062 GB, free: 14.51 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002768/0.3923, allocations: 1.255 MB / 0.5074 GB, free: 13.24 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.927e-06/0.3923, allocations: 4 kB / 0.5074 GB, free: 13.24 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.3923, allocations: 4 kB / 0.5075 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.3924, allocations: 3.984 kB / 0.5075 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00375/0.3961, allocations: 2.021 MB / 0.5094 GB, free: 11.15 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001031/0.3962, allocations: 68 kB / 0.5095 GB, free: 11.09 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003223/0.3965, allocations: 68 kB / 0.5096 GB, free: 11.02 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005083/0.397, allocations: 268.7 kB / 0.5098 GB, free: 10.75 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.317e-05/0.3971, allocations: 39.92 kB / 0.5099 GB, free: 10.71 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009854/0.3981, allocations: 0.8604 MB / 0.5107 GB, free: 9.832 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.721e-06/0.3981, allocations: 4.031 kB / 0.5107 GB, free: 9.828 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001996/0.4001, allocations: 1.131 MB / 0.5118 GB, free: 8.656 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000871/0.401, allocations: 411.2 kB / 0.5122 GB, free: 8.25 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002708/0.4012, allocations: 23.88 kB / 0.5122 GB, free: 8.227 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006795/0.4019, allocations: 31.95 kB / 0.5122 GB, free: 8.195 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001491/0.4021, allocations: 59.94 kB / 0.5123 GB, free: 8.137 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.668e-05/0.4021, allocations: 39.98 kB / 0.5123 GB, free: 8.098 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002527/0.4047, allocations: 1.807 MB / 0.5141 GB, free: 6.285 MB / 430.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4047, allocations: 0 / 0.5141 GB, free: 6.285 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001306/0.406, allocations: 0.5696 MB / 0.5147 GB, free: 5.715 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.001172/0.4071, allocations: 0.775 MB / 0.5154 GB, free: 4.934 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001817/0.409, allocations: 0.8183 MB / 0.5162 GB, free: 4.098 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.409, allocations: 0 / 0.5162 GB, free: 4.098 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000962/0.4099, allocations: 468.2 kB / 0.5167 GB, free: 3.617 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002342/0.4123, allocations: 0.5905 MB / 0.5172 GB, free: 3.023 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005659/0.4179, allocations: 3.999 MB / 0.5211 GB, free: 14.97 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001087/0.419, allocations: 1.052 MB / 0.5222 GB, free: 13.89 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001066/0.4201, allocations: 378.9 kB / 0.5225 GB, free: 13.51 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002367/0.4203, allocations: 159.4 kB / 0.5227 GB, free: 13.36 MB / 446.1 MB Notification: Performance of SimCode: time 7.71e-07/0.4203, allocations: 0 / 0.5227 GB, free: 13.36 MB / 446.1 MB Notification: Performance of Templates: time 0.2316/0.652, allocations: 36.27 MB / 0.5581 GB, free: 91.42 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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: 6.010295428335667]