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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001163/0.001163, allocations: 204 kB / 8.54 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.227/1.227, allocations: 225.5 MB / 234.4 MB, free: 3.391 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008735/0.000874, allocations: 93.56 kB / 286.3 MB, free: 5.219 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.392e-06/6.422e-06, allocations: 0 / 343.1 MB, free: 8.758 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.102, allocations: 51.48 MB / 394.6 MB, free: 5.227 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.264/0.3661, allocations: 104.1 MB / 498.8 MB, free: 5.262 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002021/0.3664, allocations: 67.03 kB / 498.8 MB, free: 5.23 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.4178/0.7842, allocations: 134.3 MB / 0.6182 GB, free: 80.93 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.177e-05/0.7843, allocations: 44 kB / 0.6183 GB, free: 80.93 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.004486/0.7888, allocations: 2.616 MB / 0.6208 GB, free: 79.49 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.7889, allocations: 11.19 kB / 0.6208 GB, free: 79.49 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004847/0.7893, allocations: 372.2 kB / 0.6212 GB, free: 79.3 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003113/0.7925, allocations: 2.225 MB / 0.6234 GB, free: 78.67 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.371e-05/0.7925, allocations: 15.56 kB / 0.6234 GB, free: 78.67 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001103/0.7926, allocations: 35.38 kB / 0.6234 GB, free: 78.66 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008986/0.7935, allocations: 0.6535 MB / 0.6241 GB, free: 78.66 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001049/0.7946, allocations: 0.694 MB / 0.6247 GB, free: 78.54 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.7946, allocations: 0 / 0.6247 GB, free: 78.54 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.842e-05/0.7947, allocations: 0 / 0.6247 GB, free: 78.54 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.547e-05/0.7947, allocations: 20.16 kB / 0.6248 GB, free: 78.54 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004577/0.7993, allocations: 2.838 MB / 0.6275 GB, free: 78.06 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000427/0.7998, allocations: 351.5 kB / 0.6279 GB, free: 78.04 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006565/0.8004, allocations: 0.5393 MB / 0.6284 GB, free: 78.02 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03201/0.8324, allocations: 36.49 MB / 0.664 GB, free: 48.52 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000406/0.8329, allocations: 290.7 kB / 0.6643 GB, free: 48.4 MB / 442.7 MB Notification: Performance of pre-optimization done (n=50): time 2.545e-06/0.8329, allocations: 0 / 0.6643 GB, free: 48.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=50): time 0.001498/0.8344, allocations: 0.8651 MB / 0.6651 GB, free: 48.05 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.249e-05/0.8345, allocations: 265.3 kB / 0.6654 GB, free: 47.73 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002698/0.8372, allocations: 2.095 MB / 0.6674 GB, free: 46.89 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.301e-05/0.8373, allocations: 25.7 kB / 0.6675 GB, free: 46.86 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003429/0.8376, allocations: 0.6071 MB / 0.6681 GB, free: 46.48 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000112/0.8377, allocations: 165.5 kB / 0.6682 GB, free: 46.35 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.001e-05/0.8378, allocations: 0 / 0.6682 GB, free: 46.35 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.326e-05/0.8378, allocations: 342.6 kB / 0.6685 GB, free: 46.03 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002649/0.8381, allocations: 168 kB / 0.6687 GB, free: 45.97 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003632/0.8385, allocations: 0.5664 MB / 0.6693 GB, free: 45.36 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003989/0.8389, allocations: 253.8 kB / 0.6695 GB, free: 45.25 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.8389, allocations: 4.375 kB / 0.6695 GB, free: 45.25 MB / 442.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.00144/0.8403, allocations: 1.085 MB / 0.6706 GB, free: 44.82 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.174e-05/0.8404, allocations: 3.062 kB / 0.6706 GB, free: 44.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001114/0.8405, allocations: 82.39 kB / 0.6706 GB, free: 44.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005234/0.841, allocations: 278.4 kB / 0.6709 GB, free: 44.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005955/0.8416, allocations: 185.6 kB / 0.6711 GB, free: 44.75 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001087/0.8427, allocations: 0.9328 MB / 0.672 GB, free: 44.12 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001587/0.8443, allocations: 111.1 kB / 0.6721 GB, free: 44.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001273/0.8445, allocations: 68.92 kB / 0.6722 GB, free: 44.06 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 13} Notification: Performance of prepare postOptimizeDAE: time 0.0002054/0.8447, allocations: 145.4 kB / 0.6723 GB, free: 43.93 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003432/0.845, allocations: 363.7 kB / 0.6727 GB, free: 43.74 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004265/0.8493, allocations: 1.43 MB / 0.6741 GB, free: 43.18 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.658e-06/0.8493, allocations: 7.469 kB / 0.6741 GB, free: 43.18 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.8493, allocations: 3.938 kB / 0.6741 GB, free: 43.18 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.8493, allocations: 3.516 kB / 0.6741 GB, free: 43.18 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003638/0.853, allocations: 2.003 MB / 0.676 GB, free: 42.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001027/0.8531, allocations: 72.33 kB / 0.6761 GB, free: 42.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003472/0.8535, allocations: 78.58 kB / 0.6762 GB, free: 42.26 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004549/0.8539, allocations: 262 kB / 0.6764 GB, free: 42.21 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.126e-05/0.854, allocations: 26.52 kB / 0.6764 GB, free: 42.21 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009407/0.855, allocations: 0.9268 MB / 0.6774 GB, free: 41.58 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.855, allocations: 3.422 kB / 0.6774 GB, free: 41.58 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001307/0.8563, allocations: 1.116 MB / 0.6784 GB, free: 40.91 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007648/0.8571, allocations: 469.6 kB / 0.6789 GB, free: 40.59 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003613/0.8574, allocations: 6.531 kB / 0.6789 GB, free: 40.59 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007428/0.8582, allocations: 44.44 kB / 0.6789 GB, free: 40.58 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001478/0.8583, allocations: 69.62 kB / 0.679 GB, free: 40.56 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.138e-05/0.8584, allocations: 40.45 kB / 0.679 GB, free: 40.56 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001862/0.8603, allocations: 1.554 MB / 0.6806 GB, free: 39.9 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0014/0.8617, allocations: 0.5842 MB / 0.6811 GB, free: 39.82 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 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.001137/0.8628, allocations: 0.9594 MB / 0.6821 GB, free: 39.54 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001161/0.864, allocations: 0.6909 MB / 0.6827 GB, free: 39.24 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.864, allocations: 2.875 kB / 0.6827 GB, free: 39.24 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005682/0.8646, allocations: 413.2 kB / 0.6831 GB, free: 39.04 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002103/0.8667, allocations: 0.532 MB / 0.6837 GB, free: 38.85 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007333/0.8741, allocations: 2.747 MB / 0.6863 GB, free: 37.68 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001582/0.8757, allocations: 1.812 MB / 0.6881 GB, free: 36.91 MB / 442.7 MB Notification: Performance of SimCode: time 1.012e-06/0.8757, allocations: 0 / 0.6881 GB, free: 36.91 MB / 442.7 MB Notification: Performance of Templates: time 0.0676/0.9433, allocations: 29.67 MB / 0.7171 GB, free: 16.39 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