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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001518/0.001518, allocations: 108.3 kB / 17.06 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001675/0.001675, allocations: 191 kB / 18 MB, free: 4.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.331/1.331, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 51.92 kB / 351.3 MB, free: 3.281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2636, allocations: 49.42 MB / 400.7 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01287/0.2765, allocations: 14.03 MB / 414.7 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02167/0.2982, allocations: 20.26 MB / 435 MB, free: 6.465 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002095/0.3003, allocations: 122.9 kB / 435.1 MB, free: 6.344 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002926/0.3033, allocations: 1.117 MB / 436.2 MB, free: 5.227 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007127/0.3105, allocations: 2.294 MB / 438.5 MB, free: 2.918 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004352/0.3149, allocations: 1.424 MB / 439.9 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00956/0.3245, allocations: 6.364 MB / 446.3 MB, free: 11.1 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007405/0.3252, allocations: 436.3 kB / 446.7 MB, free: 10.64 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001511/0.3268, allocations: 1.065 MB / 447.8 MB, free: 9.57 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009992/0.3278, allocations: 1.052 MB / 448.9 MB, free: 8.512 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001419/0.3279, allocations: 68 kB / 448.9 MB, free: 8.445 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003656/0.3316, allocations: 1.475 MB / 450.4 MB, free: 6.969 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003223/0.3319, allocations: 301.8 kB / 450.7 MB, free: 6.672 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001207/0.3331, allocations: 1.308 MB / 452 MB, free: 5.355 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004397/0.3375, allocations: 3.631 MB / 455.6 MB, free: 1.711 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.3376, allocations: 0 / 455.6 MB, free: 1.711 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3376, allocations: 4 kB / 455.6 MB, free: 1.707 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.662e-05/0.3376, allocations: 0 / 455.6 MB, free: 1.707 MB / 366.1 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.004663/0.3423, allocations: 3.501 MB / 459.1 MB, free: 14.13 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.3424, allocations: 11.89 kB / 459.1 MB, free: 14.12 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004173/0.3428, allocations: 375.5 kB / 459.5 MB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003197/0.346, allocations: 2.501 MB / 462 MB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.902e-05/0.346, allocations: 40.98 kB / 462 MB, free: 11.13 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000119/0.3461, allocations: 51.91 kB / 462.1 MB, free: 11.08 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001194/0.3474, allocations: 0.6953 MB / 462.8 MB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.3474, allocations: 0 / 462.8 MB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.39e-05/0.3474, allocations: 24 kB / 462.8 MB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.009e-05/0.3475, allocations: 19.98 kB / 462.8 MB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001435/0.3489, allocations: 0.785 MB / 463.6 MB, free: 9.551 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004266/0.3532, allocations: 2.883 MB / 466.5 MB, free: 6.598 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00116/0.3544, allocations: 0.6976 MB / 467.2 MB, free: 5.871 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009302/0.3553, allocations: 0.6549 MB / 467.9 MB, free: 5.219 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02721/0.3825, allocations: 30.08 MB / 497.9 MB, free: 3.035 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008132/0.3834, allocations: 365.5 kB / 498.3 MB, free: 2.664 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 3.507e-06/0.3834, allocations: 4 kB / 498.3 MB, free: 2.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003406/0.3868, allocations: 1.376 MB / 499.7 MB, free: 1.25 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.627e-05/0.3869, allocations: 75.33 kB / 499.8 MB, free: 1.164 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004256/0.3912, allocations: 2.799 MB / 0.4908 GB, free: 14.34 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.868e-05/0.3913, allocations: 33.7 kB / 0.4908 GB, free: 14.3 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001122/0.3924, allocations: 1.391 MB / 0.4922 GB, free: 12.91 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001537/0.3925, allocations: 161.7 kB / 0.4923 GB, free: 12.75 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002975/0.3928, allocations: 222.1 kB / 0.4925 GB, free: 12.52 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.393, allocations: 338 kB / 0.4929 GB, free: 12.19 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005465/0.3935, allocations: 241.8 kB / 0.4931 GB, free: 11.95 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007685/0.3943, allocations: 0.5891 MB / 0.4937 GB, free: 11.19 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001352/0.3957, allocations: 0.8802 MB / 0.4945 GB, free: 10.14 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/0.3957, allocations: 4 kB / 0.4945 GB, free: 10.14 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002197/0.3979, allocations: 1.28 MB / 0.4958 GB, free: 8.848 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/0.3979, allocations: 15.98 kB / 0.4958 GB, free: 8.832 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001085/0.398, allocations: 80 kB / 0.4959 GB, free: 8.754 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005364/0.3986, allocations: 274.3 kB / 0.4961 GB, free: 8.484 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005401/0.3991, allocations: 175.6 kB / 0.4963 GB, free: 8.312 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009258/0.4001, allocations: 0.8749 MB / 0.4971 GB, free: 7.414 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009649/0.4011, allocations: 118.9 kB / 0.4973 GB, free: 7.297 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001041/0.4012, allocations: 64 kB / 0.4973 GB, free: 7.234 MB / 430.1 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 (vin1.counter,$PRE.vin1.counter,vin2.counter,$PRE.vin2.counter,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0006861/0.4019, allocations: 429.5 kB / 0.4977 GB, free: 6.805 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003195/0.4022, allocations: 367.5 kB / 0.4981 GB, free: 6.441 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002541/0.4047, allocations: 1.274 MB / 0.4993 GB, free: 5.148 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.271e-05/0.4048, allocations: 4 kB / 0.4993 GB, free: 5.145 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.4048, allocations: 0 / 0.4993 GB, free: 5.145 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.4048, allocations: 3.938 kB / 0.4993 GB, free: 5.141 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003281/0.4081, allocations: 2.201 MB / 0.5015 GB, free: 2.852 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.894e-05/0.4082, allocations: 68 kB / 0.5015 GB, free: 2.785 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002995/0.4085, allocations: 63.94 kB / 0.5016 GB, free: 2.723 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004568/0.4089, allocations: 260.8 kB / 0.5019 GB, free: 2.465 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.558e-05/0.409, allocations: 32 kB / 0.5019 GB, free: 2.434 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008357/0.4099, allocations: 0.8604 MB / 0.5027 GB, free: 1.551 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.4099, allocations: 0 / 0.5027 GB, free: 1.551 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001688/0.4116, allocations: 1.125 MB / 0.5038 GB, free: 400 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006132/0.4122, allocations: 472.5 kB / 0.5043 GB, free: 15.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002675/0.4125, allocations: 12 kB / 0.5043 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006284/0.4131, allocations: 31.95 kB / 0.5043 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001419/0.4132, allocations: 63.83 kB / 0.5044 GB, free: 15.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.914e-05/0.4133, allocations: 47.98 kB / 0.5044 GB, free: 15.75 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002023/0.4154, allocations: 1.816 MB / 0.5062 GB, free: 13.93 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4154, allocations: 3.938 kB / 0.5062 GB, free: 13.93 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001198/0.4166, allocations: 0.5662 MB / 0.5068 GB, free: 13.36 MB / 446.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009929/0.4176, allocations: 0.7714 MB / 0.5075 GB, free: 12.59 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001605/0.4192, allocations: 0.8462 MB / 0.5083 GB, free: 11.72 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.4192, allocations: 0 / 0.5083 GB, free: 11.72 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008493/0.4201, allocations: 0.4922 MB / 0.5088 GB, free: 11.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002013/0.4221, allocations: 0.5994 MB / 0.5094 GB, free: 10.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005633/0.4277, allocations: 3.889 MB / 0.5132 GB, free: 6.656 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001498/0.4292, allocations: 1.604 MB / 0.5148 GB, free: 5.023 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009578/0.4302, allocations: 390.9 kB / 0.5151 GB, free: 4.637 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002337/0.4304, allocations: 163.4 kB / 0.5153 GB, free: 4.477 MB / 446.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4305, allocations: 0 / 0.5153 GB, free: 4.477 MB / 446.1 MB Notification: Performance of Templates: time 0.2415/0.6719, allocations: 33.31 MB / 0.5478 GB, free: 131 MB / 462.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches