Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001495/0.001495, allocations: 182.8 kB / 18.04 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.388/1.388, allocations: 205.4 MB / 224.2 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008261/0.0008261, allocations: 81.44 kB / 272.5 MB, free: 8.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003038/0.0003038, allocations: 8 kB / 329.4 MB, free: 15.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1955/0.1958, allocations: 47.58 MB / 377 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1037/0.2995, allocations: 102.2 MB / 479.3 MB, free: 10.26 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001928/0.2997, allocations: 79.95 kB / 479.3 MB, free: 10.18 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3522/0.652, allocations: 121.2 MB / 0.5865 GB, free: 29.07 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.644e-06/0.652, allocations: 0 / 0.5865 GB, free: 29.07 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.371e-05/0.6521, allocations: 40 kB / 0.5865 GB, free: 29.03 MB / 378.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.004934/0.657, allocations: 3.219 MB / 0.5897 GB, free: 25.74 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/0.6571, allocations: 8.031 kB / 0.5897 GB, free: 25.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000461/0.6576, allocations: 388.8 kB / 0.5901 GB, free: 25.35 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00312/0.6607, allocations: 2.435 MB / 0.5924 GB, free: 22.84 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.021e-05/0.6607, allocations: 33 kB / 0.5925 GB, free: 22.81 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001353/0.6609, allocations: 55.89 kB / 0.5925 GB, free: 22.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001201/0.6621, allocations: 0.8339 MB / 0.5933 GB, free: 21.88 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.6621, allocations: 0 / 0.5933 GB, free: 21.88 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.551e-05/0.6622, allocations: 20 kB / 0.5934 GB, free: 21.86 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.751e-05/0.6622, allocations: 23.98 kB / 0.5934 GB, free: 21.84 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001266/0.6635, allocations: 0.8241 MB / 0.5942 GB, free: 21.02 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005115/0.6686, allocations: 2.907 MB / 0.597 GB, free: 18.05 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001054/0.6697, allocations: 0.7405 MB / 0.5978 GB, free: 17.28 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008334/0.6705, allocations: 0.6761 MB / 0.5984 GB, free: 16.59 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03057/0.7011, allocations: 35.68 MB / 0.6333 GB, free: 7.777 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007052/0.7019, allocations: 381.5 kB / 0.6336 GB, free: 7.395 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 2.665e-06/0.7019, allocations: 3.938 kB / 0.6336 GB, free: 7.391 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.003134/0.705, allocations: 1.47 MB / 0.6351 GB, free: 5.887 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/0.7052, allocations: 269 kB / 0.6353 GB, free: 5.562 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003823/0.709, allocations: 2.785 MB / 0.638 GB, free: 2.758 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.597e-05/0.7091, allocations: 33.7 kB / 0.6381 GB, free: 2.719 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001115/0.7102, allocations: 1.391 MB / 0.6394 GB, free: 1.32 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001547/0.7104, allocations: 165.7 kB / 0.6396 GB, free: 1.156 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.474e-05/0.7104, allocations: 16 kB / 0.6396 GB, free: 1.141 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.7105, allocations: 341.9 kB / 0.6399 GB, free: 0.8008 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005597/0.7111, allocations: 261.8 kB / 0.6402 GB, free: 0.5469 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00077/0.7119, allocations: 0.6544 MB / 0.6408 GB, free: 15.7 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001368/0.7133, allocations: 0.9192 MB / 0.6417 GB, free: 14.61 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.185e-06/0.7133, allocations: 4 kB / 0.6417 GB, free: 14.61 MB / 426.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002408/0.7157, allocations: 1.323 MB / 0.643 GB, free: 13.27 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.2e-05/0.7157, allocations: 12 kB / 0.643 GB, free: 13.26 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001131/0.7159, allocations: 80 kB / 0.6431 GB, free: 13.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005242/0.7164, allocations: 296.9 kB / 0.6434 GB, free: 12.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000562/0.717, allocations: 171.7 kB / 0.6435 GB, free: 12.72 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008761/0.7178, allocations: 0.8841 MB / 0.6444 GB, free: 11.81 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001183/0.719, allocations: 126.9 kB / 0.6445 GB, free: 11.69 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001034/0.7192, allocations: 64 kB / 0.6446 GB, free: 11.62 MB / 426.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.0008865/0.7201, allocations: 431.3 kB / 0.645 GB, free: 11.2 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000434/0.7205, allocations: 367.6 kB / 0.6454 GB, free: 10.83 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003269/0.7238, allocations: 1.318 MB / 0.6466 GB, free: 9.5 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.7238, allocations: 8 kB / 0.6466 GB, free: 9.492 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.7238, allocations: 0 / 0.6466 GB, free: 9.492 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.7238, allocations: 3.984 kB / 0.6467 GB, free: 9.488 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003868/0.7277, allocations: 2.256 MB / 0.6489 GB, free: 7.145 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.49e-05/0.7278, allocations: 71.98 kB / 0.6489 GB, free: 7.074 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003129/0.7281, allocations: 72.08 kB / 0.649 GB, free: 7.004 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004346/0.7286, allocations: 260.7 kB / 0.6492 GB, free: 6.746 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.889e-05/0.7286, allocations: 36 kB / 0.6493 GB, free: 6.711 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008036/0.7294, allocations: 0.8607 MB / 0.6501 GB, free: 5.824 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.7295, allocations: 7.969 kB / 0.6501 GB, free: 5.816 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001826/0.7313, allocations: 1.168 MB / 0.6513 GB, free: 4.609 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000905/0.7322, allocations: 464.5 kB / 0.6517 GB, free: 4.133 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003516/0.7326, allocations: 8 kB / 0.6517 GB, free: 4.125 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007384/0.7333, allocations: 51.95 kB / 0.6518 GB, free: 4.074 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001503/0.7335, allocations: 67.81 kB / 0.6518 GB, free: 4.008 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.066e-05/0.7336, allocations: 36 kB / 0.6519 GB, free: 3.973 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002643/0.7362, allocations: 1.801 MB / 0.6536 GB, free: 2.168 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.7362, allocations: 0 / 0.6536 GB, free: 2.168 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001543/0.7378, allocations: 0.6283 MB / 0.6542 GB, free: 1.539 MB / 426.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.00135/0.7391, allocations: 0.8811 MB / 0.6551 GB, free: 0.6562 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.1591/0.8982, allocations: 0.8813 MB / 0.656 GB, free: 101.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.845e-06/0.8983, allocations: 0 / 0.656 GB, free: 101.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009153/0.8992, allocations: 0.4996 MB / 0.6564 GB, free: 101.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002638/0.9019, allocations: 468.9 kB / 0.6569 GB, free: 101.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005322/0.9072, allocations: 4.451 MB / 0.6612 GB, free: 99.57 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008581/0.9081, allocations: 1.604 MB / 0.6628 GB, free: 98.85 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001263/0.9094, allocations: 343.5 kB / 0.6631 GB, free: 98.82 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002196/0.9096, allocations: 141.7 kB / 0.6633 GB, free: 98.82 MB / 426.7 MB Notification: Performance of SimCode: time 8.81e-07/0.9096, allocations: 3.469 kB / 0.6633 GB, free: 98.82 MB / 426.7 MB Notification: Performance of Templates: time 0.05206/0.9617, allocations: 33.94 MB / 0.6964 GB, free: 95.56 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches