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.001372/0.001372, allocations: 200.5 kB / 18.1 MB, free: 3.613 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.277/1.277, allocations: 226.5 MB / 245.4 MB, free: 6.406 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008168/0.0008167, allocations: 103.7 kB / 297.5 MB, free: 6.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002139/0.0002139, allocations: 4 kB / 358.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.197/0.1972, allocations: 51.29 MB / 409.4 MB, free: 27.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1156/0.3128, allocations: 104.9 MB / 0.5022 GB, free: 2.516 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002164/0.3131, allocations: 75.97 kB / 0.5023 GB, free: 2.441 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4106/0.7237, allocations: 136.7 MB / 0.6358 GB, free: 6.352 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.7238, allocations: 0 / 0.6358 GB, free: 6.352 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.192e-05/0.7238, allocations: 44 kB / 0.6358 GB, free: 6.309 MB / 410.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.005859/0.7297, allocations: 3.199 MB / 0.6389 GB, free: 3.039 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.7298, allocations: 11.97 kB / 0.6389 GB, free: 3.027 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005822/0.7303, allocations: 387.7 kB / 0.6393 GB, free: 2.645 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003906/0.7343, allocations: 2.407 MB / 0.6417 GB, free: 164 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.792e-05/0.7343, allocations: 33 kB / 0.6417 GB, free: 132 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001568/0.7345, allocations: 55.89 kB / 0.6418 GB, free: 76 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001461/0.7359, allocations: 0.83 MB / 0.6426 GB, free: 15.21 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.583e-05/0.736, allocations: 0 / 0.6426 GB, free: 15.21 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.393e-05/0.7361, allocations: 23.98 kB / 0.6426 GB, free: 15.18 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.77e-05/0.7361, allocations: 27.92 kB / 0.6426 GB, free: 15.16 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001533/0.7376, allocations: 0.8241 MB / 0.6434 GB, free: 14.34 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005042/0.7427, allocations: 2.907 MB / 0.6463 GB, free: 11.36 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001223/0.7439, allocations: 0.7367 MB / 0.647 GB, free: 10.6 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001045/0.745, allocations: 0.6646 MB / 0.6476 GB, free: 9.93 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.204/0.949, allocations: 36.21 MB / 0.683 GB, free: 79.46 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006464/0.9497, allocations: 377.8 kB / 0.6833 GB, free: 79.41 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 3.346e-06/0.9497, allocations: 0 / 0.6833 GB, free: 79.41 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.002789/0.9525, allocations: 1.47 MB / 0.6848 GB, free: 79.26 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.977e-05/0.9526, allocations: 270 kB / 0.685 GB, free: 78.95 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002671/0.9552, allocations: 2.767 MB / 0.6877 GB, free: 78.65 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.339e-05/0.9553, allocations: 34.3 kB / 0.6878 GB, free: 78.62 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009003/0.9562, allocations: 1.39 MB / 0.6891 GB, free: 78.41 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000134/0.9563, allocations: 163.2 kB / 0.6893 GB, free: 78.33 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.319e-05/0.9564, allocations: 13.97 kB / 0.6893 GB, free: 78.33 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.273e-05/0.9565, allocations: 342.1 kB / 0.6896 GB, free: 78.03 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005655/0.957, allocations: 259.2 kB / 0.6899 GB, free: 78.03 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006276/0.9577, allocations: 0.6543 MB / 0.6905 GB, free: 77.53 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001168/0.9589, allocations: 0.9203 MB / 0.6914 GB, free: 77.09 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/0.9589, allocations: 3.438 kB / 0.6914 GB, free: 77.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002105/0.961, allocations: 1.318 MB / 0.6927 GB, free: 76.87 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.507e-05/0.961, allocations: 10.75 kB / 0.6927 GB, free: 76.87 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001207/0.9611, allocations: 83.91 kB / 0.6928 GB, free: 76.87 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004981/0.9616, allocations: 276.8 kB / 0.6931 GB, free: 76.86 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005813/0.9622, allocations: 181.3 kB / 0.6932 GB, free: 76.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007167/0.963, allocations: 0.8798 MB / 0.6941 GB, free: 76.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001038/0.964, allocations: 128.9 kB / 0.6942 GB, free: 76.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.328e-05/0.9641, allocations: 75.94 kB / 0.6943 GB, free: 76.3 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 () * 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 (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.0008005/0.9649, allocations: 419.2 kB / 0.6947 GB, free: 76.19 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002455/0.9652, allocations: 372.1 kB / 0.695 GB, free: 76.01 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002755/0.9679, allocations: 1.309 MB / 0.6963 GB, free: 75.9 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.254e-06/0.968, allocations: 3.656 kB / 0.6963 GB, free: 75.9 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.968, allocations: 3 kB / 0.6963 GB, free: 75.9 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.968, allocations: 0 / 0.6963 GB, free: 75.9 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003069/0.9711, allocations: 2.252 MB / 0.6985 GB, free: 75.49 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.111e-05/0.9712, allocations: 75.28 kB / 0.6986 GB, free: 75.48 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002952/0.9715, allocations: 68.17 kB / 0.6987 GB, free: 75.48 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003673/0.9718, allocations: 257.5 kB / 0.6989 GB, free: 75.48 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.817e-05/0.9719, allocations: 35.16 kB / 0.6989 GB, free: 75.48 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006473/0.9725, allocations: 0.8597 MB / 0.6998 GB, free: 74.95 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.9726, allocations: 3.969 kB / 0.6998 GB, free: 74.95 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00148/0.974, allocations: 1.179 MB / 0.7009 GB, free: 74.55 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006298/0.9747, allocations: 467.3 kB / 0.7014 GB, free: 74.27 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002569/0.975, allocations: 18.31 kB / 0.7014 GB, free: 74.27 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006593/0.9756, allocations: 44.09 kB / 0.7014 GB, free: 74.27 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001398/0.9758, allocations: 58.33 kB / 0.7015 GB, free: 74.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.201e-05/0.9758, allocations: 42.66 kB / 0.7015 GB, free: 74.27 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001946/0.9778, allocations: 1.783 MB / 0.7033 GB, free: 74.09 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.9778, allocations: 0 / 0.7033 GB, free: 74.09 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001332/0.9791, allocations: 0.6198 MB / 0.7039 GB, free: 74.09 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) * 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 (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.001133/0.9803, allocations: 0.8684 MB / 0.7047 GB, free: 74 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001611/0.9819, allocations: 0.8798 MB / 0.7056 GB, free: 73.86 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.9819, allocations: 0 / 0.7056 GB, free: 73.86 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000752/0.9827, allocations: 0.4933 MB / 0.7061 GB, free: 73.74 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002655/0.9853, allocations: 0.5595 MB / 0.7066 GB, free: 73.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004666/0.99, allocations: 4.422 MB / 0.7109 GB, free: 71.54 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007708/0.9908, allocations: 1.601 MB / 0.7125 GB, free: 70.82 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001177/0.992, allocations: 344.3 kB / 0.7128 GB, free: 70.79 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001631/0.9922, allocations: 138.2 kB / 0.713 GB, free: 70.79 MB / 442.7 MB Notification: Performance of SimCode: time 5.41e-07/0.9922, allocations: 0 / 0.713 GB, free: 70.79 MB / 442.7 MB Notification: Performance of Templates: time 0.04952/1.042, allocations: 33.9 MB / 0.7461 GB, free: 64.54 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/jenkins1/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