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.001333/0.001333, allocations: 176.4 kB / 17.4 MB, free: 4.422 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.284/1.284, allocations: 223.3 MB / 241.4 MB, free: 11.7 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.0008487/0.0008486, allocations: 99.58 kB / 292.6 MB, free: 10.78 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003384/0.0003384, allocations: 15.94 kB / 352.3 MB, free: 15.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1981/0.1985, allocations: 50.4 MB / 402.7 MB, free: 32.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1152/0.3137, allocations: 104.2 MB / 0.4951 GB, free: 8.102 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002206/0.314, allocations: 76.53 kB / 0.4951 GB, free: 8.027 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4035/0.7175, allocations: 136.4 MB / 0.6283 GB, free: 15.38 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.195e-06/0.7176, allocations: 0 / 0.6283 GB, free: 15.38 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.175e-05/0.7177, allocations: 44 kB / 0.6284 GB, free: 15.33 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.006086/0.7238, allocations: 3.196 MB / 0.6315 GB, free: 12.07 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.501e-05/0.7238, allocations: 8.031 kB / 0.6315 GB, free: 12.06 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005654/0.7244, allocations: 376.2 kB / 0.6319 GB, free: 11.69 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003803/0.7282, allocations: 2.415 MB / 0.6342 GB, free: 9.195 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.419e-05/0.7282, allocations: 37 kB / 0.6343 GB, free: 9.16 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001626/0.7284, allocations: 51.91 kB / 0.6343 GB, free: 9.109 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00138/0.7298, allocations: 0.83 MB / 0.6351 GB, free: 8.242 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.7298, allocations: 0 / 0.6351 GB, free: 8.242 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.54e-05/0.7299, allocations: 19.98 kB / 0.6352 GB, free: 8.223 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.245e-05/0.7299, allocations: 20 kB / 0.6352 GB, free: 8.203 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001431/0.7314, allocations: 0.8241 MB / 0.636 GB, free: 7.379 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004921/0.7363, allocations: 2.916 MB / 0.6388 GB, free: 4.398 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001188/0.7375, allocations: 0.7358 MB / 0.6395 GB, free: 3.637 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009844/0.7385, allocations: 0.6724 MB / 0.6402 GB, free: 2.961 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2013/0.9398, allocations: 35.56 MB / 0.6749 GB, free: 91.5 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006194/0.9405, allocations: 385.4 kB / 0.6753 GB, free: 91.45 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 2.435e-06/0.9405, allocations: 0 / 0.6753 GB, free: 91.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.002607/0.9431, allocations: 1.468 MB / 0.6767 GB, free: 91.29 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.913e-05/0.9432, allocations: 271.5 kB / 0.677 GB, free: 90.98 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002598/0.9458, allocations: 2.76 MB / 0.6797 GB, free: 90.68 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.847e-05/0.9459, allocations: 38.72 kB / 0.6797 GB, free: 90.65 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008517/0.9467, allocations: 1.39 MB / 0.6811 GB, free: 90.45 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.784e-05/0.9468, allocations: 168.2 kB / 0.6812 GB, free: 90.37 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.737e-05/0.9469, allocations: 15.31 kB / 0.6813 GB, free: 90.37 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.102e-05/0.9469, allocations: 335.4 kB / 0.6816 GB, free: 90.06 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004884/0.9474, allocations: 261 kB / 0.6818 GB, free: 90.06 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005828/0.948, allocations: 0.6525 MB / 0.6825 GB, free: 89.57 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001107/0.9491, allocations: 0.9182 MB / 0.6834 GB, free: 89.12 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.592e-06/0.9491, allocations: 6.688 kB / 0.6834 GB, free: 89.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001796/0.9509, allocations: 1.313 MB / 0.6846 GB, free: 88.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.951, allocations: 15.06 kB / 0.6847 GB, free: 88.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001023/0.9511, allocations: 79.44 kB / 0.6847 GB, free: 88.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005109/0.9516, allocations: 277.5 kB / 0.685 GB, free: 88.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005479/0.9522, allocations: 183 kB / 0.6852 GB, free: 88.89 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008733/0.953, allocations: 0.884 MB / 0.686 GB, free: 88.37 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001019/0.9541, allocations: 123.8 kB / 0.6862 GB, free: 88.34 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.785e-05/0.9542, allocations: 68.03 kB / 0.6862 GB, free: 88.34 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.0007193/0.9549, allocations: 425.8 kB / 0.6866 GB, free: 88.23 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002356/0.9551, allocations: 363.1 kB / 0.687 GB, free: 88.04 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002666/0.9578, allocations: 1.316 MB / 0.6883 GB, free: 87.95 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.9578, allocations: 2.5 kB / 0.6883 GB, free: 87.95 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.9578, allocations: 7.156 kB / 0.6883 GB, free: 87.95 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.9579, allocations: 0 / 0.6883 GB, free: 87.95 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00307/0.9609, allocations: 2.25 MB / 0.6905 GB, free: 87.52 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.423e-05/0.961, allocations: 73.2 kB / 0.6905 GB, free: 87.52 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002924/0.9613, allocations: 72.73 kB / 0.6906 GB, free: 87.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003686/0.9617, allocations: 269.9 kB / 0.6909 GB, free: 87.51 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.596e-05/0.9618, allocations: 29.62 kB / 0.6909 GB, free: 87.51 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006645/0.9624, allocations: 0.8566 MB / 0.6917 GB, free: 86.98 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.9625, allocations: 6.094 kB / 0.6917 GB, free: 86.98 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001466/0.9639, allocations: 1.171 MB / 0.6929 GB, free: 86.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000571/0.9645, allocations: 463.8 kB / 0.6933 GB, free: 86.32 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002517/0.9648, allocations: 21.77 kB / 0.6933 GB, free: 86.32 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006431/0.9654, allocations: 46.48 kB / 0.6934 GB, free: 86.32 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001313/0.9656, allocations: 57.55 kB / 0.6934 GB, free: 86.32 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.993e-05/0.9656, allocations: 41.77 kB / 0.6935 GB, free: 86.32 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00188/0.9675, allocations: 1.791 MB / 0.6952 GB, free: 86.14 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.9675, allocations: 0 / 0.6952 GB, free: 86.14 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001277/0.9688, allocations: 0.611 MB / 0.6958 GB, free: 86.13 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.001151/0.97, allocations: 0.8546 MB / 0.6967 GB, free: 86.04 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001554/0.9715, allocations: 0.8824 MB / 0.6975 GB, free: 85.91 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.9715, allocations: 3.281 kB / 0.6975 GB, free: 85.91 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007327/0.9723, allocations: 0.4988 MB / 0.698 GB, free: 85.78 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002564/0.9749, allocations: 0.5662 MB / 0.6986 GB, free: 85.74 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005251/0.9801, allocations: 4.422 MB / 0.7029 GB, free: 83.58 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001002/0.9812, allocations: 1.596 MB / 0.7044 GB, free: 82.86 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001361/0.9825, allocations: 345 kB / 0.7048 GB, free: 82.83 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001788/0.9827, allocations: 136.8 kB / 0.7049 GB, free: 82.82 MB / 442.7 MB Notification: Performance of SimCode: time 6.81e-07/0.9827, allocations: 0 / 0.7049 GB, free: 82.82 MB / 442.7 MB Notification: Performance of Templates: time 0.04861/1.031, allocations: 33.86 MB / 0.738 GB, free: 78.15 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/jenkins1/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