Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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.001722/0.001722, allocations: 113 kB / 19.04 MB, free: 3.254 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.001947/0.001947, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.409/1.409, allocations: 225.6 MB / 250.8 MB, free: 13.35 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.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.0.0_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 43.92 kB / 368.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2431/0.2446, allocations: 52.14 MB / 420.8 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01455/0.2591, allocations: 14.09 MB / 434.9 MB, free: 1.117 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02429/0.2834, allocations: 20.34 MB / 455.3 MB, free: 12.7 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001391/0.2848, allocations: 118.9 kB / 455.4 MB, free: 12.59 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002423/0.2872, allocations: 1.129 MB / 456.5 MB, free: 11.45 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006191/0.2934, allocations: 2.311 MB / 458.8 MB, free: 9.125 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003859/0.2973, allocations: 1.437 MB / 460.3 MB, free: 7.68 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009398/0.3067, allocations: 6.383 MB / 466.6 MB, free: 1.277 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007758/0.3074, allocations: 248.4 kB / 466.9 MB, free: 1 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001725/0.3092, allocations: 1.073 MB / 468 MB, free: 15.92 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00124/0.3104, allocations: 1.052 MB / 469 MB, free: 14.86 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001582/0.3106, allocations: 75.94 kB / 469.1 MB, free: 14.79 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003858/0.3144, allocations: 1.471 MB / 470.6 MB, free: 13.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000298/0.3147, allocations: 305.8 kB / 470.9 MB, free: 13.02 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001237/0.316, allocations: 1.3 MB / 472.2 MB, free: 11.71 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004688/0.3206, allocations: 3.655 MB / 475.8 MB, free: 8.035 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3206, allocations: 0 / 475.8 MB, free: 8.035 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3207, allocations: 0 / 475.8 MB, free: 8.035 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.702e-05/0.3207, allocations: 0 / 475.8 MB, free: 8.035 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.005091/0.3258, allocations: 3.622 MB / 479.4 MB, free: 4.336 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.3258, allocations: 8.031 kB / 479.4 MB, free: 4.328 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004169/0.3262, allocations: 393.5 kB / 479.8 MB, free: 3.941 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003506/0.3297, allocations: 2.535 MB / 482.4 MB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.687e-05/0.3298, allocations: 29 kB / 482.4 MB, free: 1.305 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001399/0.3299, allocations: 55.89 kB / 482.4 MB, free: 1.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001368/0.3313, allocations: 0.7031 MB / 483.1 MB, free: 0.5391 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/0.3313, allocations: 0 / 483.1 MB, free: 0.5391 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.996e-05/0.3314, allocations: 16 kB / 483.2 MB, free: 0.5234 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.753e-05/0.3314, allocations: 19.98 kB / 483.2 MB, free: 0.5039 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001601/0.333, allocations: 0.7891 MB / 484 MB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004801/0.3378, allocations: 2.884 MB / 486.9 MB, free: 12.76 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001263/0.3391, allocations: 0.6468 MB / 487.5 MB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001006/0.3401, allocations: 0.5767 MB / 488.1 MB, free: 11.52 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03146/0.3715, allocations: 30.09 MB / 0.506 GB, free: 9.32 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007857/0.3723, allocations: 369.5 kB / 0.5064 GB, free: 8.949 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.284e-06/0.3723, allocations: 0 / 0.5064 GB, free: 8.949 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.003169/0.3755, allocations: 1.39 MB / 0.5077 GB, free: 7.527 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.283e-05/0.3755, allocations: 67.33 kB / 0.5078 GB, free: 7.449 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003508/0.379, allocations: 2.803 MB / 0.5105 GB, free: 4.625 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.866e-05/0.3791, allocations: 29.7 kB / 0.5106 GB, free: 4.59 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001331/0.3804, allocations: 1.4 MB / 0.5119 GB, free: 3.184 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000185/0.3806, allocations: 178.6 kB / 0.5121 GB, free: 3.008 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003454/0.381, allocations: 226.3 kB / 0.5123 GB, free: 2.781 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.3811, allocations: 337.9 kB / 0.5126 GB, free: 2.445 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005848/0.3817, allocations: 237.9 kB / 0.5129 GB, free: 2.215 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008695/0.3826, allocations: 0.589 MB / 0.5134 GB, free: 1.457 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001463/0.384, allocations: 0.8802 MB / 0.5143 GB, free: 416 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.273e-06/0.384, allocations: 11.94 kB / 0.5143 GB, free: 404 kB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002282/0.3863, allocations: 1.285 MB / 0.5156 GB, free: 15.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.619e-05/0.3863, allocations: 12 kB / 0.5156 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001173/0.3865, allocations: 80 kB / 0.5157 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006093/0.3871, allocations: 277.2 kB / 0.5159 GB, free: 14.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005628/0.3876, allocations: 167.7 kB / 0.5161 GB, free: 14.57 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001019/0.3886, allocations: 0.8821 MB / 0.5169 GB, free: 13.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008868/0.3895, allocations: 111.3 kB / 0.517 GB, free: 13.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001104/0.3896, allocations: 64 kB / 0.5171 GB, free: 13.49 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.0006955/0.3903, allocations: 429.3 kB / 0.5175 GB, free: 13.06 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003639/0.3907, allocations: 381.6 kB / 0.5179 GB, free: 12.69 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00279/0.3935, allocations: 1.259 MB / 0.5191 GB, free: 11.41 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.934e-06/0.3935, allocations: 4 kB / 0.5191 GB, free: 11.41 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.3935, allocations: 11.94 kB / 0.5191 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/0.3935, allocations: 11.86 kB / 0.5191 GB, free: 11.38 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003711/0.3972, allocations: 2.166 MB / 0.5213 GB, free: 9.133 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001019/0.3973, allocations: 72.12 kB / 0.5213 GB, free: 9.062 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003119/0.3976, allocations: 63.94 kB / 0.5214 GB, free: 9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004975/0.3981, allocations: 264.8 kB / 0.5216 GB, free: 8.738 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.049e-05/0.3982, allocations: 31.98 kB / 0.5217 GB, free: 8.707 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009886/0.3992, allocations: 0.8666 MB / 0.5225 GB, free: 7.816 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.3992, allocations: 4.031 kB / 0.5225 GB, free: 7.812 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001838/0.401, allocations: 1.127 MB / 0.5236 GB, free: 6.648 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00066/0.4017, allocations: 486.4 kB / 0.5241 GB, free: 6.152 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002727/0.402, allocations: 15.98 kB / 0.5241 GB, free: 6.137 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006236/0.4026, allocations: 27.97 kB / 0.5241 GB, free: 6.109 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001626/0.4028, allocations: 67.88 kB / 0.5242 GB, free: 6.043 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.541e-05/0.4028, allocations: 36 kB / 0.5242 GB, free: 6.008 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002336/0.4052, allocations: 1.824 MB / 0.526 GB, free: 4.18 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4052, allocations: 3.938 kB / 0.526 GB, free: 4.176 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00124/0.4064, allocations: 0.5696 MB / 0.5266 GB, free: 3.605 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.001144/0.4075, allocations: 0.772 MB / 0.5273 GB, free: 2.828 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001692/0.4092, allocations: 0.8179 MB / 0.5281 GB, free: 1.988 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.4092, allocations: 1 kB / 0.5281 GB, free: 1.988 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009151/0.4102, allocations: 476.3 kB / 0.5286 GB, free: 1.496 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002217/0.4124, allocations: 0.5951 MB / 0.5291 GB, free: 0.8945 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005544/0.4179, allocations: 3.996 MB / 0.5331 GB, free: 12.85 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001193/0.4191, allocations: 1.6 MB / 0.5346 GB, free: 11.22 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009564/0.4201, allocations: 394.9 kB / 0.535 GB, free: 10.83 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002362/0.4203, allocations: 163.4 kB / 0.5351 GB, free: 10.67 MB / 462.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4203, allocations: 0 / 0.5351 GB, free: 10.67 MB / 462.1 MB Notification: Performance of Templates: time 0.2215/0.6418, allocations: 33.85 MB / 0.5682 GB, free: 114.1 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 5.650245753116906]