Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001324/0.001323, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001526/0.001526, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001127/0.001127, allocations: 61.84 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08753/0.08867, allocations: 50.53 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.1728/0.2615, allocations: 14.02 MB / 372.9 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02169/0.2833, allocations: 20.31 MB / 393.2 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002206/0.2855, allocations: 120.1 kB / 393.3 MB, free: 0.668 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002985/0.2885, allocations: 1.114 MB / 394.4 MB, free: 88 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007666/0.2962, allocations: 2.272 MB / 396.7 MB, free: 14.7 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004652/0.3009, allocations: 1.428 MB / 398.1 MB, free: 13.95 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009918/0.3108, allocations: 6.431 MB / 404.6 MB, free: 10.96 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007466/0.3116, allocations: 426.8 kB / 405 MB, free: 10.74 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001787/0.3134, allocations: 1.046 MB / 406 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00133/0.3148, allocations: 1.054 MB / 407.1 MB, free: 9.617 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001843/0.315, allocations: 72.06 kB / 407.2 MB, free: 9.613 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004948/0.3199, allocations: 1.477 MB / 408.6 MB, free: 8.988 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003252/0.3202, allocations: 303.1 kB / 408.9 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001457/0.3217, allocations: 1.294 MB / 410.2 MB, free: 7.508 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004907/0.3266, allocations: 3.639 MB / 413.9 MB, free: 3.855 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3267, allocations: 0 / 413.9 MB, free: 3.855 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3267, allocations: 0 / 413.9 MB, free: 3.855 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.432e-05/0.3267, allocations: 7.938 kB / 413.9 MB, free: 3.848 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.005038/0.3318, allocations: 3.498 MB / 417.4 MB, free: 284 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.3318, allocations: 12.03 kB / 417.4 MB, free: 272 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003823/0.3322, allocations: 375.5 kB / 417.8 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0034/0.3356, allocations: 2.497 MB / 420.3 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.201e-05/0.3357, allocations: 40.98 kB / 420.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000118/0.3358, allocations: 48 kB / 420.3 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001236/0.337, allocations: 0.703 MB / 421 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.3371, allocations: 7.984 kB / 421 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.543e-05/0.3371, allocations: 20 kB / 421.1 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.234e-05/0.3372, allocations: 19.98 kB / 421.1 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001536/0.3387, allocations: 0.7812 MB / 421.9 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005036/0.3438, allocations: 2.887 MB / 424.8 MB, free: 8.727 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001193/0.345, allocations: 0.6976 MB / 425.5 MB, free: 8 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001031/0.346, allocations: 0.6431 MB / 426.1 MB, free: 7.352 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0313/0.3773, allocations: 30.72 MB / 456.8 MB, free: 4.379 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007059/0.3781, allocations: 362.5 kB / 457.2 MB, free: 4.012 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 5.46e-06/0.3781, allocations: 0 / 457.2 MB, free: 4.012 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.003121/0.3812, allocations: 1.403 MB / 458.6 MB, free: 2.578 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.764e-05/0.3813, allocations: 59.34 kB / 458.6 MB, free: 2.508 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003201/0.3845, allocations: 2.795 MB / 461.4 MB, free: 15.69 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.589e-05/0.3846, allocations: 37.7 kB / 461.5 MB, free: 15.64 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00109/0.3857, allocations: 1.383 MB / 462.8 MB, free: 14.26 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001457/0.3858, allocations: 165.7 kB / 463 MB, free: 14.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002992/0.3861, allocations: 222.1 kB / 463.2 MB, free: 13.87 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.3863, allocations: 337.9 kB / 463.6 MB, free: 13.54 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005429/0.3868, allocations: 241.9 kB / 463.8 MB, free: 13.3 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008117/0.3876, allocations: 0.5891 MB / 464.4 MB, free: 12.54 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001357/0.389, allocations: 0.8802 MB / 465.3 MB, free: 11.49 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.255e-06/0.389, allocations: 4 kB / 465.3 MB, free: 11.49 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002144/0.3912, allocations: 1.272 MB / 466.5 MB, free: 10.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.3912, allocations: 12.19 kB / 466.6 MB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001147/0.3913, allocations: 87.38 kB / 466.6 MB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005348/0.3919, allocations: 279.7 kB / 466.9 MB, free: 9.832 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005433/0.3924, allocations: 171.7 kB / 467.1 MB, free: 9.664 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009454/0.3934, allocations: 0.8802 MB / 468 MB, free: 8.758 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009375/0.3943, allocations: 110.9 kB / 468.1 MB, free: 8.648 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001009/0.3944, allocations: 68.06 kB / 468.1 MB, free: 8.582 MB / 382.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.0006705/0.3951, allocations: 422.5 kB / 468.5 MB, free: 8.16 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003288/0.3955, allocations: 363.6 kB / 468.9 MB, free: 7.801 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002669/0.3981, allocations: 1.269 MB / 470.2 MB, free: 6.52 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.3982, allocations: 4 kB / 470.2 MB, free: 6.516 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.3982, allocations: 4 kB / 470.2 MB, free: 6.512 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.3982, allocations: 7.922 kB / 470.2 MB, free: 6.504 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003517/0.4017, allocations: 2.185 MB / 472.4 MB, free: 4.234 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.984e-05/0.4018, allocations: 68 kB / 472.4 MB, free: 4.168 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002928/0.4021, allocations: 67.88 kB / 472.5 MB, free: 4.102 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000447/0.4026, allocations: 268.9 kB / 472.8 MB, free: 3.836 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.714e-05/0.4026, allocations: 31.98 kB / 472.8 MB, free: 3.805 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009409/0.4036, allocations: 0.8638 MB / 473.7 MB, free: 2.918 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.4036, allocations: 4.031 kB / 473.7 MB, free: 2.914 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001754/0.4054, allocations: 1.129 MB / 474.8 MB, free: 1.746 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008285/0.4062, allocations: 480.3 kB / 475.3 MB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002643/0.4065, allocations: 11.98 kB / 475.3 MB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006542/0.4071, allocations: 27.97 kB / 475.3 MB, free: 1.215 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001572/0.4073, allocations: 63.94 kB / 475.4 MB, free: 1.152 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.162e-05/0.4074, allocations: 36 kB / 475.4 MB, free: 1.117 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002421/0.4098, allocations: 1.82 MB / 477.2 MB, free: 15.29 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4098, allocations: 4 kB / 477.2 MB, free: 15.29 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00147/0.4113, allocations: 0.5583 MB / 477.8 MB, free: 14.73 MB / 398.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.001145/0.4125, allocations: 0.7789 MB / 478.6 MB, free: 13.95 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001749/0.4142, allocations: 0.85 MB / 479.4 MB, free: 13.07 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.4142, allocations: 3.938 kB / 479.4 MB, free: 13.07 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009025/0.4152, allocations: 488.4 kB / 479.9 MB, free: 12.57 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002183/0.4174, allocations: 0.6194 MB / 480.5 MB, free: 11.95 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005314/0.4227, allocations: 3.898 MB / 484.4 MB, free: 8.004 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001097/0.4238, allocations: 1.6 MB / 486 MB, free: 6.371 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00104/0.4249, allocations: 390.9 kB / 486.4 MB, free: 5.984 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002206/0.4251, allocations: 167.4 kB / 486.6 MB, free: 5.82 MB / 398.1 MB Notification: Performance of SimCode: time 7.12e-07/0.4251, allocations: 0 / 486.6 MB, free: 5.82 MB / 398.1 MB Notification: Performance of Templates: time 0.05776/0.4829, allocations: 33.33 MB / 0.5077 GB, free: 4.598 MB / 430.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches