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.001754/0.001754, allocations: 111.9 kB / 19.18 MB, free: 3.762 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.001829/0.001829, allocations: 208.9 kB / 22.13 MB, free: 0.8125 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.438/1.438, allocations: 230.4 MB / 255.4 MB, free: 15 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.0019/0.0019, allocations: 63.89 kB / 374.7 MB, free: 9.727 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0921/0.094, allocations: 53.31 MB / 428 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.1833/0.2773, allocations: 14.07 MB / 442.1 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02474/0.3021, allocations: 20.36 MB / 462.5 MB, free: 4.555 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002968/0.3051, allocations: 125 kB / 462.6 MB, free: 4.484 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003536/0.3086, allocations: 1.125 MB / 463.7 MB, free: 3.895 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009488/0.3181, allocations: 2.291 MB / 466 MB, free: 2.496 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006187/0.3243, allocations: 1.427 MB / 467.4 MB, free: 1.754 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01193/0.3362, allocations: 6.458 MB / 473.9 MB, free: 14.82 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007134/0.3369, allocations: 253.4 kB / 474.1 MB, free: 14.65 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002069/0.339, allocations: 1.064 MB / 475.2 MB, free: 14.14 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00192/0.3409, allocations: 1.061 MB / 476.3 MB, free: 13.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002372/0.3411, allocations: 69.97 kB / 476.3 MB, free: 13.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004943/0.3461, allocations: 1.484 MB / 477.8 MB, free: 12.88 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005003/0.3466, allocations: 305.8 kB / 478.1 MB, free: 12.64 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002044/0.3486, allocations: 1.294 MB / 479.4 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007528/0.3562, allocations: 3.652 MB / 483.1 MB, free: 9.383 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.3562, allocations: 0 / 483.1 MB, free: 9.383 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3562, allocations: 1.375 kB / 483.1 MB, free: 9.383 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001149/0.3563, allocations: 0 / 483.1 MB, free: 9.383 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.006162/0.3624, allocations: 3.63 MB / 486.7 MB, free: 5.789 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.3625, allocations: 8.031 kB / 486.7 MB, free: 5.781 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004673/0.3629, allocations: 389.6 kB / 487.1 MB, free: 5.398 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003871/0.3668, allocations: 2.535 MB / 489.6 MB, free: 2.785 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.909e-05/0.3668, allocations: 40.94 kB / 489.7 MB, free: 2.746 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001316/0.367, allocations: 51.94 kB / 489.7 MB, free: 2.695 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00139/0.3684, allocations: 0.7031 MB / 490.4 MB, free: 1.984 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.3684, allocations: 0 / 490.4 MB, free: 1.984 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.909e-05/0.3685, allocations: 20 kB / 490.4 MB, free: 1.965 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.221e-05/0.3685, allocations: 19.98 kB / 490.4 MB, free: 1.945 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001603/0.3701, allocations: 0.7919 MB / 491.2 MB, free: 1.156 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005148/0.3752, allocations: 2.876 MB / 494.1 MB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001296/0.3765, allocations: 0.6352 MB / 494.7 MB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001029/0.3776, allocations: 0.5806 MB / 495.3 MB, free: 12.96 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03266/0.4102, allocations: 30.72 MB / 0.5137 GB, free: 9.996 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008045/0.411, allocations: 369.9 kB / 0.5141 GB, free: 9.625 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.685e-06/0.411, allocations: 0 / 0.5141 GB, free: 9.625 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.003422/0.4144, allocations: 1.393 MB / 0.5154 GB, free: 8.203 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.148e-05/0.4145, allocations: 63.34 kB / 0.5155 GB, free: 8.129 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003671/0.4182, allocations: 2.799 MB / 0.5182 GB, free: 5.309 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001/0.4183, allocations: 37.7 kB / 0.5183 GB, free: 5.266 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001323/0.4196, allocations: 1.392 MB / 0.5196 GB, free: 3.867 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002071/0.4198, allocations: 174.6 kB / 0.5198 GB, free: 3.695 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003226/0.4201, allocations: 226.4 kB / 0.52 GB, free: 3.469 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.4203, allocations: 341.9 kB / 0.5203 GB, free: 3.129 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000633/0.4209, allocations: 237.8 kB / 0.5206 GB, free: 2.898 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008906/0.4218, allocations: 0.5891 MB / 0.5211 GB, free: 2.137 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001536/0.4233, allocations: 0.8802 MB / 0.522 GB, free: 1.086 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.737e-06/0.4234, allocations: 4 kB / 0.522 GB, free: 1.082 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002542/0.4259, allocations: 1.278 MB / 0.5232 GB, free: 15.79 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/0.4259, allocations: 16.06 kB / 0.5233 GB, free: 15.78 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001129/0.426, allocations: 83.98 kB / 0.5233 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005818/0.4266, allocations: 271 kB / 0.5236 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005763/0.4272, allocations: 175.6 kB / 0.5238 GB, free: 15.26 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001052/0.4282, allocations: 0.8725 MB / 0.5246 GB, free: 14.36 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001228/0.4295, allocations: 127.2 kB / 0.5247 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001179/0.4296, allocations: 67.92 kB / 0.5248 GB, free: 14.17 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.0007655/0.4304, allocations: 425.5 kB / 0.5252 GB, free: 13.74 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004697/0.4308, allocations: 381.6 kB / 0.5256 GB, free: 13.37 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002904/0.4337, allocations: 1.251 MB / 0.5268 GB, free: 12.11 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.176e-06/0.4337, allocations: 4 kB / 0.5268 GB, free: 12.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.4337, allocations: 0 / 0.5268 GB, free: 12.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.4338, allocations: 3.938 kB / 0.5268 GB, free: 12.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003987/0.4377, allocations: 2.193 MB / 0.5289 GB, free: 9.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.748e-05/0.4378, allocations: 68 kB / 0.529 GB, free: 9.754 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003192/0.4382, allocations: 64 kB / 0.5291 GB, free: 9.691 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005041/0.4387, allocations: 256.8 kB / 0.5293 GB, free: 9.438 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.101e-05/0.4387, allocations: 32.94 kB / 0.5294 GB, free: 9.406 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001001/0.4397, allocations: 0.8638 MB / 0.5302 GB, free: 8.52 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.4397, allocations: 0 / 0.5302 GB, free: 8.52 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002157/0.4419, allocations: 1.146 MB / 0.5313 GB, free: 7.336 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000982/0.4429, allocations: 494.4 kB / 0.5318 GB, free: 6.832 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002827/0.4431, allocations: 8 kB / 0.5318 GB, free: 6.824 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006486/0.4438, allocations: 32.83 kB / 0.5318 GB, free: 6.793 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000166/0.444, allocations: 59.95 kB / 0.5319 GB, free: 6.734 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.169e-05/0.444, allocations: 43.92 kB / 0.5319 GB, free: 6.691 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002727/0.4468, allocations: 1.824 MB / 0.5337 GB, free: 4.863 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4468, allocations: 0 / 0.5337 GB, free: 4.863 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001727/0.4485, allocations: 0.5735 MB / 0.5343 GB, free: 4.289 MB / 446.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.001206/0.4497, allocations: 0.7687 MB / 0.535 GB, free: 3.512 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001834/0.4515, allocations: 0.811 MB / 0.5358 GB, free: 2.68 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.4515, allocations: 0 / 0.5358 GB, free: 2.68 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009363/0.4525, allocations: 480.4 kB / 0.5363 GB, free: 2.188 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002664/0.4551, allocations: 0.6104 MB / 0.5369 GB, free: 1.578 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005978/0.4611, allocations: 4.05 MB / 0.5408 GB, free: 13.47 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001229/0.4623, allocations: 1.6 MB / 0.5424 GB, free: 11.84 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003268/0.4627, allocations: 163.4 kB / 0.5425 GB, free: 11.68 MB / 462.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4627, allocations: 0 / 0.5425 GB, free: 11.68 MB / 462.1 MB Notification: Performance of Templates: time 0.06398/0.5267, allocations: 48.17 MB / 0.5896 GB, free: 11.56 MB / 0.4981 GB " [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.705439933110029]