Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001677/0.001677, allocations: 111 kB / 21.18 MB, free: 0.6758 MB / 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.002005/0.002005, allocations: 211.2 kB / 24.47 MB, free: 3.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.678/1.678, allocations: 230.6 MB / 258.2 MB, free: 7.805 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+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_4.1.0_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_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 47.92 kB / 379 MB, free: 2.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4255/0.4271, allocations: 53.36 MB / 432.3 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.0231/0.4502, allocations: 11.83 MB / 444.1 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02714/0.4773, allocations: 17.53 MB / 461.7 MB, free: 9.25 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002571/0.4799, allocations: 185.9 kB / 461.9 MB, free: 9.066 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003377/0.4833, allocations: 1.035 MB / 462.9 MB, free: 8.031 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00897/0.4922, allocations: 2.308 MB / 465.2 MB, free: 5.703 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005117/0.4974, allocations: 1.402 MB / 466.6 MB, free: 4.301 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01101/0.5084, allocations: 6.482 MB / 473.1 MB, free: 13.8 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006357/0.509, allocations: 249 kB / 473.3 MB, free: 13.52 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001903/0.5109, allocations: 1.108 MB / 474.4 MB, free: 12.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001468/0.5124, allocations: 1.06 MB / 475.5 MB, free: 11.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001916/0.5126, allocations: 72 kB / 475.6 MB, free: 11.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003954/0.5165, allocations: 1.229 MB / 476.8 MB, free: 10.04 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003695/0.5169, allocations: 313.8 kB / 477.1 MB, free: 9.73 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001286/0.5182, allocations: 0.9546 MB / 478.1 MB, free: 8.77 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005994/0.5242, allocations: 3.694 MB / 481.8 MB, free: 5.059 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.5242, allocations: 0 / 481.8 MB, free: 5.059 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.5242, allocations: 0 / 481.8 MB, free: 5.059 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.879e-05/0.5242, allocations: 4 kB / 481.8 MB, free: 5.055 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.005904/0.5301, allocations: 3.543 MB / 485.3 MB, free: 1.457 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/0.5302, allocations: 16.03 kB / 485.3 MB, free: 1.441 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005679/0.5308, allocations: 389.6 kB / 485.7 MB, free: 1.059 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004145/0.5349, allocations: 2.359 MB / 488.1 MB, free: 14.6 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.025e-05/0.5349, allocations: 33 kB / 488.1 MB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001405/0.5351, allocations: 48 kB / 488.1 MB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001466/0.5365, allocations: 0.703 MB / 488.8 MB, free: 13.81 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.707e-05/0.5366, allocations: 0 / 488.8 MB, free: 13.81 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.318e-05/0.5366, allocations: 24 kB / 488.9 MB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.455e-05/0.5367, allocations: 19.98 kB / 488.9 MB, free: 13.77 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001596/0.5383, allocations: 0.7851 MB / 489.7 MB, free: 12.98 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005397/0.5437, allocations: 2.572 MB / 492.2 MB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001333/0.545, allocations: 0.5659 MB / 492.8 MB, free: 9.805 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001092/0.5461, allocations: 0.5818 MB / 493.4 MB, free: 9.219 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02803/0.5741, allocations: 13.71 MB / 0.4952 GB, free: 11.12 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008647/0.575, allocations: 357.7 kB / 0.4955 GB, free: 10.76 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 3.406e-06/0.575, allocations: 4 kB / 0.4956 GB, free: 10.76 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.00351/0.5785, allocations: 1.318 MB / 0.4968 GB, free: 9.426 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.547e-05/0.5785, allocations: 59.39 kB / 0.4969 GB, free: 9.355 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00416/0.5827, allocations: 2.798 MB / 0.4996 GB, free: 6.535 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000116/0.5828, allocations: 33.7 kB / 0.4997 GB, free: 6.496 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001455/0.5843, allocations: 1.4 MB / 0.501 GB, free: 5.09 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002794/0.5846, allocations: 174.6 kB / 0.5012 GB, free: 4.918 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000369/0.5849, allocations: 222.4 kB / 0.5014 GB, free: 4.695 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.5851, allocations: 337.9 kB / 0.5017 GB, free: 4.359 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006307/0.5857, allocations: 241.9 kB / 0.502 GB, free: 4.121 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009551/0.5867, allocations: 0.5966 MB / 0.5025 GB, free: 3.359 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001572/0.5883, allocations: 0.8801 MB / 0.5034 GB, free: 2.309 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.153e-06/0.5883, allocations: 4 kB / 0.5034 GB, free: 2.305 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002633/0.5909, allocations: 1.281 MB / 0.5047 GB, free: 1.016 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.736e-05/0.5909, allocations: 12 kB / 0.5047 GB, free: 1.004 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001232/0.591, allocations: 80.88 kB / 0.5047 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007002/0.5917, allocations: 280.7 kB / 0.505 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006344/0.5924, allocations: 167.7 kB / 0.5052 GB, free: 496 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001201/0.5936, allocations: 0.8858 MB / 0.506 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00117/0.5948, allocations: 107.3 kB / 0.5061 GB, free: 15.47 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001204/0.5949, allocations: 60 kB / 0.5062 GB, free: 15.41 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.0008497/0.5957, allocations: 425.5 kB / 0.5066 GB, free: 14.98 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004708/0.5962, allocations: 381.6 kB / 0.507 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002877/0.5991, allocations: 1.247 MB / 0.5082 GB, free: 13.35 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/0.5991, allocations: 4 kB / 0.5082 GB, free: 13.34 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.5991, allocations: 4 kB / 0.5082 GB, free: 13.34 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.154e-06/0.5991, allocations: 3.984 kB / 0.5082 GB, free: 13.34 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003962/0.6031, allocations: 2.032 MB / 0.5102 GB, free: 11.25 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001053/0.6032, allocations: 71.98 kB / 0.5102 GB, free: 11.18 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003471/0.6035, allocations: 63.89 kB / 0.5103 GB, free: 11.11 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005341/0.604, allocations: 267.6 kB / 0.5106 GB, free: 10.85 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.467e-05/0.6041, allocations: 32 kB / 0.5106 GB, free: 10.82 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001069/0.6052, allocations: 0.8724 MB / 0.5114 GB, free: 9.922 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.6052, allocations: 0 / 0.5114 GB, free: 9.922 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002224/0.6074, allocations: 1.139 MB / 0.5126 GB, free: 8.742 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00108/0.6085, allocations: 403.3 kB / 0.5129 GB, free: 8.344 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000332/0.6088, allocations: 19.92 kB / 0.513 GB, free: 8.324 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006642/0.6095, allocations: 27.97 kB / 0.513 GB, free: 8.297 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001734/0.6096, allocations: 63.92 kB / 0.5131 GB, free: 8.234 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.186e-05/0.6097, allocations: 36 kB / 0.5131 GB, free: 8.199 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002708/0.6124, allocations: 1.803 MB / 0.5148 GB, free: 6.391 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6124, allocations: 4 kB / 0.5148 GB, free: 6.387 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00155/0.614, allocations: 0.5735 MB / 0.5154 GB, free: 5.812 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.001292/0.6153, allocations: 0.772 MB / 0.5162 GB, free: 5.031 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002025/0.6173, allocations: 0.8186 MB / 0.517 GB, free: 4.195 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.6173, allocations: 0 / 0.517 GB, free: 4.195 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000992/0.6183, allocations: 479.8 kB / 0.5174 GB, free: 3.703 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002701/0.621, allocations: 0.5955 MB / 0.518 GB, free: 3.102 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007002/0.628, allocations: 3.987 MB / 0.5219 GB, free: 15.06 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001171/0.6292, allocations: 1.044 MB / 0.5229 GB, free: 13.98 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0013/0.6305, allocations: 390.9 kB / 0.5233 GB, free: 13.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002845/0.6308, allocations: 167.4 kB / 0.5234 GB, free: 13.43 MB / 446.1 MB Notification: Performance of SimCode: time 2.084e-06/0.6308, allocations: 0 / 0.5234 GB, free: 13.43 MB / 446.1 MB Notification: Performance of Templates: time 0.3772/1.008, allocations: 36.49 MB / 0.5591 GB, free: 91.53 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.911105042992858]