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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001096/0.001096, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.315/1.315, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001223/0.001223, allocations: 115.2 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008564/0.0008565, allocations: 43.94 kB / 350 MB, free: 84 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2104/0.2113, allocations: 49.44 MB / 399.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.008536/0.2199, allocations: 13.89 MB / 413.4 MB, free: 19.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01661/0.2365, allocations: 20.47 MB / 433.8 MB, free: 14.89 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0023/0.2388, allocations: 63.5 kB / 433.9 MB, free: 14.83 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003169/0.2421, allocations: 0.9791 MB / 434.9 MB, free: 13.84 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007708/0.2498, allocations: 1.899 MB / 436.8 MB, free: 11.93 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004186/0.254, allocations: 1.18 MB / 437.9 MB, free: 10.75 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.009911/0.2639, allocations: 6.296 MB / 444.2 MB, free: 4.43 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007966/0.2648, allocations: 408.7 kB / 444.6 MB, free: 3.996 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001576/0.2664, allocations: 1.022 MB / 445.7 MB, free: 2.969 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009864/0.2673, allocations: 1.036 MB / 446.7 MB, free: 1.926 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001583/0.2675, allocations: 44 kB / 446.7 MB, free: 1.883 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003787/0.2713, allocations: 1.451 MB / 448.2 MB, free: 440 kB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002918/0.2716, allocations: 289.8 kB / 448.5 MB, free: 148 kB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001324/0.2729, allocations: 1.281 MB / 449.8 MB, free: 14.86 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004043/0.277, allocations: 3.537 MB / 453.3 MB, free: 11.3 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.277, allocations: 4 kB / 453.3 MB, free: 11.3 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.277, allocations: 0 / 453.3 MB, free: 11.3 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.26e-05/0.2771, allocations: 0 / 453.3 MB, free: 11.3 MB / 330.7 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.005187/0.2823, allocations: 3.51 MB / 456.8 MB, free: 7.711 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.2823, allocations: 12.03 kB / 456.8 MB, free: 7.699 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003532/0.2827, allocations: 375.4 kB / 457.2 MB, free: 7.328 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00342/0.2861, allocations: 2.512 MB / 459.7 MB, free: 4.738 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.984e-05/0.2862, allocations: 44.92 kB / 459.7 MB, free: 4.695 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001148/0.2863, allocations: 51.98 kB / 459.8 MB, free: 4.645 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001181/0.2875, allocations: 0.6991 MB / 460.5 MB, free: 3.941 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.2875, allocations: 0 / 460.5 MB, free: 3.941 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.141e-05/0.2876, allocations: 20 kB / 460.5 MB, free: 3.922 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.879e-05/0.2876, allocations: 19.98 kB / 460.5 MB, free: 3.902 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001434/0.289, allocations: 0.7851 MB / 461.3 MB, free: 3.113 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004484/0.2935, allocations: 2.895 MB / 464.2 MB, free: 148 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001219/0.2948, allocations: 0.7016 MB / 464.9 MB, free: 15.41 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009688/0.2957, allocations: 0.6431 MB / 465.6 MB, free: 14.77 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02789/0.3236, allocations: 30.09 MB / 495.6 MB, free: 12.59 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006988/0.3244, allocations: 369.3 kB / 496 MB, free: 12.22 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 3.346e-06/0.3244, allocations: 0 / 496 MB, free: 12.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.002958/0.3273, allocations: 1.392 MB / 497.4 MB, free: 10.79 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.893e-05/0.3274, allocations: 59.34 kB / 497.5 MB, free: 10.72 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003069/0.3305, allocations: 2.803 MB / 0.4885 GB, free: 7.898 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.335e-05/0.3305, allocations: 37.69 kB / 0.4886 GB, free: 7.855 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001039/0.3316, allocations: 1.387 MB / 0.4899 GB, free: 6.461 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001252/0.3317, allocations: 161.7 kB / 0.4901 GB, free: 6.301 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002715/0.332, allocations: 222.2 kB / 0.4903 GB, free: 6.078 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.3321, allocations: 333.9 kB / 0.4906 GB, free: 5.746 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005404/0.3327, allocations: 241.9 kB / 0.4908 GB, free: 5.512 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007394/0.3334, allocations: 0.5969 MB / 0.4914 GB, free: 4.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001284/0.3347, allocations: 0.884 MB / 0.4923 GB, free: 3.695 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.3347, allocations: 3.938 kB / 0.4923 GB, free: 3.691 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002075/0.3368, allocations: 1.279 MB / 0.4935 GB, free: 2.398 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.3368, allocations: 8 kB / 0.4935 GB, free: 2.391 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.427e-05/0.3369, allocations: 80 kB / 0.4936 GB, free: 2.312 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005072/0.3375, allocations: 281.4 kB / 0.4939 GB, free: 2.035 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005364/0.338, allocations: 167.7 kB / 0.4941 GB, free: 1.871 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008685/0.3389, allocations: 0.8842 MB / 0.4949 GB, free: 0.9609 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008391/0.3397, allocations: 110.9 kB / 0.495 GB, free: 0.8516 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.478e-05/0.3398, allocations: 64 kB / 0.4951 GB, free: 0.7891 MB / 378.7 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.0006992/0.3405, allocations: 429.5 kB / 0.4955 GB, free: 368 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003128/0.3409, allocations: 359.7 kB / 0.4958 GB, free: 4 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1789/0.5197, allocations: 1.261 MB / 0.4971 GB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.068e-05/0.5198, allocations: 4.688 kB / 0.4971 GB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.5198, allocations: 4.422 kB / 0.4971 GB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.443e-06/0.5198, allocations: 3.75 kB / 0.4971 GB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003583/0.5234, allocations: 2.197 MB / 0.4992 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.837e-05/0.5235, allocations: 70.78 kB / 0.4993 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002891/0.5238, allocations: 62.22 kB / 0.4994 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004284/0.5242, allocations: 266.2 kB / 0.4996 GB, free: 102.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.787e-05/0.5243, allocations: 31.41 kB / 0.4996 GB, free: 102.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006899/0.525, allocations: 0.8636 MB / 0.5005 GB, free: 101.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.525, allocations: 0 / 0.5005 GB, free: 101.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00268/0.5277, allocations: 2.62 MB / 0.503 GB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006978/0.5284, allocations: 467.3 kB / 0.5035 GB, free: 99.86 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002334/0.5286, allocations: 7.969 kB / 0.5035 GB, free: 99.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005975/0.5292, allocations: 30.27 kB / 0.5035 GB, free: 99.85 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001416/0.5294, allocations: 62.36 kB / 0.5036 GB, free: 99.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.67e-05/0.5295, allocations: 38.92 kB / 0.5036 GB, free: 99.84 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002234/0.5317, allocations: 1.822 MB / 0.5054 GB, free: 99.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5317, allocations: 0.5312 kB / 0.5054 GB, free: 99.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001332/0.533, allocations: 0.5696 MB / 0.506 GB, free: 98.98 MB / 378.7 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.0008953/0.5339, allocations: 0.7855 MB / 0.5067 GB, free: 98.73 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001561/0.5355, allocations: 0.8435 MB / 0.5075 GB, free: 98.34 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.5355, allocations: 0 / 0.5075 GB, free: 98.34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008023/0.5363, allocations: 496.3 kB / 0.508 GB, free: 98.08 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002144/0.5385, allocations: 0.5711 MB / 0.5086 GB, free: 97.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004774/0.5433, allocations: 4.987 MB / 0.5134 GB, free: 92.77 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000649/0.5439, allocations: 1.612 MB / 0.515 GB, free: 91.12 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001213/0.5452, allocations: 391.9 kB / 0.5154 GB, free: 90.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000174/0.5454, allocations: 159.4 kB / 0.5155 GB, free: 90.59 MB / 378.7 MB Notification: Performance of SimCode: time 6.72e-07/0.5454, allocations: 0 / 0.5155 GB, free: 90.59 MB / 378.7 MB Notification: Performance of Templates: time 0.04516/0.5905, allocations: 32.71 MB / 0.5475 GB, free: 58.14 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches