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.001205/0.001205, allocations: 110.6 kB / 17.74 MB, free: 5.227 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.001178/0.001178, allocations: 185.5 kB / 18.67 MB, free: 4.309 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.35/1.35, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001049/0.001049, allocations: 43.94 kB / 352 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2381/0.2392, allocations: 49.44 MB / 401.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01304/0.2522, allocations: 14.01 MB / 415.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02272/0.275, allocations: 20.27 MB / 435.7 MB, free: 6.477 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002252/0.2773, allocations: 118.9 kB / 435.8 MB, free: 6.359 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00288/0.2802, allocations: 1.117 MB / 436.9 MB, free: 5.242 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007502/0.2878, allocations: 2.27 MB / 439.2 MB, free: 2.957 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004896/0.2927, allocations: 1.416 MB / 440.6 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01006/0.3028, allocations: 6.367 MB / 447 MB, free: 11.14 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008311/0.3037, allocations: 420.4 kB / 447.4 MB, free: 10.7 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001541/0.3052, allocations: 1.069 MB / 448.4 MB, free: 9.625 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001235/0.3065, allocations: 1.056 MB / 449.5 MB, free: 8.562 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002018/0.3067, allocations: 72 kB / 449.6 MB, free: 8.492 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003877/0.3106, allocations: 1.471 MB / 451 MB, free: 7.02 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000362/0.311, allocations: 301.8 kB / 451.3 MB, free: 6.723 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001453/0.3124, allocations: 1.3 MB / 452.6 MB, free: 5.414 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005724/0.3182, allocations: 3.635 MB / 456.3 MB, free: 1.766 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.3182, allocations: 0 / 456.3 MB, free: 1.766 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3182, allocations: 3.938 kB / 456.3 MB, free: 1.762 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.364e-05/0.3183, allocations: 4 kB / 456.3 MB, free: 1.758 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.005012/0.3233, allocations: 3.502 MB / 459.8 MB, free: 14.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.701e-05/0.3234, allocations: 8.031 kB / 459.8 MB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004907/0.3239, allocations: 371.5 kB / 460.1 MB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00342/0.3273, allocations: 2.504 MB / 462.7 MB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.548e-05/0.3274, allocations: 37 kB / 462.7 MB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001193/0.3275, allocations: 43.91 kB / 462.7 MB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001331/0.3288, allocations: 0.7069 MB / 463.4 MB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.3289, allocations: 0 / 463.4 MB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.853e-05/0.3289, allocations: 16 kB / 463.5 MB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.404e-05/0.329, allocations: 23.98 kB / 463.5 MB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001459/0.3304, allocations: 0.7889 MB / 464.3 MB, free: 9.602 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004553/0.335, allocations: 2.875 MB / 467.1 MB, free: 6.656 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001264/0.3363, allocations: 0.7015 MB / 467.8 MB, free: 5.926 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009788/0.3373, allocations: 0.6588 MB / 468.5 MB, free: 5.27 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0279/0.3652, allocations: 30.09 MB / 498.6 MB, free: 3.082 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007656/0.366, allocations: 365.5 kB / 498.9 MB, free: 2.711 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.835e-06/0.366, allocations: 0 / 498.9 MB, free: 2.711 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003152/0.3692, allocations: 1.384 MB / 0.4886 GB, free: 1.293 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.644e-05/0.3692, allocations: 67.33 kB / 0.4887 GB, free: 1.215 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003376/0.3726, allocations: 2.803 MB / 0.4914 GB, free: 14.39 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.164e-05/0.3727, allocations: 29.7 kB / 0.4914 GB, free: 14.36 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00111/0.3738, allocations: 1.391 MB / 0.4928 GB, free: 12.96 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001606/0.374, allocations: 165.7 kB / 0.4929 GB, free: 12.79 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000284/0.3743, allocations: 222.1 kB / 0.4932 GB, free: 12.57 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.3744, allocations: 341.9 kB / 0.4935 GB, free: 12.23 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005745/0.375, allocations: 237.9 kB / 0.4937 GB, free: 12 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007771/0.3758, allocations: 0.5852 MB / 0.4943 GB, free: 11.24 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001344/0.3771, allocations: 0.8841 MB / 0.4951 GB, free: 10.19 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.3772, allocations: 4 kB / 0.4952 GB, free: 10.19 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002266/0.3794, allocations: 1.287 MB / 0.4964 GB, free: 8.887 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.215e-05/0.3795, allocations: 8 kB / 0.4964 GB, free: 8.879 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001199/0.3796, allocations: 84 kB / 0.4965 GB, free: 8.797 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005051/0.3801, allocations: 272.8 kB / 0.4968 GB, free: 8.527 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005626/0.3807, allocations: 171.7 kB / 0.4969 GB, free: 8.359 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009081/0.3816, allocations: 0.8746 MB / 0.4978 GB, free: 7.461 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009838/0.3826, allocations: 123 kB / 0.4979 GB, free: 7.34 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.09e-05/0.3827, allocations: 60 kB / 0.498 GB, free: 7.281 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.0007102/0.3834, allocations: 421.5 kB / 0.4984 GB, free: 6.859 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003284/0.3837, allocations: 367.5 kB / 0.4987 GB, free: 6.496 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002625/0.3864, allocations: 1.274 MB / 0.4999 GB, free: 5.203 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.348e-06/0.3864, allocations: 4 kB / 0.5 GB, free: 5.199 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.3864, allocations: 0 / 0.5 GB, free: 5.199 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.238e-06/0.3864, allocations: 7.922 kB / 0.5 GB, free: 5.191 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003405/0.3898, allocations: 2.197 MB / 0.5021 GB, free: 2.906 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000103/0.39, allocations: 68 kB / 0.5022 GB, free: 2.84 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003134/0.3903, allocations: 64 kB / 0.5022 GB, free: 2.777 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004356/0.3907, allocations: 260.8 kB / 0.5025 GB, free: 2.52 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.536e-05/0.3908, allocations: 35.98 kB / 0.5025 GB, free: 2.484 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008802/0.3917, allocations: 0.8669 MB / 0.5034 GB, free: 1.598 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.3917, allocations: 0 / 0.5034 GB, free: 1.598 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001805/0.3935, allocations: 1.125 MB / 0.5045 GB, free: 448 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006593/0.3942, allocations: 468.4 kB / 0.5049 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002666/0.3944, allocations: 15.98 kB / 0.5049 GB, free: 15.94 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006288/0.3951, allocations: 27.97 kB / 0.5049 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001408/0.3952, allocations: 63.88 kB / 0.505 GB, free: 15.85 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.473e-05/0.3953, allocations: 40 kB / 0.505 GB, free: 15.81 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002289/0.3976, allocations: 1.827 MB / 0.5068 GB, free: 13.98 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3976, allocations: 3.938 kB / 0.5068 GB, free: 13.97 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001303/0.3989, allocations: 0.5623 MB / 0.5074 GB, free: 13.41 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.001151/0.4001, allocations: 0.7691 MB / 0.5081 GB, free: 12.64 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001876/0.402, allocations: 0.85 MB / 0.509 GB, free: 11.77 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.402, allocations: 0 / 0.509 GB, free: 11.77 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009106/0.4029, allocations: 0.4887 MB / 0.5094 GB, free: 11.26 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002498/0.4054, allocations: 0.5951 MB / 0.51 GB, free: 10.66 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005694/0.4111, allocations: 3.961 MB / 0.5139 GB, free: 6.637 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001081/0.4122, allocations: 1.6 MB / 0.5155 GB, free: 5.008 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004078/0.4127, allocations: 171.4 kB / 0.5156 GB, free: 4.84 MB / 446.1 MB Notification: Performance of SimCode: time 7.92e-07/0.4127, allocations: 0 / 0.5156 GB, free: 4.84 MB / 446.1 MB Notification: Performance of Templates: time 0.2446/0.6573, allocations: 47.94 MB / 0.5624 GB, free: 115 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