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.001127/0.001127, allocations: 109.3 kB / 17.06 MB, free: 5.941 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.001102/0.001102, allocations: 198.8 kB / 18.01 MB, free: 5.031 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.317/1.317, allocations: 222.9 MB / 241.7 MB, free: 15.12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009073/0.0009074, allocations: 43.94 kB / 351.3 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2433/0.2443, allocations: 49.43 MB / 400.7 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01232/0.2566, allocations: 14.02 MB / 414.7 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02077/0.2774, allocations: 20.27 MB / 435 MB, free: 6.422 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001574/0.279, allocations: 122.9 kB / 435.1 MB, free: 6.301 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002405/0.2814, allocations: 1.112 MB / 436.2 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006403/0.2879, allocations: 2.262 MB / 438.5 MB, free: 2.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004676/0.2926, allocations: 1.42 MB / 439.9 MB, free: 1.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008913/0.3015, allocations: 6.36 MB / 446.3 MB, free: 11.1 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000594/0.3021, allocations: 428.4 kB / 446.7 MB, free: 10.65 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00113/0.3033, allocations: 1.046 MB / 447.7 MB, free: 9.598 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001038/0.3043, allocations: 1.048 MB / 448.8 MB, free: 8.543 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001725/0.3045, allocations: 72 kB / 448.9 MB, free: 8.473 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003461/0.308, allocations: 1.475 MB / 450.3 MB, free: 6.996 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002594/0.3083, allocations: 301.8 kB / 450.6 MB, free: 6.699 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001023/0.3093, allocations: 1.3 MB / 451.9 MB, free: 5.391 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003922/0.3132, allocations: 3.655 MB / 455.6 MB, free: 1.719 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3132, allocations: 0 / 455.6 MB, free: 1.719 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.3132, allocations: 0 / 455.6 MB, free: 1.719 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.554e-05/0.3133, allocations: 0 / 455.6 MB, free: 1.719 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.004235/0.3175, allocations: 3.618 MB / 459.2 MB, free: 14.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.374e-05/0.3176, allocations: 8.031 kB / 459.2 MB, free: 14.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003472/0.3179, allocations: 393.5 kB / 459.6 MB, free: 13.63 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003013/0.3209, allocations: 2.543 MB / 462.1 MB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.717e-05/0.321, allocations: 37 kB / 462.2 MB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001112/0.3211, allocations: 47.95 kB / 462.2 MB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001242/0.3223, allocations: 0.6992 MB / 462.9 MB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.3224, allocations: 3.938 kB / 462.9 MB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.652e-05/0.3224, allocations: 20 kB / 462.9 MB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.888e-05/0.3225, allocations: 23.92 kB / 463 MB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00145/0.3239, allocations: 0.7928 MB / 463.8 MB, free: 9.383 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004094/0.328, allocations: 2.884 MB / 466.6 MB, free: 6.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001242/0.3293, allocations: 0.695 MB / 467.3 MB, free: 5.707 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009864/0.3303, allocations: 0.6549 MB / 468 MB, free: 5.055 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02744/0.3577, allocations: 30.09 MB / 498.1 MB, free: 2.859 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006981/0.3585, allocations: 369.5 kB / 498.4 MB, free: 2.484 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.194e-06/0.3585, allocations: 0 / 498.4 MB, free: 2.484 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003196/0.3617, allocations: 1.401 MB / 499.8 MB, free: 1.051 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.094e-05/0.3617, allocations: 63.28 kB / 499.9 MB, free: 0.9766 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003012/0.3647, allocations: 2.803 MB / 0.4909 GB, free: 14.15 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.796e-05/0.3648, allocations: 37.64 kB / 0.491 GB, free: 14.11 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001072/0.3659, allocations: 1.404 MB / 0.4923 GB, free: 12.7 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001325/0.366, allocations: 166.6 kB / 0.4925 GB, free: 12.54 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002887/0.3663, allocations: 230.3 kB / 0.4927 GB, free: 12.3 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.3664, allocations: 333.9 kB / 0.493 GB, free: 11.97 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005467/0.367, allocations: 237.9 kB / 0.4933 GB, free: 11.74 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007348/0.3677, allocations: 0.5852 MB / 0.4938 GB, free: 10.98 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00133/0.3691, allocations: 0.888 MB / 0.4947 GB, free: 9.93 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.3691, allocations: 4 kB / 0.4947 GB, free: 9.926 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002099/0.3712, allocations: 1.297 MB / 0.496 GB, free: 8.617 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.3712, allocations: 10.5 kB / 0.496 GB, free: 8.609 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000105/0.3713, allocations: 80 kB / 0.4961 GB, free: 8.531 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005475/0.3719, allocations: 289.1 kB / 0.4963 GB, free: 8.246 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005555/0.3725, allocations: 163.7 kB / 0.4965 GB, free: 8.086 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000889/0.3734, allocations: 0.8864 MB / 0.4974 GB, free: 7.176 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008869/0.3743, allocations: 107.3 kB / 0.4975 GB, free: 7.07 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000102/0.3744, allocations: 64 kB / 0.4975 GB, free: 7.008 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.0005871/0.375, allocations: 421.4 kB / 0.4979 GB, free: 6.586 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003261/0.3753, allocations: 385.6 kB / 0.4983 GB, free: 6.207 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002641/0.3779, allocations: 1.274 MB / 0.4995 GB, free: 4.914 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.378, allocations: 4 kB / 0.4995 GB, free: 4.91 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.378, allocations: 4 kB / 0.4995 GB, free: 4.906 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.378, allocations: 7.922 kB / 0.4995 GB, free: 4.898 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003321/0.3813, allocations: 2.189 MB / 0.5017 GB, free: 2.621 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.656e-05/0.3814, allocations: 76.02 kB / 0.5018 GB, free: 2.547 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000322/0.3817, allocations: 63.88 kB / 0.5018 GB, free: 2.484 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005332/0.3823, allocations: 260.8 kB / 0.5021 GB, free: 2.227 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.554e-05/0.3824, allocations: 31.98 kB / 0.5021 GB, free: 2.195 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008604/0.3832, allocations: 0.8734 MB / 0.503 GB, free: 1.301 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.3832, allocations: 0 / 0.503 GB, free: 1.301 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001763/0.385, allocations: 1.139 MB / 0.5041 GB, free: 132 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005896/0.3856, allocations: 494.4 kB / 0.5045 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002631/0.3859, allocations: 8 kB / 0.5045 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000662/0.3866, allocations: 35.91 kB / 0.5046 GB, free: 15.58 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001384/0.3867, allocations: 63.94 kB / 0.5046 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.677e-05/0.3868, allocations: 36 kB / 0.5047 GB, free: 15.48 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002045/0.3888, allocations: 1.824 MB / 0.5065 GB, free: 13.65 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3888, allocations: 0 / 0.5065 GB, free: 13.65 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001254/0.3901, allocations: 0.5618 MB / 0.507 GB, free: 13.09 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.001054/0.3912, allocations: 0.7803 MB / 0.5078 GB, free: 12.31 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001666/0.3928, allocations: 0.8531 MB / 0.5086 GB, free: 11.43 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3929, allocations: 1 kB / 0.5086 GB, free: 11.43 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008939/0.3938, allocations: 492.3 kB / 0.5091 GB, free: 10.93 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002169/0.3959, allocations: 0.599 MB / 0.5097 GB, free: 10.32 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004715/0.4007, allocations: 3.993 MB / 0.5136 GB, free: 6.273 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009721/0.4016, allocations: 1.596 MB / 0.5151 GB, free: 4.648 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009022/0.4026, allocations: 390.9 kB / 0.5155 GB, free: 4.262 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002152/0.4028, allocations: 159.4 kB / 0.5156 GB, free: 4.105 MB / 446.1 MB Notification: Performance of SimCode: time 3.6e-07/0.4028, allocations: 0 / 0.5156 GB, free: 4.105 MB / 446.1 MB Notification: Performance of Templates: time 0.2496/0.6524, allocations: 33.31 MB / 0.5482 GB, free: 130 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