Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001536/0.001536, allocations: 115.5 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001643/0.001643, allocations: 210.8 kB / 19.41 MB, free: 3.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.409/1.409, allocations: 227.7 MB / 247.9 MB, free: 10.22 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001886, allocations: 59.91 kB / 359.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2274/0.2293, allocations: 50.55 MB / 410.2 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01434/0.2436, allocations: 14.06 MB / 424.3 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02434/0.2679, allocations: 20.34 MB / 444.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002125/0.2701, allocations: 126.9 kB / 444.7 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002874/0.2729, allocations: 1.12 MB / 445.8 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006994/0.2799, allocations: 2.294 MB / 448.1 MB, free: 11.37 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004616/0.2845, allocations: 1.432 MB / 449.6 MB, free: 9.926 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01032/0.2949, allocations: 6.449 MB / 456 MB, free: 3.457 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006417/0.2955, allocations: 256.4 kB / 456.3 MB, free: 3.172 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001534/0.297, allocations: 1.065 MB / 457.3 MB, free: 2.102 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001218/0.2983, allocations: 1.056 MB / 458.4 MB, free: 1.039 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001657/0.2984, allocations: 68 kB / 458.5 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003591/0.302, allocations: 1.479 MB / 459.9 MB, free: 15.49 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003199/0.3023, allocations: 305.7 kB / 460.2 MB, free: 15.19 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0014/0.3037, allocations: 1.3 MB / 461.5 MB, free: 13.88 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005288/0.309, allocations: 3.651 MB / 465.2 MB, free: 10.21 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.309, allocations: 0 / 465.2 MB, free: 10.21 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.309, allocations: 0 / 465.2 MB, free: 10.21 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.935e-05/0.3091, allocations: 3.938 kB / 465.2 MB, free: 10.21 MB / 382.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.005499/0.3146, allocations: 3.622 MB / 468.8 MB, free: 6.512 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.3146, allocations: 8.031 kB / 468.8 MB, free: 6.504 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004642/0.3151, allocations: 389.6 kB / 469.2 MB, free: 6.121 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003949/0.319, allocations: 2.551 MB / 471.7 MB, free: 3.496 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.978e-05/0.3191, allocations: 33 kB / 471.8 MB, free: 3.465 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000141/0.3192, allocations: 44 kB / 471.8 MB, free: 3.422 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001412/0.3206, allocations: 0.6992 MB / 472.5 MB, free: 2.715 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.3206, allocations: 0 / 472.5 MB, free: 2.715 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.665e-05/0.3207, allocations: 16 kB / 472.5 MB, free: 2.699 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.348e-05/0.3207, allocations: 27.98 kB / 472.6 MB, free: 2.672 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001587/0.3223, allocations: 0.7773 MB / 473.3 MB, free: 1.895 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005135/0.3275, allocations: 2.892 MB / 476.2 MB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001304/0.3288, allocations: 0.6351 MB / 476.9 MB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009944/0.3297, allocations: 0.5804 MB / 477.4 MB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03351/0.3633, allocations: 30.72 MB / 0.4963 GB, free: 10.71 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008188/0.3641, allocations: 373.5 kB / 0.4966 GB, free: 10.34 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 3.236e-06/0.3641, allocations: 0 / 0.4966 GB, free: 10.34 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.003397/0.3675, allocations: 1.39 MB / 0.498 GB, free: 8.918 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.044e-05/0.3675, allocations: 75.33 kB / 0.498 GB, free: 8.832 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003663/0.3712, allocations: 2.796 MB / 0.5008 GB, free: 6.016 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.775e-05/0.3713, allocations: 33.7 kB / 0.5008 GB, free: 5.977 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001282/0.3726, allocations: 1.396 MB / 0.5022 GB, free: 4.574 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001906/0.3728, allocations: 174.6 kB / 0.5023 GB, free: 4.402 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003084/0.3731, allocations: 222.4 kB / 0.5026 GB, free: 4.18 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.3732, allocations: 341.9 kB / 0.5029 GB, free: 3.84 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000614/0.3738, allocations: 237.9 kB / 0.5031 GB, free: 3.609 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008925/0.3747, allocations: 0.5929 MB / 0.5037 GB, free: 2.844 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001517/0.3763, allocations: 0.8802 MB / 0.5045 GB, free: 1.793 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.985e-06/0.3763, allocations: 4 kB / 0.5045 GB, free: 1.789 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002438/0.3787, allocations: 1.277 MB / 0.5058 GB, free: 0.5 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.254e-05/0.3787, allocations: 8.938 kB / 0.5058 GB, free: 0.4922 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001195/0.3788, allocations: 80 kB / 0.5059 GB, free: 424 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005454/0.3794, allocations: 288.7 kB / 0.5062 GB, free: 132 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005922/0.38, allocations: 163.7 kB / 0.5063 GB, free: 15.97 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001011/0.381, allocations: 0.8911 MB / 0.5072 GB, free: 15.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009737/0.382, allocations: 111.3 kB / 0.5073 GB, free: 14.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/0.3821, allocations: 67.98 kB / 0.5074 GB, free: 14.88 MB / 446.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.0007376/0.3828, allocations: 433.4 kB / 0.5078 GB, free: 14.45 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004181/0.3832, allocations: 381.6 kB / 0.5081 GB, free: 14.07 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002887/0.3861, allocations: 1.255 MB / 0.5094 GB, free: 12.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.3861, allocations: 4 kB / 0.5094 GB, free: 12.79 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.3861, allocations: 0 / 0.5094 GB, free: 12.79 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.296e-06/0.3861, allocations: 7.922 kB / 0.5094 GB, free: 12.79 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003979/0.3901, allocations: 2.185 MB / 0.5115 GB, free: 10.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001045/0.3902, allocations: 72 kB / 0.5116 GB, free: 10.45 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003256/0.3905, allocations: 55.94 kB / 0.5116 GB, free: 10.39 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004824/0.391, allocations: 268.8 kB / 0.5119 GB, free: 10.12 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.055e-05/0.3911, allocations: 35.92 kB / 0.5119 GB, free: 10.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009901/0.3921, allocations: 0.8634 MB / 0.5128 GB, free: 9.203 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/0.3921, allocations: 3.984 kB / 0.5128 GB, free: 9.199 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002076/0.3942, allocations: 1.138 MB / 0.5139 GB, free: 8.023 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008796/0.395, allocations: 482.4 kB / 0.5143 GB, free: 7.531 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002718/0.3953, allocations: 16 kB / 0.5143 GB, free: 7.516 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006637/0.396, allocations: 27.97 kB / 0.5144 GB, free: 7.488 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001569/0.3961, allocations: 67.88 kB / 0.5144 GB, free: 7.422 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.727e-05/0.3962, allocations: 40 kB / 0.5145 GB, free: 7.383 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002676/0.3989, allocations: 1.824 MB / 0.5163 GB, free: 5.555 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3989, allocations: 0 / 0.5163 GB, free: 5.555 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001496/0.4004, allocations: 0.5657 MB / 0.5168 GB, free: 4.988 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.001209/0.4016, allocations: 0.772 MB / 0.5176 GB, free: 4.207 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001871/0.4035, allocations: 0.8188 MB / 0.5184 GB, free: 3.367 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.4035, allocations: 0 / 0.5184 GB, free: 3.367 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009741/0.4044, allocations: 464 kB / 0.5188 GB, free: 2.891 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002565/0.407, allocations: 0.6147 MB / 0.5194 GB, free: 2.27 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005739/0.4127, allocations: 3.993 MB / 0.5233 GB, free: 14.22 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001228/0.414, allocations: 1.604 MB / 0.5249 GB, free: 12.59 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001051/0.415, allocations: 386.9 kB / 0.5252 GB, free: 12.21 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002504/0.4153, allocations: 163.4 kB / 0.5254 GB, free: 12.05 MB / 462.1 MB Notification: Performance of SimCode: time 9.91e-07/0.4153, allocations: 0 / 0.5254 GB, free: 12.05 MB / 462.1 MB Notification: Performance of Templates: time 0.2214/0.6367, allocations: 33.58 MB / 0.5582 GB, free: 117.3 MB / 462.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches