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.001295/0.001295, allocations: 110.9 kB / 17.74 MB, free: 5.359 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.001359/0.001359, allocations: 176.5 kB / 18.66 MB, free: 4.449 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.372/1.372, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001125/0.001126, allocations: 43.92 kB / 352 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3026/0.3038, allocations: 49.43 MB / 401.4 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.02109/0.3249, allocations: 14.02 MB / 415.4 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03301/0.358, allocations: 20.27 MB / 435.7 MB, free: 6.602 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002293/0.3603, allocations: 118.9 kB / 435.8 MB, free: 6.484 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002942/0.3633, allocations: 1.121 MB / 436.9 MB, free: 5.359 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006787/0.3701, allocations: 2.29 MB / 439.2 MB, free: 3.055 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004266/0.3744, allocations: 1.428 MB / 440.6 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009008/0.3834, allocations: 6.36 MB / 447 MB, free: 11.24 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007271/0.3842, allocations: 428.4 kB / 447.4 MB, free: 10.79 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001416/0.3856, allocations: 1.065 MB / 448.5 MB, free: 9.715 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00125/0.3869, allocations: 1.056 MB / 449.5 MB, free: 8.652 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001625/0.387, allocations: 68 kB / 449.6 MB, free: 8.586 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00344/0.3905, allocations: 1.471 MB / 451.1 MB, free: 7.113 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003003/0.3908, allocations: 305.8 kB / 451.4 MB, free: 6.812 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001192/0.392, allocations: 1.304 MB / 452.7 MB, free: 5.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004088/0.3961, allocations: 3.635 MB / 456.3 MB, free: 1.852 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.3961, allocations: 4 kB / 456.3 MB, free: 1.848 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3961, allocations: 0 / 456.3 MB, free: 1.848 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.697e-05/0.3962, allocations: 0 / 456.3 MB, free: 1.848 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.004395/0.4006, allocations: 3.494 MB / 459.8 MB, free: 14.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.4006, allocations: 12.03 kB / 459.8 MB, free: 14.26 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000352/0.401, allocations: 371.5 kB / 460.2 MB, free: 13.89 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00308/0.4041, allocations: 2.501 MB / 462.7 MB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.966e-05/0.4041, allocations: 33 kB / 462.7 MB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001219/0.4042, allocations: 55.84 kB / 462.8 MB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001285/0.4055, allocations: 0.6992 MB / 463.5 MB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.4055, allocations: 0 / 463.5 MB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.923e-05/0.4056, allocations: 20 kB / 463.5 MB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.878e-05/0.4056, allocations: 23.92 kB / 463.5 MB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001478/0.4071, allocations: 0.7851 MB / 464.3 MB, free: 9.699 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004303/0.4114, allocations: 2.883 MB / 467.2 MB, free: 6.746 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00124/0.4127, allocations: 0.707 MB / 467.9 MB, free: 6.012 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009656/0.4137, allocations: 0.651 MB / 468.5 MB, free: 5.363 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02757/0.4412, allocations: 30.08 MB / 498.6 MB, free: 3.18 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007391/0.442, allocations: 369.5 kB / 499 MB, free: 2.805 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.334e-06/0.442, allocations: 0 / 499 MB, free: 2.805 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002925/0.445, allocations: 1.384 MB / 0.4886 GB, free: 1.387 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.739e-05/0.445, allocations: 67.33 kB / 0.4887 GB, free: 1.309 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00309/0.4481, allocations: 2.799 MB / 0.4914 GB, free: 14.49 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.074e-05/0.4482, allocations: 45.58 kB / 0.4915 GB, free: 14.44 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001057/0.4492, allocations: 1.383 MB / 0.4928 GB, free: 13.05 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001362/0.4494, allocations: 169.7 kB / 0.493 GB, free: 12.88 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002637/0.4497, allocations: 222.1 kB / 0.4932 GB, free: 12.66 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.4498, allocations: 337.9 kB / 0.4935 GB, free: 12.32 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005539/0.4503, allocations: 233.9 kB / 0.4937 GB, free: 12.09 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007545/0.4511, allocations: 0.593 MB / 0.4943 GB, free: 11.33 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001344/0.4525, allocations: 0.8802 MB / 0.4952 GB, free: 10.28 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.4525, allocations: 7.938 kB / 0.4952 GB, free: 10.27 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002054/0.4545, allocations: 1.279 MB / 0.4964 GB, free: 8.98 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.843e-05/0.4546, allocations: 12 kB / 0.4965 GB, free: 8.969 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000104/0.4547, allocations: 83.98 kB / 0.4965 GB, free: 8.887 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004957/0.4552, allocations: 277 kB / 0.4968 GB, free: 8.613 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005752/0.4558, allocations: 167.7 kB / 0.497 GB, free: 8.449 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000892/0.4567, allocations: 0.8902 MB / 0.4978 GB, free: 7.535 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008771/0.4576, allocations: 103 kB / 0.4979 GB, free: 7.434 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.218e-05/0.4577, allocations: 64 kB / 0.498 GB, free: 7.371 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.0006164/0.4583, allocations: 429.3 kB / 0.4984 GB, free: 6.941 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000311/0.4586, allocations: 363.6 kB / 0.4987 GB, free: 6.582 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002604/0.4612, allocations: 1.263 MB / 0.5 GB, free: 5.301 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.37e-05/0.4613, allocations: 4 kB / 0.5 GB, free: 5.297 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/0.4613, allocations: 0 / 0.5 GB, free: 5.297 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.926e-06/0.4613, allocations: 23.8 kB / 0.5 GB, free: 5.273 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003201/0.4645, allocations: 2.189 MB / 0.5021 GB, free: 2.996 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.265e-05/0.4646, allocations: 68 kB / 0.5022 GB, free: 2.93 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003124/0.4649, allocations: 68.06 kB / 0.5023 GB, free: 2.863 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004345/0.4654, allocations: 264.8 kB / 0.5025 GB, free: 2.602 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.139e-05/0.4654, allocations: 31.98 kB / 0.5026 GB, free: 2.57 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008278/0.4663, allocations: 0.8604 MB / 0.5034 GB, free: 1.688 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.4663, allocations: 4.031 kB / 0.5034 GB, free: 1.684 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001702/0.468, allocations: 1.121 MB / 0.5045 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005564/0.4685, allocations: 468.4 kB / 0.5049 GB, free: 48 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002787/0.4688, allocations: 15.98 kB / 0.505 GB, free: 32 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006757/0.4695, allocations: 31.91 kB / 0.505 GB, free: 0 / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001574/0.4697, allocations: 71.92 kB / 0.5051 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.112e-05/0.4697, allocations: 36 kB / 0.5051 GB, free: 15.89 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002092/0.4718, allocations: 1.82 MB / 0.5069 GB, free: 14.07 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4718, allocations: 0 / 0.5069 GB, free: 14.07 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001161/0.473, allocations: 0.5583 MB / 0.5074 GB, free: 13.51 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.001018/0.474, allocations: 0.7798 MB / 0.5082 GB, free: 12.73 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001625/0.4757, allocations: 0.8419 MB / 0.509 GB, free: 11.87 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.4757, allocations: 0 / 0.509 GB, free: 11.87 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008732/0.4766, allocations: 0.4929 MB / 0.5095 GB, free: 11.35 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00213/0.4787, allocations: 0.599 MB / 0.5101 GB, free: 10.75 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004899/0.4836, allocations: 3.957 MB / 0.5139 GB, free: 6.73 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009858/0.4846, allocations: 1.6 MB / 0.5155 GB, free: 5.102 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002526/0.4849, allocations: 167.4 kB / 0.5156 GB, free: 4.938 MB / 446.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4849, allocations: 0 / 0.5156 GB, free: 4.938 MB / 446.1 MB Notification: Performance of Templates: time 0.223/0.7079, allocations: 47.96 MB / 0.5625 GB, free: 115.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/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