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.001311/0.001311, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.001897/0.001897, allocations: 211.5 kB / 24.48 MB, free: 3.938 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.488/1.488, allocations: 230.6 MB / 258.2 MB, free: 7.793 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.001652/0.001652, allocations: 47.92 kB / 379 MB, free: 2.457 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.256, allocations: 53.37 MB / 432.3 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01344/0.2695, allocations: 11.82 MB / 444.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02453/0.294, allocations: 17.53 MB / 461.7 MB, free: 9.223 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00275/0.2968, allocations: 189.8 kB / 461.9 MB, free: 9.035 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003306/0.3001, allocations: 1.031 MB / 462.9 MB, free: 8.004 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00917/0.3093, allocations: 2.312 MB / 465.2 MB, free: 5.672 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005632/0.3149, allocations: 1.402 MB / 466.6 MB, free: 4.27 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01108/0.326, allocations: 6.47 MB / 473.1 MB, free: 13.78 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007785/0.3267, allocations: 244.9 kB / 473.3 MB, free: 13.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002012/0.3288, allocations: 1.116 MB / 474.4 MB, free: 12.38 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001658/0.3304, allocations: 1.005 MB / 475.4 MB, free: 11.37 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002236/0.3306, allocations: 72 kB / 475.5 MB, free: 11.3 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003776/0.3344, allocations: 1.202 MB / 476.7 MB, free: 10.1 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004371/0.3348, allocations: 313.7 kB / 477 MB, free: 9.789 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001478/0.3363, allocations: 0.9585 MB / 478 MB, free: 8.824 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00656/0.3429, allocations: 3.687 MB / 481.7 MB, free: 5.121 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.3429, allocations: 0 / 481.7 MB, free: 5.121 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.3429, allocations: 0 / 481.7 MB, free: 5.121 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.898e-05/0.343, allocations: 0 / 481.7 MB, free: 5.121 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.005958/0.3489, allocations: 3.551 MB / 485.2 MB, free: 1.516 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.349, allocations: 8.031 kB / 485.2 MB, free: 1.508 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000521/0.3495, allocations: 389.6 kB / 485.6 MB, free: 1.125 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004074/0.3536, allocations: 2.355 MB / 488 MB, free: 14.67 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.713e-05/0.3536, allocations: 36.98 kB / 488 MB, free: 14.63 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000135/0.3537, allocations: 48 kB / 488 MB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001394/0.3551, allocations: 0.7031 MB / 488.7 MB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.803e-05/0.3552, allocations: 0 / 488.7 MB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.783e-05/0.3552, allocations: 20 kB / 488.8 MB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.608e-05/0.3553, allocations: 19.98 kB / 488.8 MB, free: 13.84 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001565/0.3568, allocations: 0.789 MB / 489.6 MB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005395/0.3622, allocations: 2.584 MB / 492.2 MB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0013/0.3635, allocations: 0.5714 MB / 492.7 MB, free: 9.848 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00103/0.3645, allocations: 0.5779 MB / 493.3 MB, free: 9.27 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02567/0.3902, allocations: 13.71 MB / 0.4951 GB, free: 11.17 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007989/0.391, allocations: 361.6 kB / 0.4955 GB, free: 10.81 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.445e-06/0.391, allocations: 0 / 0.4955 GB, free: 10.81 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003318/0.3943, allocations: 1.318 MB / 0.4968 GB, free: 9.477 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.431e-05/0.3944, allocations: 55.41 kB / 0.4968 GB, free: 9.41 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003751/0.3981, allocations: 2.798 MB / 0.4995 GB, free: 6.59 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.416e-05/0.3982, allocations: 37.7 kB / 0.4996 GB, free: 6.547 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001342/0.3996, allocations: 1.4 MB / 0.5009 GB, free: 5.141 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001888/0.3997, allocations: 174.6 kB / 0.5011 GB, free: 4.969 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003141/0.4001, allocations: 222.4 kB / 0.5013 GB, free: 4.746 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.4002, allocations: 337.9 kB / 0.5016 GB, free: 4.41 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006041/0.4008, allocations: 237.9 kB / 0.5019 GB, free: 4.176 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008773/0.4017, allocations: 0.6005 MB / 0.5025 GB, free: 3.406 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00149/0.4032, allocations: 0.8763 MB / 0.5033 GB, free: 2.359 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-06/0.4032, allocations: 0 / 0.5033 GB, free: 2.359 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002413/0.4056, allocations: 1.285 MB / 0.5046 GB, free: 1.066 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.938e-05/0.4056, allocations: 12 kB / 0.5046 GB, free: 1.055 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001209/0.4058, allocations: 80 kB / 0.5047 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006268/0.4064, allocations: 280.9 kB / 0.5049 GB, free: 0.6992 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005848/0.407, allocations: 163.7 kB / 0.5051 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001146/0.4081, allocations: 0.888 MB / 0.506 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001217/0.4093, allocations: 107.3 kB / 0.5061 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001165/0.4094, allocations: 68.06 kB / 0.5061 GB, free: 15.45 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.0008509/0.4103, allocations: 424.3 kB / 0.5065 GB, free: 15.03 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004754/0.4108, allocations: 381.6 kB / 0.5069 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00309/0.4139, allocations: 1.255 MB / 0.5081 GB, free: 13.39 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/0.4139, allocations: 4 kB / 0.5081 GB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.4139, allocations: 0 / 0.5081 GB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.4139, allocations: 3.984 kB / 0.5081 GB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00422/0.4181, allocations: 2.028 MB / 0.5101 GB, free: 11.29 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001048/0.4182, allocations: 71.98 kB / 0.5102 GB, free: 11.22 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003154/0.4185, allocations: 59.95 kB / 0.5102 GB, free: 11.16 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00053/0.4191, allocations: 264.8 kB / 0.5105 GB, free: 10.9 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-05/0.4191, allocations: 28 kB / 0.5105 GB, free: 10.88 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001057/0.4202, allocations: 0.8724 MB / 0.5114 GB, free: 9.977 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.4202, allocations: 0 / 0.5114 GB, free: 9.977 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002258/0.4224, allocations: 1.139 MB / 0.5125 GB, free: 8.797 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009885/0.4234, allocations: 407.3 kB / 0.5129 GB, free: 8.395 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002856/0.4237, allocations: 19.92 kB / 0.5129 GB, free: 8.375 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006471/0.4244, allocations: 31.97 kB / 0.5129 GB, free: 8.344 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001527/0.4245, allocations: 67.86 kB / 0.513 GB, free: 8.277 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.767e-05/0.4246, allocations: 36 kB / 0.513 GB, free: 8.242 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00268/0.4273, allocations: 1.803 MB / 0.5148 GB, free: 6.434 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4273, allocations: 0 / 0.5148 GB, free: 6.434 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001464/0.4287, allocations: 0.5735 MB / 0.5153 GB, free: 5.859 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.001175/0.4299, allocations: 0.772 MB / 0.5161 GB, free: 5.078 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001868/0.4318, allocations: 0.8142 MB / 0.5169 GB, free: 4.246 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.4318, allocations: 0 / 0.5169 GB, free: 4.246 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009344/0.4327, allocations: 480.8 kB / 0.5173 GB, free: 3.754 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002517/0.4352, allocations: 0.5938 MB / 0.5179 GB, free: 3.156 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006533/0.4418, allocations: 4.051 MB / 0.5219 GB, free: 15.04 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001059/0.4428, allocations: 1.048 MB / 0.5229 GB, free: 13.96 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003828/0.4432, allocations: 163.4 kB / 0.5231 GB, free: 13.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.453e-06/0.4432, allocations: 3.938 kB / 0.5231 GB, free: 13.8 MB / 446.1 MB Notification: Performance of Templates: time 0.2567/0.6999, allocations: 49.43 MB / 0.5713 GB, free: 77.97 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/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: 10.809708463028073]