Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001399/0.0014, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 225.6 MB / 234.8 MB, free: 3.301 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009535/0.0009536, allocations: 93.5 kB / 286.7 MB, free: 5.23 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.867e-05/2.88e-05, allocations: 4 kB / 343.7 MB, free: 8.344 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1463/0.1463, allocations: 51.48 MB / 395.2 MB, free: 4.824 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3568/0.5032, allocations: 104.2 MB / 499.4 MB, free: 5.207 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002029/0.5035, allocations: 71.8 kB / 499.5 MB, free: 5.172 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4739/0.9774, allocations: 133.6 MB / 0.6182 GB, free: 80.45 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.9775, allocations: 0 / 0.6182 GB, free: 80.45 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.605e-05/0.9776, allocations: 42.06 kB / 0.6183 GB, free: 80.45 MB / 442.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.004823/0.9824, allocations: 2.581 MB / 0.6208 GB, free: 79.03 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.312e-05/0.9825, allocations: 8.312 kB / 0.6208 GB, free: 79.03 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006365/0.9831, allocations: 373.3 kB / 0.6212 GB, free: 78.84 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002951/0.9861, allocations: 2.225 MB / 0.6233 GB, free: 78.21 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.54e-05/0.9861, allocations: 15.59 kB / 0.6233 GB, free: 78.21 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001012/0.9862, allocations: 30.5 kB / 0.6234 GB, free: 78.21 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000937/0.9871, allocations: 0.6596 MB / 0.624 GB, free: 78.2 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001001/0.9882, allocations: 0.6988 MB / 0.6247 GB, free: 78.08 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/0.9882, allocations: 0 / 0.6247 GB, free: 78.08 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.49e-05/0.9883, allocations: 1.125 kB / 0.6247 GB, free: 78.08 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.507e-05/0.9883, allocations: 19.92 kB / 0.6247 GB, free: 78.08 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004673/0.993, allocations: 2.794 MB / 0.6274 GB, free: 77.62 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006364/0.9936, allocations: 0.5818 MB / 0.628 GB, free: 77.48 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006597/0.9943, allocations: 0.5806 MB / 0.6286 GB, free: 77.46 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02785/1.022, allocations: 36.61 MB / 0.6643 GB, free: 48.46 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004171/1.023, allocations: 297.4 kB / 0.6646 GB, free: 48.35 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 2.655e-06/1.023, allocations: 0 / 0.6646 GB, free: 48.35 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.001375/1.024, allocations: 0.8592 MB / 0.6655 GB, free: 47.99 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.627e-05/1.024, allocations: 272.4 kB / 0.6657 GB, free: 47.67 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002474/1.027, allocations: 2.084 MB / 0.6677 GB, free: 46.84 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.15e-05/1.027, allocations: 32.98 kB / 0.6678 GB, free: 46.8 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009518/1.028, allocations: 1.394 MB / 0.6691 GB, free: 45.67 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001172/1.028, allocations: 163.1 kB / 0.6693 GB, free: 45.55 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.8e-05/1.028, allocations: 0 / 0.6693 GB, free: 45.55 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.18e-05/1.028, allocations: 341.2 kB / 0.6696 GB, free: 45.23 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002215/1.028, allocations: 168.1 kB / 0.6698 GB, free: 45.16 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003505/1.028, allocations: 0.5602 MB / 0.6703 GB, free: 44.56 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003824/1.029, allocations: 256.6 kB / 0.6706 GB, free: 44.46 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/1.029, allocations: 6.438 kB / 0.6706 GB, free: 44.46 MB / 442.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001388/1.03, allocations: 1.077 MB / 0.6716 GB, free: 44.02 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.441e-05/1.03, allocations: 15.73 kB / 0.6716 GB, free: 44.02 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001082/1.03, allocations: 79.59 kB / 0.6717 GB, free: 44.02 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004779/1.031, allocations: 272 kB / 0.672 GB, free: 43.97 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005561/1.031, allocations: 172.6 kB / 0.6721 GB, free: 43.95 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007649/1.032, allocations: 0.9271 MB / 0.673 GB, free: 43.32 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001232/1.033, allocations: 103.2 kB / 0.6731 GB, free: 43.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.365e-05/1.034, allocations: 60.38 kB / 0.6732 GB, free: 43.27 MB / 442.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 ($PRE.vin1.counter,vin1.counter,$PRE.vin2.counter,vin2.counter,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0001646/1.034, allocations: 148.2 kB / 0.6733 GB, free: 43.12 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002686/1.034, allocations: 373.2 kB / 0.6737 GB, free: 42.94 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00259/1.037, allocations: 1.167 MB / 0.6748 GB, free: 42.5 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/1.037, allocations: 7.922 kB / 0.6748 GB, free: 42.5 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/1.037, allocations: 0 / 0.6748 GB, free: 42.5 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/1.037, allocations: 3.938 kB / 0.6749 GB, free: 42.5 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003126/1.04, allocations: 2.004 MB / 0.6768 GB, free: 41.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.902e-05/1.04, allocations: 72.66 kB / 0.6769 GB, free: 41.58 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003051/1.04, allocations: 70.97 kB / 0.6769 GB, free: 41.58 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003657/1.041, allocations: 260.5 kB / 0.6772 GB, free: 41.54 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.083e-05/1.041, allocations: 34 kB / 0.6772 GB, free: 41.53 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007341/1.041, allocations: 0.8949 MB / 0.6781 GB, free: 40.91 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/1.041, allocations: 3.219 kB / 0.6781 GB, free: 40.91 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001105/1.042, allocations: 1.102 MB / 0.6792 GB, free: 40.25 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007148/1.043, allocations: 467.9 kB / 0.6796 GB, free: 39.93 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002959/1.043, allocations: 3.812 kB / 0.6796 GB, free: 39.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007152/1.044, allocations: 46.77 kB / 0.6797 GB, free: 39.92 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001309/1.044, allocations: 69.53 kB / 0.6797 GB, free: 39.91 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.083e-05/1.044, allocations: 41.59 kB / 0.6798 GB, free: 39.9 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001717/1.046, allocations: 1.552 MB / 0.6813 GB, free: 39.25 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.4e-07/1.046, allocations: 0 / 0.6813 GB, free: 39.25 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001502/1.048, allocations: 0.5841 MB / 0.6819 GB, free: 39.16 MB / 442.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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001197/1.049, allocations: 0.9473 MB / 0.6828 GB, free: 38.88 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001075/1.05, allocations: 0.6993 MB / 0.6835 GB, free: 38.59 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/1.05, allocations: 8.094 kB / 0.6835 GB, free: 38.58 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005063/1.05, allocations: 423.1 kB / 0.6839 GB, free: 38.38 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002329/1.053, allocations: 0.5436 MB / 0.6844 GB, free: 38.18 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003895/1.057, allocations: 2.737 MB / 0.6871 GB, free: 36.97 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007863/1.058, allocations: 1.661 MB / 0.6887 GB, free: 36.21 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001214/1.059, allocations: 340.1 kB / 0.689 GB, free: 36.12 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001997/1.059, allocations: 140.5 kB / 0.6892 GB, free: 36.12 MB / 442.7 MB Notification: Performance of SimCode: time 7.41e-07/1.059, allocations: 0 / 0.6892 GB, free: 36.12 MB / 442.7 MB Notification: Performance of Templates: time 0.04318/1.102, allocations: 28.43 MB / 0.7169 GB, free: 16.69 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches