Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001484/0.001484, allocations: 111.9 kB / 18.4 MB, free: 4.566 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.001766/0.001766, allocations: 190.3 kB / 19.33 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.289/1.289, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 52.34 kB / 329.2 MB, free: 3.328 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07221/0.07336, allocations: 46.62 MB / 375.8 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.1574/0.2307, allocations: 13.35 MB / 389.2 MB, free: 5.258 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02912/0.2599, allocations: 19.33 MB / 408.5 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003804/0.2638, allocations: 129.2 kB / 408.6 MB, free: 7.266 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004614/0.2684, allocations: 1.085 MB / 409.7 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01031/0.2788, allocations: 2.229 MB / 411.9 MB, free: 5.293 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005264/0.2841, allocations: 1.381 MB / 413.3 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009985/0.2941, allocations: 6.217 MB / 419.5 MB, free: 1.691 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007751/0.2949, allocations: 424.4 kB / 419.9 MB, free: 1.473 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00165/0.2965, allocations: 0.9777 MB / 420.9 MB, free: 1.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001772/0.2983, allocations: 1.03 MB / 421.9 MB, free: 432 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003266/0.2987, allocations: 70.78 kB / 422 MB, free: 432 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004538/0.3032, allocations: 1.151 MB / 423.2 MB, free: 96 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004111/0.3036, allocations: 311.9 kB / 423.5 MB, free: 15.83 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001692/0.3054, allocations: 1.308 MB / 424.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004967/0.3103, allocations: 3.658 MB / 428.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.463e-06/0.3103, allocations: 0 / 428.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3104, allocations: 7.938 kB / 428.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.538e-05/0.3104, allocations: 0 / 428.4 MB, free: 10.84 MB / 350.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.004985/0.3154, allocations: 3.514 MB / 432 MB, free: 7.254 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.3155, allocations: 8.031 kB / 432 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004748/0.316, allocations: 379.4 kB / 432.3 MB, free: 6.871 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003322/0.3193, allocations: 2.517 MB / 434.9 MB, free: 4.277 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.328e-05/0.3193, allocations: 40.94 kB / 434.9 MB, free: 4.234 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001176/0.3195, allocations: 51.89 kB / 434.9 MB, free: 4.184 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001278/0.3208, allocations: 0.703 MB / 435.6 MB, free: 3.473 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.3208, allocations: 0 / 435.6 MB, free: 3.473 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.284e-05/0.3209, allocations: 23.98 kB / 435.7 MB, free: 3.449 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.93e-05/0.3209, allocations: 23.98 kB / 435.7 MB, free: 3.426 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001415/0.3223, allocations: 0.7851 MB / 436.5 MB, free: 2.645 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004386/0.3267, allocations: 2.892 MB / 439.4 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00118/0.3279, allocations: 0.7053 MB / 440.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009268/0.3288, allocations: 0.6497 MB / 440.7 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02604/0.3549, allocations: 30.15 MB / 470.9 MB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007115/0.3556, allocations: 365.2 kB / 471.2 MB, free: 11.68 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.214e-06/0.3556, allocations: 4 kB / 471.2 MB, free: 11.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.002841/0.3585, allocations: 1.399 MB / 472.6 MB, free: 10.25 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.786e-05/0.3585, allocations: 59.34 kB / 472.7 MB, free: 10.18 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002906/0.3615, allocations: 2.816 MB / 475.5 MB, free: 7.34 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.717e-05/0.3615, allocations: 33.7 kB / 475.5 MB, free: 7.301 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00105/0.3626, allocations: 1.391 MB / 476.9 MB, free: 5.902 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001317/0.3627, allocations: 173.7 kB / 477.1 MB, free: 5.73 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002548/0.363, allocations: 222.1 kB / 477.3 MB, free: 5.508 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.3631, allocations: 341.9 kB / 477.7 MB, free: 5.168 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005379/0.3637, allocations: 237.9 kB / 477.9 MB, free: 4.934 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007352/0.3644, allocations: 0.5929 MB / 478.5 MB, free: 4.168 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001286/0.3657, allocations: 0.8763 MB / 479.4 MB, free: 3.125 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.763e-06/0.3657, allocations: 4 kB / 479.4 MB, free: 3.121 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002003/0.3677, allocations: 1.287 MB / 480.6 MB, free: 1.816 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/0.3677, allocations: 12 kB / 480.7 MB, free: 1.805 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001042/0.3679, allocations: 80 kB / 480.7 MB, free: 1.727 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000477/0.3683, allocations: 276.9 kB / 481 MB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005294/0.3689, allocations: 167.7 kB / 481.2 MB, free: 1.289 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008492/0.3697, allocations: 0.8763 MB / 482 MB, free: 396 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008149/0.3706, allocations: 115.1 kB / 482.2 MB, free: 280 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.788e-05/0.3707, allocations: 60 kB / 482.2 MB, free: 220 kB / 398.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.0006235/0.3713, allocations: 429.5 kB / 482.6 MB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003213/0.3716, allocations: 367.5 kB / 483 MB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002518/0.3741, allocations: 1.274 MB / 484.3 MB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.227e-06/0.3742, allocations: 11.98 kB / 484.3 MB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3742, allocations: 0 / 484.3 MB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.513e-06/0.3742, allocations: 0 / 484.3 MB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003093/0.3773, allocations: 2.209 MB / 486.5 MB, free: 11.83 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.335e-05/0.3774, allocations: 71.94 kB / 486.6 MB, free: 11.76 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002923/0.3777, allocations: 63.88 kB / 486.6 MB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004067/0.3781, allocations: 265.8 kB / 486.9 MB, free: 11.44 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.925e-05/0.3782, allocations: 35.98 kB / 486.9 MB, free: 11.4 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007834/0.379, allocations: 0.8646 MB / 487.8 MB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.379, allocations: 0 / 487.8 MB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00165/0.3806, allocations: 1.137 MB / 488.9 MB, free: 9.336 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000547/0.3812, allocations: 468.4 kB / 489.4 MB, free: 8.855 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002612/0.3815, allocations: 15.98 kB / 489.4 MB, free: 8.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006182/0.3821, allocations: 34.41 kB / 489.4 MB, free: 8.809 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001332/0.3822, allocations: 55.95 kB / 489.5 MB, free: 8.754 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.246e-05/0.3823, allocations: 39.98 kB / 489.5 MB, free: 8.715 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002025/0.3843, allocations: 1.844 MB / 491.4 MB, free: 6.867 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3843, allocations: 0 / 491.4 MB, free: 6.867 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001137/0.3855, allocations: 0.5661 MB / 491.9 MB, free: 6.301 MB / 414.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.0009796/0.3865, allocations: 0.7806 MB / 492.7 MB, free: 5.512 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00161/0.3881, allocations: 0.8539 MB / 493.6 MB, free: 4.637 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.3881, allocations: 0 / 493.6 MB, free: 4.637 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008468/0.389, allocations: 0.4925 MB / 494.1 MB, free: 4.121 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001482/0.3904, allocations: 0.5135 MB / 494.6 MB, free: 3.605 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004804/0.3953, allocations: 3.985 MB / 498.6 MB, free: 15.56 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009679/0.3962, allocations: 1.612 MB / 0.4884 GB, free: 13.92 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002487/0.3965, allocations: 163.4 kB / 0.4886 GB, free: 13.76 MB / 430.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3965, allocations: 4 kB / 0.4886 GB, free: 13.76 MB / 430.1 MB Notification: Performance of Templates: time 0.05225/0.4488, allocations: 48.27 MB / 0.5357 GB, free: 13.41 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches