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.001292/0.001292, allocations: 115.9 kB / 20.43 MB, free: 1.449 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.001462/0.001462, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.491/1.491, allocations: 230.6 MB / 257.5 MB, free: 7.992 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.001577/0.001577, allocations: 43.94 kB / 378.3 MB, free: 2.633 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2186/0.2202, allocations: 53.36 MB / 431.6 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01522/0.2354, allocations: 14.08 MB / 445.7 MB, free: 8.809 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03044/0.2658, allocations: 20.38 MB / 466.1 MB, free: 4.352 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002929/0.2688, allocations: 189.8 kB / 466.3 MB, free: 4.164 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003775/0.2725, allocations: 1.13 MB / 467.4 MB, free: 3.031 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008398/0.2809, allocations: 2.328 MB / 469.7 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004952/0.2859, allocations: 1.445 MB / 471.2 MB, free: 15.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01074/0.2966, allocations: 6.478 MB / 477.6 MB, free: 8.734 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005935/0.2972, allocations: 249 kB / 477.9 MB, free: 8.457 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001685/0.2989, allocations: 1.104 MB / 479 MB, free: 7.348 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00134/0.3003, allocations: 1.052 MB / 480 MB, free: 6.289 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001597/0.3004, allocations: 72 kB / 480.1 MB, free: 6.219 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003828/0.3042, allocations: 1.483 MB / 481.6 MB, free: 4.734 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002982/0.3045, allocations: 305.7 kB / 481.9 MB, free: 4.434 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001245/0.3058, allocations: 1.292 MB / 483.2 MB, free: 3.133 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004693/0.3105, allocations: 3.659 MB / 486.8 MB, free: 15.45 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.095e-06/0.3105, allocations: 4 kB / 486.8 MB, free: 15.45 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3105, allocations: 3.938 kB / 486.8 MB, free: 15.45 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.805e-05/0.3105, allocations: 3.938 kB / 486.8 MB, free: 15.44 MB / 398.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.005403/0.3159, allocations: 3.543 MB / 490.4 MB, free: 11.84 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.316, allocations: 12.03 kB / 490.4 MB, free: 11.83 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004185/0.3164, allocations: 389.6 kB / 490.8 MB, free: 11.45 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003788/0.3202, allocations: 2.362 MB / 493.1 MB, free: 8.988 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.334e-05/0.3202, allocations: 29 kB / 493.2 MB, free: 8.957 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001202/0.3203, allocations: 51.98 kB / 493.2 MB, free: 8.906 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001366/0.3217, allocations: 0.7069 MB / 493.9 MB, free: 8.195 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.3217, allocations: 0 / 493.9 MB, free: 8.195 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.497e-05/0.3218, allocations: 16 kB / 493.9 MB, free: 8.18 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.486e-05/0.3218, allocations: 23.98 kB / 494 MB, free: 8.156 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001578/0.3234, allocations: 0.7851 MB / 494.8 MB, free: 7.371 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0051/0.3285, allocations: 2.831 MB / 497.6 MB, free: 4.492 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001266/0.3297, allocations: 0.5635 MB / 498.1 MB, free: 3.926 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001054/0.3308, allocations: 0.5856 MB / 498.7 MB, free: 3.336 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02688/0.3577, allocations: 13.75 MB / 0.5005 GB, free: 5.195 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00078/0.3585, allocations: 365.6 kB / 0.5008 GB, free: 4.828 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.194e-06/0.3585, allocations: 0 / 0.5008 GB, free: 4.828 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003186/0.3616, allocations: 1.326 MB / 0.5021 GB, free: 3.488 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.429e-05/0.3617, allocations: 71.34 kB / 0.5022 GB, free: 3.406 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003509/0.3652, allocations: 2.796 MB / 0.5049 GB, free: 0.5898 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.319e-05/0.3653, allocations: 33.7 kB / 0.5049 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001317/0.3666, allocations: 1.396 MB / 0.5063 GB, free: 15.15 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001675/0.3667, allocations: 174.6 kB / 0.5065 GB, free: 14.98 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002921/0.367, allocations: 222.4 kB / 0.5067 GB, free: 14.75 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.3672, allocations: 341.9 kB / 0.507 GB, free: 14.41 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005777/0.3678, allocations: 233.9 kB / 0.5072 GB, free: 14.18 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008475/0.3686, allocations: 0.5927 MB / 0.5078 GB, free: 13.43 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001502/0.3701, allocations: 0.884 MB / 0.5087 GB, free: 12.37 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.644e-06/0.3701, allocations: 4 kB / 0.5087 GB, free: 12.37 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002217/0.3723, allocations: 1.285 MB / 0.5099 GB, free: 11.07 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/0.3724, allocations: 13 kB / 0.51 GB, free: 11.06 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001257/0.3725, allocations: 80 kB / 0.51 GB, free: 10.98 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005848/0.3731, allocations: 282.6 kB / 0.5103 GB, free: 10.71 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005903/0.3737, allocations: 163.7 kB / 0.5105 GB, free: 10.55 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001016/0.3747, allocations: 0.8935 MB / 0.5113 GB, free: 9.629 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009224/0.3756, allocations: 107.3 kB / 0.5114 GB, free: 9.523 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001016/0.3757, allocations: 64 kB / 0.5115 GB, free: 9.461 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.0006797/0.3764, allocations: 429.5 kB / 0.5119 GB, free: 9.031 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003667/0.3768, allocations: 381.6 kB / 0.5123 GB, free: 8.656 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0028/0.3796, allocations: 1.255 MB / 0.5135 GB, free: 7.387 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.3796, allocations: 4 kB / 0.5135 GB, free: 7.383 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.3796, allocations: 0 / 0.5135 GB, free: 7.383 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.3796, allocations: 7.922 kB / 0.5135 GB, free: 7.375 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003687/0.3833, allocations: 2.153 MB / 0.5156 GB, free: 5.148 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001061/0.3834, allocations: 68 kB / 0.5157 GB, free: 5.082 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003186/0.3837, allocations: 67.88 kB / 0.5157 GB, free: 5.016 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004796/0.3842, allocations: 262.3 kB / 0.516 GB, free: 4.758 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.912e-05/0.3842, allocations: 31.98 kB / 0.516 GB, free: 4.727 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009771/0.3852, allocations: 0.8667 MB / 0.5169 GB, free: 3.836 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.3852, allocations: 3.938 kB / 0.5169 GB, free: 3.832 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001909/0.3871, allocations: 1.139 MB / 0.518 GB, free: 2.652 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000821/0.3879, allocations: 415.2 kB / 0.5184 GB, free: 2.242 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000274/0.3882, allocations: 16 kB / 0.5184 GB, free: 2.227 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007036/0.3889, allocations: 31.95 kB / 0.5184 GB, free: 2.195 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001462/0.3891, allocations: 59.94 kB / 0.5185 GB, free: 2.137 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.336e-05/0.3891, allocations: 39.98 kB / 0.5185 GB, free: 2.098 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002512/0.3916, allocations: 1.824 MB / 0.5203 GB, free: 276 kB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3916, allocations: 0 / 0.5203 GB, free: 276 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.001368/0.393, allocations: 0.5658 MB / 0.5208 GB, free: 15.7 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.001197/0.3942, allocations: 0.7757 MB / 0.5216 GB, free: 14.92 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001858/0.3961, allocations: 0.8148 MB / 0.5224 GB, free: 14.09 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3961, allocations: 0 / 0.5224 GB, free: 14.09 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001036/0.3971, allocations: 483.8 kB / 0.5229 GB, free: 13.59 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002247/0.3994, allocations: 0.5946 MB / 0.5234 GB, free: 13 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005673/0.405, allocations: 3.987 MB / 0.5273 GB, free: 8.957 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001209/0.4062, allocations: 1.6 MB / 0.5289 GB, free: 7.328 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009427/0.4072, allocations: 390.9 kB / 0.5293 GB, free: 6.941 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002373/0.4074, allocations: 167.4 kB / 0.5294 GB, free: 6.777 MB / 446.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4074, allocations: 0 / 0.5294 GB, free: 6.777 MB / 446.1 MB Notification: Performance of Templates: time 0.2476/0.655, allocations: 34.11 MB / 0.5627 GB, free: 86.5 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 -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/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_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: 5.945430025923997]