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.001305/0.001305, allocations: 113.9 kB / 17.68 MB, free: 5.379 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.001479/0.001479, allocations: 192 kB / 18.62 MB, free: 4.457 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.297/1.297, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009954/0.0009955, allocations: 49.78 kB / 302 MB, free: 5.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08789/0.0889, allocations: 49.43 MB / 351.5 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01253/0.1015, allocations: 14.01 MB / 365.5 MB, free: 5.641 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1831/0.2846, allocations: 20.27 MB / 385.8 MB, free: 8.426 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001825/0.2865, allocations: 127.2 kB / 385.9 MB, free: 8.352 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002899/0.2894, allocations: 1.108 MB / 387 MB, free: 7.789 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007983/0.2974, allocations: 2.268 MB / 389.3 MB, free: 6.559 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006891/0.3043, allocations: 1.43 MB / 390.7 MB, free: 5.816 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01265/0.317, allocations: 6.347 MB / 397 MB, free: 3.355 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008505/0.3179, allocations: 422.6 kB / 397.4 MB, free: 3.137 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00182/0.3197, allocations: 1.05 MB / 398.5 MB, free: 2.621 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001122/0.3208, allocations: 1.053 MB / 399.6 MB, free: 2.008 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000164/0.321, allocations: 74.06 kB / 399.6 MB, free: 2.004 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004572/0.3256, allocations: 1.467 MB / 401.1 MB, free: 1.387 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003089/0.3259, allocations: 314.6 kB / 401.4 MB, free: 1.137 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001663/0.3276, allocations: 1.295 MB / 402.7 MB, free: 296 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005676/0.3333, allocations: 3.637 MB / 406.3 MB, free: 13.39 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.3333, allocations: 0 / 406.3 MB, free: 13.39 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3333, allocations: 0 / 406.3 MB, free: 13.39 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.297e-05/0.3334, allocations: 0 / 406.3 MB, free: 13.39 MB / 318.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.004822/0.3382, allocations: 3.507 MB / 409.8 MB, free: 9.816 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.3382, allocations: 8.031 kB / 409.8 MB, free: 9.809 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004304/0.3387, allocations: 371.5 kB / 410.2 MB, free: 9.441 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003508/0.3422, allocations: 2.501 MB / 412.7 MB, free: 6.859 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.869e-05/0.3422, allocations: 37 kB / 412.7 MB, free: 6.824 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001253/0.3424, allocations: 51.89 kB / 412.8 MB, free: 6.773 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001275/0.3436, allocations: 0.703 MB / 413.5 MB, free: 6.062 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.3437, allocations: 0 / 413.5 MB, free: 6.062 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.524e-05/0.3437, allocations: 16 kB / 413.5 MB, free: 6.047 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.463e-05/0.3438, allocations: 19.98 kB / 413.5 MB, free: 6.027 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001498/0.3453, allocations: 0.789 MB / 414.3 MB, free: 5.238 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005/0.3503, allocations: 2.872 MB / 417.2 MB, free: 2.297 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00121/0.3515, allocations: 0.6976 MB / 417.9 MB, free: 1.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00108/0.3526, allocations: 0.6553 MB / 418.5 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03116/0.3838, allocations: 30.09 MB / 448.6 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007655/0.3846, allocations: 366.1 kB / 449 MB, free: 14.35 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 3.217e-06/0.3846, allocations: 0 / 449 MB, free: 14.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.003121/0.3878, allocations: 1.384 MB / 450.4 MB, free: 12.93 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.172e-05/0.3878, allocations: 55.41 kB / 450.4 MB, free: 12.87 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0034/0.3912, allocations: 2.811 MB / 453.2 MB, free: 10.04 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.905e-05/0.3913, allocations: 29.7 kB / 453.3 MB, free: 10 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001159/0.3925, allocations: 1.383 MB / 454.7 MB, free: 8.609 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000202/0.3927, allocations: 161.7 kB / 454.8 MB, free: 8.449 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002966/0.393, allocations: 230.1 kB / 455 MB, free: 8.219 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.3931, allocations: 337.9 kB / 455.4 MB, free: 7.883 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000562/0.3937, allocations: 245.8 kB / 455.6 MB, free: 7.645 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007734/0.3945, allocations: 0.5891 MB / 456.2 MB, free: 6.887 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001359/0.3959, allocations: 0.884 MB / 457.1 MB, free: 5.832 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.254e-06/0.3959, allocations: 0.875 kB / 457.1 MB, free: 5.832 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002278/0.3982, allocations: 1.279 MB / 458.4 MB, free: 4.543 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/0.3982, allocations: 8 kB / 458.4 MB, free: 4.535 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001117/0.3983, allocations: 83.98 kB / 458.5 MB, free: 4.453 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005444/0.3989, allocations: 280.6 kB / 458.7 MB, free: 4.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005637/0.3995, allocations: 171.7 kB / 458.9 MB, free: 4.012 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000949/0.4004, allocations: 0.8764 MB / 459.8 MB, free: 3.109 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001052/0.4015, allocations: 110.9 kB / 459.9 MB, free: 3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001141/0.4016, allocations: 68.92 kB / 459.9 MB, free: 2.934 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.0007425/0.4024, allocations: 421.5 kB / 460.4 MB, free: 2.512 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003712/0.4027, allocations: 363.6 kB / 460.7 MB, free: 2.152 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002639/0.4054, allocations: 1.284 MB / 462 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.4054, allocations: 4 kB / 462 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.4054, allocations: 0 / 462 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.718e-06/0.4054, allocations: 0 / 462 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00371/0.4091, allocations: 2.201 MB / 464.2 MB, free: 14.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.762e-05/0.4093, allocations: 71.98 kB / 464.3 MB, free: 14.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003036/0.4096, allocations: 60.44 kB / 464.3 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004746/0.41, allocations: 264.8 kB / 464.6 MB, free: 14.17 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.75e-05/0.4101, allocations: 32 kB / 464.6 MB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008576/0.411, allocations: 0.8594 MB / 465.5 MB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.411, allocations: 8.047 kB / 465.5 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001841/0.4128, allocations: 1.129 MB / 466.6 MB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008482/0.4137, allocations: 464.4 kB / 467.1 MB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002615/0.414, allocations: 12 kB / 467.1 MB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006584/0.4146, allocations: 39.89 kB / 467.1 MB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000163/0.4148, allocations: 63.83 kB / 467.2 MB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.428e-05/0.4149, allocations: 39.98 kB / 467.2 MB, free: 11.45 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002409/0.4173, allocations: 1.824 MB / 469 MB, free: 9.621 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4173, allocations: 0 / 469 MB, free: 9.621 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001368/0.4187, allocations: 0.5623 MB / 469.6 MB, free: 9.059 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.001191/0.4199, allocations: 0.7757 MB / 470.4 MB, free: 8.277 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001783/0.4217, allocations: 0.8423 MB / 471.2 MB, free: 7.41 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.4217, allocations: 4.125 kB / 471.2 MB, free: 7.406 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009145/0.4226, allocations: 496 kB / 471.7 MB, free: 6.898 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002243/0.4249, allocations: 0.5921 MB / 472.3 MB, free: 6.301 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005306/0.4302, allocations: 3.893 MB / 476.2 MB, free: 2.359 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001016/0.4312, allocations: 1.604 MB / 477.8 MB, free: 0.7227 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001052/0.4323, allocations: 390.9 kB / 478.2 MB, free: 344 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002252/0.4325, allocations: 159.4 kB / 478.3 MB, free: 184 kB / 382.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4326, allocations: 0 / 478.3 MB, free: 184 kB / 382.1 MB Notification: Performance of Templates: time 0.0569/0.4895, allocations: 33.22 MB / 0.4996 GB, free: 15.26 MB / 430.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 -s cvode -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