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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001337/0.001337, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001415/0.001415, allocations: 209.4 kB / 24.47 MB, free: 3.547 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.514/1.514, allocations: 207.7 MB / 235.3 MB, free: 9.809 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002728/0.002728, allocations: 54.73 kB / 347.7 MB, free: 9.402 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2945/0.2972, allocations: 49.16 MB / 396.8 MB, free: 9.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.009947/0.3071, allocations: 11.27 MB / 408.1 MB, free: 1.789 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02339/0.3305, allocations: 16.69 MB / 424.8 MB, free: 5.379 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002632/0.3332, allocations: 195.8 kB / 425 MB, free: 5.238 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002954/0.3361, allocations: 0.998 MB / 426 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007883/0.344, allocations: 2.279 MB / 428.3 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00528/0.3493, allocations: 1.349 MB / 429.6 MB, free: 1.691 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01058/0.3598, allocations: 6.254 MB / 435.9 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006263/0.3605, allocations: 241 kB / 436.1 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001795/0.3623, allocations: 1.007 MB / 437.1 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001744/0.364, allocations: 0.9934 MB / 438.1 MB, free: 9.766 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00023/0.3642, allocations: 72 kB / 438.2 MB, free: 9.695 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003945/0.3682, allocations: 1.074 MB / 439.3 MB, free: 8.621 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003231/0.3685, allocations: 317.7 kB / 439.6 MB, free: 8.309 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001107/0.3696, allocations: 0.9585 MB / 440.5 MB, free: 7.344 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005433/0.375, allocations: 3.718 MB / 444.2 MB, free: 3.609 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3751, allocations: 0 / 444.2 MB, free: 3.609 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3751, allocations: 4 kB / 444.2 MB, free: 3.605 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.422e-05/0.3751, allocations: 0 / 444.2 MB, free: 3.605 MB / 350.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.005427/0.3805, allocations: 3.574 MB / 447.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.3806, allocations: 11.98 kB / 447.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004463/0.381, allocations: 393.6 kB / 448.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003952/0.385, allocations: 2.374 MB / 450.6 MB, free: 13.1 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.435e-05/0.385, allocations: 36.94 kB / 450.6 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001294/0.3852, allocations: 47.95 kB / 450.7 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001388/0.3865, allocations: 0.7109 MB / 451.4 MB, free: 12.3 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.3866, allocations: 0 / 451.4 MB, free: 12.3 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.914e-05/0.3866, allocations: 19.94 kB / 451.4 MB, free: 12.28 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.265e-05/0.3866, allocations: 23.92 kB / 451.4 MB, free: 12.26 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001567/0.3882, allocations: 0.7968 MB / 452.2 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004894/0.3931, allocations: 2.596 MB / 454.8 MB, free: 8.82 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001226/0.3943, allocations: 0.5518 MB / 455.4 MB, free: 8.258 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001012/0.3953, allocations: 0.5889 MB / 456 MB, free: 7.672 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02618/0.4215, allocations: 13.71 MB / 469.7 MB, free: 9.57 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008323/0.4224, allocations: 365.5 kB / 470 MB, free: 9.199 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 3.226e-06/0.4224, allocations: 0 / 470 MB, free: 9.199 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.003402/0.4258, allocations: 1.318 MB / 471.3 MB, free: 7.871 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.228e-05/0.4258, allocations: 59.41 kB / 471.4 MB, free: 7.801 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003802/0.4296, allocations: 2.815 MB / 474.2 MB, free: 4.965 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.262e-05/0.4297, allocations: 37.7 kB / 474.3 MB, free: 4.922 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001378/0.4311, allocations: 1.4 MB / 475.7 MB, free: 3.516 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001795/0.4312, allocations: 174.6 kB / 475.8 MB, free: 3.344 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003473/0.4316, allocations: 226.4 kB / 476 MB, free: 3.117 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001853/0.4318, allocations: 345.9 kB / 476.4 MB, free: 2.773 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006071/0.4324, allocations: 237.8 kB / 476.6 MB, free: 2.543 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009428/0.4333, allocations: 0.5927 MB / 477.2 MB, free: 1.781 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001657/0.435, allocations: 0.8802 MB / 478.1 MB, free: 0.7305 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.294e-05/0.435, allocations: 4 kB / 478.1 MB, free: 0.7266 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002628/0.4376, allocations: 1.286 MB / 479.4 MB, free: 15.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.813e-05/0.4376, allocations: 8 kB / 479.4 MB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001218/0.4378, allocations: 83.98 kB / 479.5 MB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005902/0.4384, allocations: 276.7 kB / 479.7 MB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005818/0.4389, allocations: 171.7 kB / 479.9 MB, free: 14.9 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001184/0.4401, allocations: 0.8803 MB / 480.8 MB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001224/0.4413, allocations: 107.4 kB / 480.9 MB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001142/0.4415, allocations: 63.94 kB / 481 MB, free: 13.82 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.000852/0.4423, allocations: 425.5 kB / 481.4 MB, free: 13.4 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004131/0.4427, allocations: 389.6 kB / 481.7 MB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002858/0.4456, allocations: 1.267 MB / 483 MB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/0.4456, allocations: 4 kB / 483 MB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.4456, allocations: 4 kB / 483 MB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.92e-06/0.4456, allocations: 0 / 483 MB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003856/0.4495, allocations: 2.037 MB / 485.1 MB, free: 9.629 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001149/0.4496, allocations: 72.03 kB / 485.1 MB, free: 9.559 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003129/0.4499, allocations: 67.88 kB / 485.2 MB, free: 9.492 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004791/0.4504, allocations: 260.7 kB / 485.5 MB, free: 9.234 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.327e-05/0.4504, allocations: 35.98 kB / 485.5 MB, free: 9.199 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009937/0.4514, allocations: 0.8647 MB / 486.4 MB, free: 8.309 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.4514, allocations: 0 / 486.4 MB, free: 8.309 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002027/0.4535, allocations: 1.143 MB / 487.5 MB, free: 7.125 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009889/0.4544, allocations: 407.3 kB / 487.9 MB, free: 6.727 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000345/0.4548, allocations: 19.94 kB / 487.9 MB, free: 6.707 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007035/0.4555, allocations: 39.89 kB / 487.9 MB, free: 6.668 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001599/0.4556, allocations: 55.94 kB / 488 MB, free: 6.613 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.502e-05/0.4557, allocations: 43.98 kB / 488 MB, free: 6.57 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002785/0.4585, allocations: 1.816 MB / 489.9 MB, free: 4.75 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4585, allocations: 0 / 489.9 MB, free: 4.75 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001407/0.4599, allocations: 0.5735 MB / 490.4 MB, free: 4.176 MB / 398.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.001207/0.4611, allocations: 0.7885 MB / 491.2 MB, free: 3.379 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001886/0.463, allocations: 0.8137 MB / 492 MB, free: 2.547 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.463, allocations: 0 / 492 MB, free: 2.547 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009962/0.464, allocations: 480.6 kB / 492.5 MB, free: 2.047 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001704/0.4657, allocations: 0.4898 MB / 493 MB, free: 1.551 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006086/0.4718, allocations: 4.003 MB / 497 MB, free: 13.49 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001071/0.4729, allocations: 1.061 MB / 498.1 MB, free: 12.39 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001066/0.4739, allocations: 390.9 kB / 498.4 MB, free: 12.01 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002432/0.4742, allocations: 159.4 kB / 498.6 MB, free: 11.86 MB / 414.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4742, allocations: 0 / 498.6 MB, free: 11.86 MB / 414.1 MB Notification: Performance of Templates: time 0.06388/0.5381, allocations: 36.45 MB / 0.5225 GB, free: 7.312 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: 6.004950352013111]