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.00087/0.00087, allocations: 92.41 kB / 16.65 MB, free: 6.535 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.00109/0.00109, allocations: 176.4 kB / 17.56 MB, free: 6.18 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.338/1.338, allocations: 223.3 MB / 241.6 MB, free: 184 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002449/0.0002448, allocations: 12.62 kB / 301.4 MB, free: 6.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08476/0.08502, allocations: 50.41 MB / 351.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01213/0.0972, allocations: 13.35 MB / 365.2 MB, free: 6.328 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1665/0.2638, allocations: 20.18 MB / 385.4 MB, free: 8.164 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001539/0.2653, allocations: 62.53 kB / 385.4 MB, free: 8.133 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003003/0.2684, allocations: 0.9979 MB / 386.4 MB, free: 7.859 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007347/0.2757, allocations: 1.893 MB / 388.3 MB, free: 7.258 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00514/0.2809, allocations: 1.19 MB / 389.5 MB, free: 7.012 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008709/0.2896, allocations: 6.254 MB / 395.8 MB, free: 5.051 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005643/0.2902, allocations: 414.8 kB / 396.2 MB, free: 4.852 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001368/0.2916, allocations: 0.9921 MB / 397.1 MB, free: 4.453 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009458/0.2926, allocations: 1.021 MB / 398.2 MB, free: 3.961 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001401/0.2927, allocations: 39.91 kB / 398.2 MB, free: 3.961 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004049/0.2968, allocations: 1.448 MB / 399.7 MB, free: 3.395 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002641/0.297, allocations: 284.5 kB / 399.9 MB, free: 3.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001122/0.2982, allocations: 1.292 MB / 401.2 MB, free: 2.332 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003606/0.3018, allocations: 3.48 MB / 404.7 MB, free: 280 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3018, allocations: 0 / 404.7 MB, free: 280 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3018, allocations: 4 kB / 404.7 MB, free: 276 kB / 302.1 MB Notification: Performance of Transformations before backend: time 7.213e-05/0.3019, allocations: 0 / 404.7 MB, free: 276 kB / 302.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.004794/0.3067, allocations: 3.069 MB / 407.8 MB, free: 13.13 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.3068, allocations: 16.02 kB / 407.8 MB, free: 13.11 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003991/0.3072, allocations: 371.5 kB / 408.2 MB, free: 12.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003579/0.3108, allocations: 2.514 MB / 410.7 MB, free: 10.24 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.276e-05/0.3108, allocations: 33 kB / 410.7 MB, free: 10.21 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000133/0.311, allocations: 55.78 kB / 410.8 MB, free: 10.15 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001364/0.3123, allocations: 0.7265 MB / 411.5 MB, free: 9.422 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.397e-05/0.3124, allocations: 0 / 411.5 MB, free: 9.422 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.17e-05/0.3124, allocations: 16 kB / 411.5 MB, free: 9.406 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.159e-05/0.3125, allocations: 19.98 kB / 411.5 MB, free: 9.387 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001618/0.3141, allocations: 0.8359 MB / 412.4 MB, free: 8.547 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004778/0.3189, allocations: 2.896 MB / 415.3 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001356/0.3202, allocations: 0.7397 MB / 416 MB, free: 4.844 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001054/0.3213, allocations: 0.6821 MB / 416.7 MB, free: 4.164 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02806/0.3494, allocations: 30.11 MB / 446.8 MB, free: 1.984 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008046/0.3502, allocations: 385.4 kB / 447.2 MB, free: 1.598 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.344e-06/0.3502, allocations: 3.938 kB / 447.2 MB, free: 1.594 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.003393/0.3536, allocations: 1.448 MB / 448.6 MB, free: 116 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.894e-05/0.3537, allocations: 65.36 kB / 448.7 MB, free: 40 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003357/0.3571, allocations: 2.803 MB / 451.5 MB, free: 13.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.225e-05/0.3571, allocations: 33.7 kB / 451.5 MB, free: 13.18 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001157/0.3583, allocations: 1.38 MB / 452.9 MB, free: 11.79 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001648/0.3585, allocations: 164.5 kB / 453.1 MB, free: 11.63 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001125/0.3586, allocations: 69.67 kB / 453.1 MB, free: 11.56 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.3587, allocations: 341.9 kB / 453.5 MB, free: 11.22 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006126/0.3593, allocations: 265.8 kB / 453.7 MB, free: 10.96 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008327/0.3602, allocations: 0.6164 MB / 454.3 MB, free: 10.18 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001475/0.3617, allocations: 0.9295 MB / 455.3 MB, free: 9.082 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.284e-06/0.3617, allocations: 4 kB / 455.3 MB, free: 9.078 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002406/0.3641, allocations: 1.324 MB / 456.6 MB, free: 7.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.458e-05/0.3641, allocations: 8 kB / 456.6 MB, free: 7.742 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001106/0.3643, allocations: 80 kB / 456.7 MB, free: 7.664 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005192/0.3648, allocations: 280.1 kB / 457 MB, free: 7.391 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005691/0.3654, allocations: 179.7 kB / 457.1 MB, free: 7.215 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008834/0.3663, allocations: 0.8801 MB / 458 MB, free: 6.309 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001107/0.3674, allocations: 115.1 kB / 458.1 MB, free: 6.195 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.535e-05/0.3675, allocations: 68.06 kB / 458.2 MB, free: 6.129 MB / 366.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.0007273/0.3682, allocations: 425.4 kB / 458.6 MB, free: 5.703 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003793/0.3686, allocations: 363.5 kB / 459 MB, free: 5.344 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003117/0.3717, allocations: 1.324 MB / 460.3 MB, free: 4.004 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.488e-06/0.3718, allocations: 4 kB / 460.3 MB, free: 4 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.3718, allocations: 3.938 kB / 460.3 MB, free: 3.996 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.3718, allocations: 3.984 kB / 460.3 MB, free: 3.992 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003391/0.3752, allocations: 2.226 MB / 462.5 MB, free: 1.691 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.296e-05/0.3753, allocations: 72.03 kB / 462.6 MB, free: 1.621 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003205/0.3756, allocations: 67.94 kB / 462.7 MB, free: 1.555 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004437/0.3761, allocations: 268.4 kB / 462.9 MB, free: 1.293 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.284e-05/0.3761, allocations: 36.8 kB / 463 MB, free: 1.258 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008392/0.377, allocations: 0.8633 MB / 463.8 MB, free: 380 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.377, allocations: 0 / 463.8 MB, free: 380 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001874/0.3789, allocations: 1.17 MB / 465 MB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006548/0.3795, allocations: 464.4 kB / 465.4 MB, free: 14.69 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002447/0.3798, allocations: 15.92 kB / 465.5 MB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006671/0.3804, allocations: 39.97 kB / 465.5 MB, free: 14.63 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001493/0.3806, allocations: 71.88 kB / 465.6 MB, free: 14.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.854e-05/0.3807, allocations: 40 kB / 465.6 MB, free: 14.52 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00228/0.383, allocations: 1.82 MB / 467.4 MB, free: 12.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.383, allocations: 0 / 467.4 MB, free: 12.7 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001206/0.3842, allocations: 0.5623 MB / 468 MB, free: 12.14 MB / 382.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.001004/0.3852, allocations: 0.7698 MB / 468.8 MB, free: 11.47 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001716/0.3869, allocations: 0.8853 MB / 469.6 MB, free: 10.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3869, allocations: 0 / 469.6 MB, free: 10.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009029/0.3879, allocations: 0.5121 MB / 470.2 MB, free: 10.03 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002867/0.3907, allocations: 0.5716 MB / 470.7 MB, free: 9.449 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005456/0.3962, allocations: 4.751 MB / 475.5 MB, free: 4.648 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009702/0.3972, allocations: 1.601 MB / 477.1 MB, free: 3.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001285/0.3985, allocations: 394.9 kB / 477.5 MB, free: 2.629 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002279/0.3987, allocations: 159.4 kB / 477.6 MB, free: 2.473 MB / 382.1 MB Notification: Performance of SimCode: time 9.71e-07/0.3987, allocations: 0 / 477.6 MB, free: 2.473 MB / 382.1 MB Notification: Performance of Templates: time 0.05382/0.4526, allocations: 32.06 MB / 0.4977 GB, free: 2.648 MB / 414.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