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") [: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 4.0.0+maint.om/package.mo): time 0.001102/0.001103, allocations: 186.1 kB / 8.136 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.218/1.218, allocations: 221.4 MB / 229.9 MB, free: 3.07 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009244/0.0009244, allocations: 97.8 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.715e-06/7.735e-06, allocations: 4 kB / 336.5 MB, free: 9.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2043/0.2043, allocations: 50.39 MB / 386.9 MB, free: 38.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1086/0.313, allocations: 103.3 MB / 490.2 MB, free: 15.48 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002358/0.3133, allocations: 80.39 kB / 490.3 MB, free: 15.4 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.4511/0.7644, allocations: 133.8 MB / 0.6095 GB, free: 2.902 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.256e-05/0.7645, allocations: 40 kB / 0.6095 GB, free: 2.863 MB / 394.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.004124/0.7686, allocations: 2.615 MB / 0.6121 GB, free: 200 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.7687, allocations: 12.03 kB / 0.6121 GB, free: 188 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004285/0.7691, allocations: 379.5 kB / 0.6125 GB, free: 15.8 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003278/0.7724, allocations: 2.22 MB / 0.6146 GB, free: 13.59 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.541e-05/0.7724, allocations: 20 kB / 0.6147 GB, free: 13.57 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001139/0.7726, allocations: 31.91 kB / 0.6147 GB, free: 13.54 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001029/0.7736, allocations: 0.6545 MB / 0.6153 GB, free: 12.89 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001001/0.7746, allocations: 0.6993 MB / 0.616 GB, free: 12.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.7746, allocations: 0 / 0.616 GB, free: 12.16 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.487e-05/0.7747, allocations: 0 / 0.616 GB, free: 12.16 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.432e-05/0.7747, allocations: 19.98 kB / 0.616 GB, free: 12.14 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004901/0.7796, allocations: 2.825 MB / 0.6188 GB, free: 9.289 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004753/0.7801, allocations: 358.9 kB / 0.6191 GB, free: 8.93 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006654/0.7808, allocations: 0.5441 MB / 0.6197 GB, free: 8.387 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1581/0.9389, allocations: 35.81 MB / 0.6546 GB, free: 133.1 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003719/0.9394, allocations: 298.4 kB / 0.6549 GB, free: 133 MB / 442.7 MB Notification: Performance of pre-optimization done (n=50): time 3.366e-06/0.9394, allocations: 0 / 0.6549 GB, free: 133 MB / 442.7 MB Notification: Performance of matching and sorting (n=50): time 0.001383/0.9408, allocations: 0.8611 MB / 0.6558 GB, free: 132.9 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.648e-05/0.9408, allocations: 266 kB / 0.656 GB, free: 132.6 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002364/0.9432, allocations: 2.091 MB / 0.6581 GB, free: 132.3 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.538e-05/0.9433, allocations: 31.36 kB / 0.6581 GB, free: 132.2 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003189/0.9436, allocations: 0.6123 MB / 0.6587 GB, free: 132 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001034/0.9437, allocations: 162.1 kB / 0.6588 GB, free: 132 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.04e-05/0.9438, allocations: 0 / 0.6588 GB, free: 132 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.882e-05/0.9438, allocations: 340.3 kB / 0.6592 GB, free: 131.7 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002517/0.9441, allocations: 169.8 kB / 0.6593 GB, free: 131.7 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003652/0.9444, allocations: 0.5609 MB / 0.6599 GB, free: 131.2 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003973/0.9449, allocations: 258.9 kB / 0.6601 GB, free: 131.1 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.162e-06/0.9449, allocations: 7.25 kB / 0.6601 GB, free: 131.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001435/0.9463, allocations: 1.083 MB / 0.6612 GB, free: 130.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.9463, allocations: 3.656 kB / 0.6612 GB, free: 130.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001117/0.9464, allocations: 82.83 kB / 0.6613 GB, free: 130.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005299/0.947, allocations: 276 kB / 0.6615 GB, free: 130.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005697/0.9476, allocations: 183.9 kB / 0.6617 GB, free: 130.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009116/0.9485, allocations: 0.939 MB / 0.6626 GB, free: 130.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001158/0.9497, allocations: 109.4 kB / 0.6627 GB, free: 130.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.212e-05/0.9498, allocations: 63.41 kB / 0.6628 GB, free: 130.4 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.0001625/0.9499, allocations: 144 kB / 0.6629 GB, free: 130.3 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002578/0.9502, allocations: 369 kB / 0.6633 GB, free: 130.1 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003839/0.954, allocations: 1.439 MB / 0.6647 GB, free: 130 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.745e-06/0.9541, allocations: 10.06 kB / 0.6647 GB, free: 130 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.9541, allocations: 0 / 0.6647 GB, free: 130 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.9541, allocations: 0 / 0.6647 GB, free: 130 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003004/0.9571, allocations: 2 MB / 0.6666 GB, free: 129.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.741e-05/0.9572, allocations: 76.06 kB / 0.6667 GB, free: 129.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003456/0.9576, allocations: 75.39 kB / 0.6668 GB, free: 129.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004468/0.958, allocations: 263.3 kB / 0.667 GB, free: 129.6 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.981e-05/0.9581, allocations: 32.44 kB / 0.6671 GB, free: 129.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008681/0.959, allocations: 0.9185 MB / 0.668 GB, free: 129.1 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.959, allocations: 6.844 kB / 0.668 GB, free: 129.1 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001179/0.9602, allocations: 1.106 MB / 0.6691 GB, free: 128.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007177/0.9609, allocations: 470.5 kB / 0.6695 GB, free: 128.3 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003876/0.9613, allocations: 10.09 kB / 0.6695 GB, free: 128.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007604/0.9621, allocations: 45.45 kB / 0.6696 GB, free: 128.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001359/0.9622, allocations: 60 kB / 0.6696 GB, free: 128.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.181e-05/0.9623, allocations: 40.12 kB / 0.6697 GB, free: 128.3 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001842/0.9641, allocations: 1.549 MB / 0.6712 GB, free: 128.1 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001561/0.9657, allocations: 0.5866 MB / 0.6717 GB, free: 128.1 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.001093/0.9668, allocations: 0.961 MB / 0.6727 GB, free: 128 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001095/0.9679, allocations: 0.6939 MB / 0.6734 GB, free: 127.9 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.9679, allocations: 0 / 0.6734 GB, free: 127.9 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005701/0.9685, allocations: 427.9 kB / 0.6738 GB, free: 127.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002137/0.9706, allocations: 0.5347 MB / 0.6743 GB, free: 127.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004616/0.9753, allocations: 2.749 MB / 0.677 GB, free: 126.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009738/0.9763, allocations: 1.803 MB / 0.6787 GB, free: 126.1 MB / 442.7 MB Notification: Performance of SimCode: time 8.72e-07/0.9763, allocations: 3.875 kB / 0.6787 GB, free: 126.1 MB / 442.7 MB Notification: Performance of Templates: time 0.04749/1.024, allocations: 29.62 MB / 0.7077 GB, free: 124.2 MB / 442.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/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