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.001383/0.001383, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001485/0.001485, allocations: 202.7 kB / 23.73 MB, free: 4.379 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.552/1.552, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.001582/0.001582, allocations: 47.92 kB / 378.2 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2415/0.2431, allocations: 53.37 MB / 431.6 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01412/0.2572, allocations: 11.83 MB / 443.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02601/0.2832, allocations: 17.53 MB / 460.9 MB, free: 9.234 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001879/0.2851, allocations: 193.8 kB / 461.1 MB, free: 9.043 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003032/0.2881, allocations: 1.03 MB / 462.1 MB, free: 8.012 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008253/0.2963, allocations: 2.3 MB / 464.4 MB, free: 5.691 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004675/0.301, allocations: 1.406 MB / 465.9 MB, free: 4.285 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01027/0.3113, allocations: 6.47 MB / 472.3 MB, free: 13.79 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006191/0.3119, allocations: 252.9 kB / 472.6 MB, free: 13.51 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001833/0.3137, allocations: 1.112 MB / 473.7 MB, free: 12.39 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001749/0.3155, allocations: 1.052 MB / 474.7 MB, free: 11.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002085/0.3157, allocations: 68 kB / 474.8 MB, free: 11.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003925/0.3196, allocations: 1.241 MB / 476 MB, free: 10.03 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003515/0.32, allocations: 313.7 kB / 476.4 MB, free: 9.719 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00119/0.3212, allocations: 0.9546 MB / 477.3 MB, free: 8.758 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005719/0.3269, allocations: 3.687 MB / 481 MB, free: 5.055 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.3269, allocations: 0 / 481 MB, free: 5.055 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3269, allocations: 3.938 kB / 481 MB, free: 5.051 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.186e-05/0.327, allocations: 0 / 481 MB, free: 5.051 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.005647/0.3326, allocations: 3.551 MB / 484.5 MB, free: 1.445 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.3326, allocations: 8.031 kB / 484.6 MB, free: 1.438 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004605/0.3331, allocations: 393.5 kB / 484.9 MB, free: 1.051 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004005/0.3371, allocations: 2.362 MB / 487.3 MB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.908e-05/0.3372, allocations: 37 kB / 487.3 MB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001297/0.3373, allocations: 48 kB / 487.4 MB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001365/0.3386, allocations: 0.7031 MB / 488.1 MB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.6e-05/0.3387, allocations: 0 / 488.1 MB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.436e-05/0.3387, allocations: 16 kB / 488.1 MB, free: 13.78 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.892e-05/0.3388, allocations: 23.98 kB / 488.1 MB, free: 13.75 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001584/0.3403, allocations: 0.7851 MB / 488.9 MB, free: 12.97 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005006/0.3453, allocations: 2.584 MB / 491.5 MB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001279/0.3466, allocations: 0.5597 MB / 492.1 MB, free: 9.785 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001025/0.3476, allocations: 0.574 MB / 492.6 MB, free: 9.207 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03334/0.381, allocations: 13.71 MB / 0.4945 GB, free: 11.11 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007817/0.3818, allocations: 357.6 kB / 0.4948 GB, free: 10.75 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.695e-06/0.3818, allocations: 0 / 0.4948 GB, free: 10.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003311/0.3851, allocations: 1.318 MB / 0.4961 GB, free: 9.414 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.658e-05/0.3851, allocations: 59.41 kB / 0.4962 GB, free: 9.344 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003986/0.3891, allocations: 2.798 MB / 0.4989 GB, free: 6.523 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001236/0.3893, allocations: 33.7 kB / 0.4989 GB, free: 6.484 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00138/0.3906, allocations: 1.404 MB / 0.5003 GB, free: 5.074 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002353/0.3909, allocations: 170.6 kB / 0.5005 GB, free: 4.906 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003588/0.3912, allocations: 222.4 kB / 0.5007 GB, free: 4.684 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.3914, allocations: 341.9 kB / 0.501 GB, free: 4.344 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006147/0.392, allocations: 233.9 kB / 0.5012 GB, free: 4.113 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008855/0.3929, allocations: 0.6005 MB / 0.5018 GB, free: 3.348 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001557/0.3945, allocations: 0.8763 MB / 0.5027 GB, free: 2.301 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.076e-05/0.3945, allocations: 7.938 kB / 0.5027 GB, free: 2.293 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002589/0.3971, allocations: 1.285 MB / 0.5039 GB, free: 1 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.644e-05/0.3971, allocations: 8 kB / 0.5039 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001273/0.3972, allocations: 83.98 kB / 0.504 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005848/0.3978, allocations: 277 kB / 0.5043 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005845/0.3984, allocations: 163.7 kB / 0.5044 GB, free: 488 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001051/0.3994, allocations: 0.887 MB / 0.5053 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001206/0.4006, allocations: 111.4 kB / 0.5054 GB, free: 15.46 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001076/0.4007, allocations: 64 kB / 0.5055 GB, free: 15.39 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.0008002/0.4015, allocations: 425.5 kB / 0.5059 GB, free: 14.97 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005319/0.4021, allocations: 381.6 kB / 0.5062 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002902/0.405, allocations: 1.251 MB / 0.5075 GB, free: 13.33 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.043e-05/0.405, allocations: 4 kB / 0.5075 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.405, allocations: 0 / 0.5075 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.405, allocations: 7.922 kB / 0.5075 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003754/0.4088, allocations: 2.025 MB / 0.5094 GB, free: 11.23 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001141/0.4089, allocations: 75.98 kB / 0.5095 GB, free: 11.16 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003047/0.4092, allocations: 51.95 kB / 0.5096 GB, free: 11.11 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004802/0.4096, allocations: 276.7 kB / 0.5098 GB, free: 10.84 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.744e-05/0.4097, allocations: 32 kB / 0.5099 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009748/0.4107, allocations: 0.8568 MB / 0.5107 GB, free: 9.922 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.4107, allocations: 4.031 kB / 0.5107 GB, free: 9.918 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001884/0.4126, allocations: 1.139 MB / 0.5118 GB, free: 8.738 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008574/0.4134, allocations: 407.3 kB / 0.5122 GB, free: 8.336 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002643/0.4137, allocations: 23.92 kB / 0.5122 GB, free: 8.312 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006274/0.4143, allocations: 23.97 kB / 0.5122 GB, free: 8.289 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001585/0.4145, allocations: 67.86 kB / 0.5123 GB, free: 8.223 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.36e-05/0.4146, allocations: 36 kB / 0.5123 GB, free: 8.188 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002425/0.417, allocations: 1.807 MB / 0.5141 GB, free: 6.375 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.417, allocations: 0 / 0.5141 GB, free: 6.375 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0013/0.4183, allocations: 0.5696 MB / 0.5147 GB, free: 5.805 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.001131/0.4194, allocations: 0.7759 MB / 0.5154 GB, free: 5.02 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001773/0.4212, allocations: 0.8148 MB / 0.5162 GB, free: 4.188 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.4212, allocations: 0 / 0.5162 GB, free: 4.188 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009435/0.4221, allocations: 480.2 kB / 0.5167 GB, free: 3.695 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002305/0.4244, allocations: 0.6067 MB / 0.5173 GB, free: 3.082 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005584/0.43, allocations: 3.983 MB / 0.5212 GB, free: 15.04 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001017/0.431, allocations: 1.052 MB / 0.5222 GB, free: 13.96 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009993/0.432, allocations: 390.9 kB / 0.5226 GB, free: 13.57 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002303/0.4323, allocations: 159.4 kB / 0.5227 GB, free: 13.42 MB / 446.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4323, allocations: 0 / 0.5227 GB, free: 13.42 MB / 446.1 MB Notification: Performance of Templates: time 0.2539/0.6862, allocations: 36.5 MB / 0.5584 GB, free: 91.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.964494226034731]