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.001028/0.001028, allocations: 108.9 kB / 17.06 MB, free: 6.137 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.0009841/0.0009842, allocations: 192 kB / 18 MB, free: 5.219 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.404/1.404, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000959/0.000959, allocations: 47.94 kB / 351.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2412/0.2422, allocations: 49.44 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01271/0.2549, allocations: 14.01 MB / 414.7 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02377/0.2787, allocations: 20.27 MB / 435 MB, free: 6.445 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002503/0.2813, allocations: 126.9 kB / 435.1 MB, free: 6.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003346/0.2847, allocations: 1.121 MB / 436.2 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009419/0.2941, allocations: 2.282 MB / 438.5 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006317/0.3005, allocations: 1.428 MB / 439.9 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01021/0.3107, allocations: 6.36 MB / 446.3 MB, free: 11.09 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008645/0.3116, allocations: 436.4 kB / 446.7 MB, free: 10.62 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001548/0.3132, allocations: 1.069 MB / 447.8 MB, free: 9.551 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001016/0.3142, allocations: 1.048 MB / 448.9 MB, free: 8.496 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001501/0.3144, allocations: 68 kB / 448.9 MB, free: 8.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00356/0.318, allocations: 1.475 MB / 450.4 MB, free: 6.953 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003039/0.3183, allocations: 313.8 kB / 450.7 MB, free: 6.645 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001181/0.3195, allocations: 1.292 MB / 452 MB, free: 5.344 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004298/0.3238, allocations: 3.631 MB / 455.6 MB, free: 1.699 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.075e-06/0.3238, allocations: 4 kB / 455.6 MB, free: 1.695 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3238, allocations: 0 / 455.6 MB, free: 1.695 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.254e-05/0.3239, allocations: 0 / 455.6 MB, free: 1.695 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.004446/0.3283, allocations: 3.494 MB / 459.1 MB, free: 14.12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.3283, allocations: 12.03 kB / 459.1 MB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003708/0.3287, allocations: 375.5 kB / 459.5 MB, free: 13.74 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003032/0.3318, allocations: 2.504 MB / 462 MB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.868e-05/0.3318, allocations: 33 kB / 462 MB, free: 11.13 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001126/0.3319, allocations: 51.91 kB / 462.1 MB, free: 11.08 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001276/0.3332, allocations: 0.6991 MB / 462.8 MB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.3332, allocations: 0 / 462.8 MB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.178e-05/0.3333, allocations: 20 kB / 462.8 MB, free: 10.35 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.905e-05/0.3333, allocations: 19.98 kB / 462.8 MB, free: 10.33 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001502/0.3349, allocations: 0.7928 MB / 463.6 MB, free: 9.539 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004443/0.3393, allocations: 2.891 MB / 466.5 MB, free: 6.578 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001243/0.3406, allocations: 0.6976 MB / 467.2 MB, free: 5.852 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009794/0.3416, allocations: 0.651 MB / 467.9 MB, free: 5.203 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02805/0.3696, allocations: 30.08 MB / 497.9 MB, free: 3.02 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007996/0.3705, allocations: 369.6 kB / 498.3 MB, free: 2.645 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.605e-06/0.3705, allocations: 0 / 498.3 MB, free: 2.645 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.00321/0.3737, allocations: 1.388 MB / 499.7 MB, free: 1.223 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.301e-05/0.3738, allocations: 63.33 kB / 499.7 MB, free: 1.148 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00312/0.3769, allocations: 2.803 MB / 0.4908 GB, free: 14.32 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.688e-05/0.377, allocations: 37.7 kB / 0.4908 GB, free: 14.28 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001067/0.378, allocations: 1.383 MB / 0.4922 GB, free: 12.89 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001354/0.3782, allocations: 169.7 kB / 0.4923 GB, free: 12.72 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002686/0.3785, allocations: 222.1 kB / 0.4925 GB, free: 12.5 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.3786, allocations: 337.9 kB / 0.4929 GB, free: 12.16 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005769/0.3792, allocations: 241.9 kB / 0.4931 GB, free: 11.93 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007432/0.3799, allocations: 0.5891 MB / 0.4937 GB, free: 11.17 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001325/0.3812, allocations: 0.8763 MB / 0.4945 GB, free: 10.12 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/0.3813, allocations: 4 kB / 0.4945 GB, free: 10.12 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002109/0.3834, allocations: 1.275 MB / 0.4958 GB, free: 8.832 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.3834, allocations: 12 kB / 0.4958 GB, free: 8.82 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001087/0.3835, allocations: 84.84 kB / 0.4959 GB, free: 8.738 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004918/0.384, allocations: 282.2 kB / 0.4961 GB, free: 8.461 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005526/0.3846, allocations: 163.7 kB / 0.4963 GB, free: 8.301 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000864/0.3855, allocations: 0.8919 MB / 0.4972 GB, free: 7.383 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001048/0.3865, allocations: 111 kB / 0.4973 GB, free: 7.273 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.021e-05/0.3866, allocations: 64 kB / 0.4973 GB, free: 7.211 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.0006571/0.3873, allocations: 431.6 kB / 0.4977 GB, free: 6.781 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003033/0.3876, allocations: 363.6 kB / 0.4981 GB, free: 6.422 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002596/0.3902, allocations: 1.266 MB / 0.4993 GB, free: 5.137 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.725e-06/0.3902, allocations: 4 kB / 0.4993 GB, free: 5.133 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.3902, allocations: 4 kB / 0.4993 GB, free: 5.129 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/0.3902, allocations: 7.922 kB / 0.4993 GB, free: 5.121 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003184/0.3934, allocations: 2.193 MB / 0.5015 GB, free: 2.84 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.966e-05/0.3935, allocations: 72 kB / 0.5015 GB, free: 2.77 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003113/0.3939, allocations: 63.88 kB / 0.5016 GB, free: 2.707 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004275/0.3943, allocations: 264.9 kB / 0.5019 GB, free: 2.445 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.141e-05/0.3944, allocations: 31.98 kB / 0.5019 GB, free: 2.414 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008157/0.3952, allocations: 0.8607 MB / 0.5027 GB, free: 1.527 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.3952, allocations: 4.031 kB / 0.5027 GB, free: 1.523 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001694/0.3969, allocations: 1.121 MB / 0.5038 GB, free: 376 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006093/0.3975, allocations: 472.5 kB / 0.5043 GB, free: 15.88 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002889/0.3978, allocations: 12 kB / 0.5043 GB, free: 15.87 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007311/0.3986, allocations: 27.97 kB / 0.5043 GB, free: 15.84 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000147/0.3987, allocations: 63.94 kB / 0.5044 GB, free: 15.78 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.783e-05/0.3988, allocations: 39.94 kB / 0.5044 GB, free: 15.74 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002205/0.401, allocations: 1.824 MB / 0.5062 GB, free: 13.91 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.401, allocations: 0 / 0.5062 GB, free: 13.91 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001219/0.4022, allocations: 0.5583 MB / 0.5067 GB, free: 13.35 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.001058/0.4033, allocations: 0.7792 MB / 0.5075 GB, free: 12.57 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001779/0.4051, allocations: 0.8461 MB / 0.5083 GB, free: 11.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.4051, allocations: 4 kB / 0.5083 GB, free: 11.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009161/0.406, allocations: 492 kB / 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.002343/0.4084, allocations: 0.6032 MB / 0.5094 GB, free: 10.59 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00493/0.4133, allocations: 3.893 MB / 0.5132 GB, free: 6.641 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009405/0.4143, allocations: 1.604 MB / 0.5148 GB, free: 5.008 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009527/0.4152, allocations: 386.9 kB / 0.5151 GB, free: 4.625 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002101/0.4155, allocations: 167.4 kB / 0.5153 GB, free: 4.461 MB / 446.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4155, allocations: 0 / 0.5153 GB, free: 4.461 MB / 446.1 MB Notification: Performance of Templates: time 0.2297/0.6452, allocations: 33.31 MB / 0.5478 GB, free: 130.2 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